Collecting Data |
11 |
![]() |
Basic Concepts
During the execution of an application, the Collector gathers behavior data and writes it to a file, called an experiment.
For more information, see Collecting Performance Data in the WorkShop online help.
There are a series of collector commands that you can use to collect performance data.
To start collecting data, use one of the following:
collector sample mode continuous collector sample mode manual |
Profiling
For non-multithreaded applications, you can get profiling for a selected region of the code by turing on profiling in the middle of the run and then turning it off at a convenient location. Given the restriction that you cannot turn on profiling in the middle of the run, you can get profiling for a selected region of code with the following:
Collecting Data for Multithreaded Applications
Data collection for multithreaded applications is supported. There are some restrictions and limitation about multithreaded collection:
collectormt |
Command Reference
The syntax of the command is:
collector collector_commands |
To stop collecting data, use one of these commands:
collector sample mode off quit |
collector show options |
To show settings of one or more categories:
no option |
List setting options |
all |
Show all settings |
profile |
Show profile settings |
sample |
Show sample settings |
store |
Show store settings |
working_set |
Show working_set settings |
collector profile options |
mode stack|pc_only|off |
Specifies profile data collection mode |
timer milliseconds |
Stops collecting performance data |
To specify one or more sample options:
collector sample options |
mode continuous|manual|off |
Specifies data collection mode |
timer milliseconds |
Specifies data collecting period |
To inquire status about current experiment:
collector status |
To find the directory or file name of the stored experiment:
collector store options |
directory string |
Specifies directory where experiment is stored |
filename string |
Specifies experiment file name |
To specify working_set options:
collector working_set <options> |
mode on|off |
Specifies data collection mode |