duration

Specify the duration for collection (in seconds).

GUI Equivalent

Configure Analysis window > WHAT pane > Advanced section > Automatically stop collection after option

Syntax

-duration=<value>

Arguments

unlimited

Collection duration is unbounded.

<seconds>

The duration in seconds.

Default

unlimited

Actions Modified

collect, collect-with

Description

The duration option is required for system-wide collection, and specifies the duration for collection (in seconds). System-wide collection occurs when the target is not specified on the command line when collection is initiated. It also can be used with when the target is specified, but you want to set a specific duration for data collection.

Example

This command performs system-wide collection of Hotspots for 20 seconds.

$ amplxe-cl -collect hotspots -knob sampling-mode=hw -duration=20

In this example, the sample target on Linux* is specified for a Threading analysis, but collection is limited to 60 seconds in duration.

$ amplxe-cl -collect threading -duration=60 -- home/test/sample
For more complete information about compiler optimizations, see our Optimization Notice.
Select sticky button color: 
Orange (only for download buttons)