If the .NET application is launched by AMD uProf, the tool would set
COR_PROFILER environment variable which specifies the CLSID of
the AMDClrProfAgent library which uses ICLRProfiling Interface to attach the agent
to running CLR process AMD uProf would be able to collect the profile data and
attribute the samples to CLR process.
GUI
To launch the AMDuProf GUI, go to page.
- Click Profile an Application on the Welcome page.
- Provide application path, application options, working
directory, and environment variables, if any. Click Next. Use the following configuration:
- Application Path: <path to .NET binary.>
- Application Options: <launch app arguments>
- Working Directory: <launch app path>
- From Predefined Configs, select Required Configuration.
- Set the timer interval and profiling signal.
- Click Start Profile to start the profiling.
CLI
- To profile a .NET
application:
$ ./AMDuProfCLI collect --config tbp -w <.net-app-dir> <path-to-.net.exe> <.net-app-main> - To generate a
report:
$ ./AMDuProfCLI report --src-path <path-to-.net-app-source-dir> -i <raw-data-file-path>