duration

Specify the duration for collection (in seconds).

Syntax

-duration <value>

Arguments

unlimited

Collection duration is unbounded.

<seconds>

The duration in seconds.

Default

unlimited

Actions Modified

collect

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 when the target is specified on the command line, but you want to set a specific duration for data collection.

Example

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

$ amplxe-cl -collect advanced-hotspots -duration 20

In this example, the sample.exe target is specified for a concurrency analysis, but collection is limited to 60 seconds in duration.

$ amplxe-cl -collect concurrency -duration 60 -- C:\test\sample.exe

See Also


Supplemental documentation specific to a particular Intel Studio may be available at <install-dir>\<studio>\documentation\ .

For more complete information about compiler optimizations, see our Optimization Notice.