User Guide

  • 2020
  • 06/18/2020
  • Public Content
Contents

collect-with

Run a custom hardware event-based sampling or user-mode sampling and tracing collection using your settings.

Syntax

-collect-with
<collector_name>
Arguments
collector_name
Description
runsa
Perform hardware event-based sampling collection.
runss
Perform user-mode sampling and tracing collection.
Description
Use the
collect-with
action when you want finer control over analysis settings than the
collect
action can offer. Specify both the collector type and the knob. The collector type determines the type of collection, and the knob determines the level or granularity. Lower levels are coarser grained, while higher levels are finer grained. The analysis process includes finalization of the result, and a summary report is displayed by default.
For the
runsa
(event-based sampling) collector, the knob option specifies the list of events to collect. To display a list of events available on the target PMU, enter:
vtune
-collect-with runsa -knob event-config=?
<target>
The command returns names and short descriptions of available events. For more information on the events, use Intel Processor Events Reference
  • To access the most current command line documentation for the
    collect
    or
    collect-with
    action, enter
    vtune
    -help collect
    or
    vtune
    -help collect-with
    .
  • For the most current information on available knobs, enter
    vtune
    -help collect <
    analysis_type
    >
    or
    vtune
    -help collect-with <
    analysis_type
    >
    , where
    <analysis_type>
    is the type of analysis you wish to perform.
Alternate Options
Use the collect action with predefined settings.
This example runs the hardware event-based sampling collector for the
sample
Linux* application on the specified events and displays a summary report.
vtune
-collect-with runsa -knob event-config=CPU_CLK_UNHALTED.CORE,CPU_CLK_UNHALTED.REF,INST_RETIRED.ANY /home/test/sample

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804