![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Tools > ProfilingThe Tools > Profiling command invokes a statistical profiler on the designated executable file. For Apex native systems, either the Prof or the Gprof profiler can be invoked. For Apex embedded systems, the Apex Statistical Profiler is nvoked.
Note that in order to use profiling, you must set the PROFILING switch to either prof or gprof, then code, link and execute the program(s) you wish to profile. After execution, use this dialog to analyze the profiling data. For embedded systems, set the PROFILING switch to prof to enable profiling (gprof is not recognized).
Select OK when you are ready. The prof, gprof, or apex_prof output is demangled and output to a display window.
Note: Compiler generated profiling is not supported on SGI machines.
Profiling Dialog Box Fields:
- Prof/Gprof Radio Buttons
Identifies profiler to use. (Suppressed for embedded systems)
- Executable Field
Name of the executable file to be profiled. Note that this executable should be linked with the -profiling prof or -profiling gprof option.
- Data File Field
Name of the data file which will hold the profiling data. If Prof is selected, the default name of this file is mon.out. If Gprof is selected, the default name of this file is gmon.out.
- Options
Options to the profiler. The available options are different depending on whether an Apex native or Apex cross product is being run.
To display the options for Apex native compilers, enter man prof or man gprof.
For cross products, a full description of the available options can be found in the Embedded Programming Guide. Options for cross products are:
-address -summary -c -show_unused -disassemble -tick_value <value> -sort
Note: If you invoke the profiler using the Tools > Profiling command, the output is automatically piped through demangle. If the profiler (or any other tool on Apex), is invoked without using the Apex GUI, the text output must be piped through demangle. For example,
cat output_file | demangle load_moduleAdditional Topics
For more information, click on a topic:
- PROFILING switch
Rational Software Corporation http://www.rational.com support@rational.com techpubs@rational.com Copyright © 1993-2001, Rational Software Corporation. All rights reserved. |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |