You can create a profiler session by importing .gmon, .kev, or .ptrace files using the Import action from the Profiler Sessions view.
Before you start, you must:
- compile the binary with instrumentation enabled
- transfer the binary to the target machine
To profile in this scenario, follow these steps:
-
Run the instrumented binary on the target with profiling enabled (see Build with profiling enabled).
-
Transfer the output file to the host machine.
-
Open the Application Profiler perspective.
-
In the Profiler Sessions view, perform an Import.
The IDE creates a new Application Profiler session and populates it with the imported data, as well as the Execution Time
view. Now, your Application Profiler session is ready for inspection.