Go to main content
Oracle® Developer Studio 12.6: Debugging a Program with dbx

Exit Print View

Updated: June 2017
 
 

collector Command

The collector command collects performance data for analysis by the Performance Analyzer. It is valid only in native mode.

This section lists the collector commands and provides details about them.

Syntax

collector archive options

Specify the mode for archiving an experiment when it terminates.

collector dbxsample options

Control the collection of samples when dbx stops the target process.

collector disable

Stop data collection and close the current experiment.

collector enable

Enable the collector and open a new experiment .

collector heaptrace options

Enable or disable collection of heap tracing data.

collector hwprofile options

Specify hardware counter profiling settings.

collector limit options

Limit the amount of profiling data recorded.

collector pause

Stop collecting performance data but leave experiment open.

collector profile options

Specify settings for collecting callstack profiling data.

collector resume

Start performance data collection after pause.

collector sample options

Specify sampling settings.

collector show options

Show current collector settings.

collector status

Inquire status about current experiment.

collector store options

Experiment file control and settings.

collector synctrace options

Specify settings for collecting thread synchronization wait tracing data.

collector tha options

Specify settings for collecting thread analyzer data.

collector version

Report the version of libcollector.so that would be used to collect data.

where:

To start collecting data, type collector enable.

To stop data collection, type collector disable.

collector archive Command

The collector archive command specifies the archiving mode to be used when the experiment terminates.

Syntax

collector archive on|off|copy

By default, normal archiving is used. For no archiving, specify off. To copy load objects into the experiment for portability, specify copy.

collector dbxsample Command

The collector dbxsample command specifies whether to record a sample when the process is stopped by dbx.

Syntax

collector dbxsample on|off

By default, a sample is collected when the process is stopped by dbx. To indicate not to collect a sample at this time, specify off.

collector disable Command

The collector disable command causes the data collection to stop and the current experiment to be closed.

collector enable Command

The collector enable command enables the collector and opens a new experiment.

collector heaptrace Command

The collector heaptrace command specifies options for collecting heap tracing (memory allocation) data.

Syntax

collector heaptrace on|off

By default, heap tracing data is not collected. To collect this data, specify on.

collector hwprofile Command

The collector hwprofile command specifies options for collecting hardware-counter overflow profiling data.

Syntax

collector hwprofile on|off

By default, hardware-counter overflow profile data is not collected. To collect this data, specify on.

collector hwprofile list

Print out the list of available counters.

collector hwprofile counter on|hi|high|lo|low|off

By default, hardware-counter overflow profile data is not collected. To collect this data, specify on. You can set the resolution of the counters to high or low. If you do not specify a resolution, it is set to normal. These options are similar to the collect command options. See the collect(1) man page for more information.

collector hwprofile addcounter on|off

Add additional counters for hardware counter overflow profiles.

collector hwprofile counter name interval [name2 interval2]

Specify hardware counter names and intervals.

where:

name is the name of a hardware counter.

interval is the collection interval in milliseconds.

name2 is the name of a second hardware counter.

interval2 is the collection interval in milliseconds.

Hardware counters are system-specific, so the choice of counters available depends on the system you are using. Many systems do not support hardware-counter overflow profiling. On these machines, the feature is disabled.

collector limit Command

The collector limit command specifies the experiment file size limit.

Syntax

collector limit value | unlimited | none

where:

value, in megabytes, limits the amount of profiling data recorded and must be a positive number. When the limit is reached, no more profiling data is recorded but the experiment remains open and sample points continue to be recorded. By default, there is no limit on the amount of data recorded.

If you have set a limit, specify unlimited or none to remove the limit.

collector pause Command

The collector pause command causes the data collection to stop but leaves the current experiment open. Sample points are not recorded while the Collector is paused. A sample is generated prior to a pause, and another sample is generated immediately following a resume. Data collection can be resumed with the collector resume command.

collector profile Command

The collector profile command specifies options for collecting profile data.

Syntax

collector profile on|off

Specify the profile data collection mode.

collector profile timer interval

Specify profile timer period, fixed or floating point, with an optional trailing m for milliseconds or u for microseconds.

collector resume Command

The collector resume command causes the data collection to resume after a pause created by the collector pause command (see collector pause Command).

collector sample Command

The collector sample command specifies the sampling mode and the sampling interval.

Syntax

collector sample periodic|manual

Specify sampling mode.

collector sample period seconds

Specify sampling interval in seconds.

collector sample record [name]

Record a sample with an optional name.

where:

seconds is the length of the sampling interval.

name is the name of the sample.

collector show Command

The collector show command shows the settings of one or more categories of options.

Syntax

collector show

Show all settings

collector show all

Show all settings

collector show archive

Show archive setting

collector show duration

Show duration setting

collector show hwprofile

Show hardware counter data settings

collector show heaptrace

Show heap tracing data settings

collector show limit

Show experiment size limits

collector show pausesig

Show pause and resume signal

collector show profile

Show call stack profiling settings

collector show sample

Show sample settings

collector show samplesig

Show sample signal

collector show store

Show store settings

collector show synctrace

Show thread synchronization wait tracing settings

collector show tha

Show thread analyzer data settings

collector status Command

The collector status command inquires about the status of the current experiment. It returns the working directory and the experiment name.

collector store Command

The collector store command specifies the directory and file name where an experiment is stored.

Syntax

collector store {–directory pathname | –filename filename | –group string}

where:

pathname is the pathname of the directory where an experiment is to be stored.

filename is the name of the experiment file.

string is the name of an experiment group.

collector synctrace Command

The collector synctrace command specifies options for collecting synchronization wait tracing data.

Syntax

collector synctrace on|off

By default, thread synchronization wait tracing data is not collected. To collect this data, specify on.

collector synctrace threshold {microseconds| calibrate}

Specify threshold in microseconds. The default value is 1000. If calibrate is specified, the threshold value will be calculated automatically.

where:

microseconds is the threshold below which synchronization wait events are discarded.

collector tha Command

The collector tha command specifies options for collecting thread analyzer data.

Syntax

collector tha on|off

By default, thread analyzer data is not collected. To collect this data, specify on.

collector version Command

The collector version command reports the version of libcollector.so that would be used to collect data.

Syntax

collector version