Launching a .NET Application - Launching a .NET Application - 57368

uProf User Guide

Document_ID
57368
Release_Date
2025-06-09
Revision
5.1 English

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 Home > Welcome page.

  1. Click Profile an Application on the Welcome page.
  2. Provide application path, application options, working directory, and environment variables, if any. Click Next. Use the following configuration:
    1. Application Path: <path to .NET binary.>
    2. Application Options: <launch app arguments>
    3. Working Directory: <launch app path>
  3. From Predefined Configs, select Required Configuration.
  4. Set the timer interval and profiling signal.
  5. 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>