[perfcollect] better way to download crossgen to resolve symbols
jeremymeng opened this issue · comments
Jeremy Meng commented
From @jeremymeng on June 5, 2018 22:35
Currently users have to manually download and patch their Linux system before running perfcollect script. It involves multiple steps as described at https://github.com/dotnet/coreclr/blob/master/Documentation/project-docs/linux-performance-tracing.md#resolving-framework-symbols.
It would be great if a matching crossgen can be downloaded automatically before attempting to run crossgen.
Copied from original issue: dotnet/coreclr#18314
AlonAm commented
As a workaround, I used the following commands to download and extract crossgen from the NuGet package
curl -OL https://www.nuget.org/api/v2/package/runtime.linux-x64.Microsoft.NETCore.Runtime.CoreCLR/2.0.8
unzip -j 2.0.8 tools/crossgen
cp crossgen /usr/share/dotnet/shared/Microsoft.NETCore.App/2.1.21