Performance Investigator can be launched from the command line using eShell or other device resident command-line tool to facilitate program testing. Using eShell, you can start, stop, or perform timed actions on any application you want to profile.
Figure 1. eShell ready to start a 30-second timed Profiler session.
Calls of the command line version of the Carbide.c++ Profiler have the following forms:
CProfApp_SISX start [settings_file]
CProfApp_SISX end [settings_file]
CProfApp_SISX timed seconds [settings_file]
CProfApp_SISX timed settings_file seconds
where:
NOTE You can generate a valid configuration file by starting the Carbide.c++ Profiler GUI, selecting suitable settings, and then exiting the GUI. The settings file created is called C:\Data\CProfSettings.txt.
Starting and stopping a session:
cprofapp_sisx start c:\Data\cprofsettings.txt
cprofapp_sisx end c:\Data\cprofsettings.txt
Executing a 30 second session:
cprofapp_sisx timed 30 c:\Data\cprofsettings.txt
Related references