- .tb6or.tb7with event-based sampling data. To import the files, use the-result-diroption and specify the name for a new directory you want to create for the imported data. If you do not use the-result-diroption, theVTunecreates a new directory with the default name.Profiler
- .perffiles with event-based sampling data collected by Linux* Perf tool. To ensure accurate data representation in theVTune, make sure to run the Perf collection with the predefined command line options:Profiler
where the-eoption is used to specify a list of events to collect as-e <;list of events>--call-graphoption (optional) configures samples to be collected together with the thread call stack at the moment a sample is taken. See Linux Perf documentation on possible call stack collection options (for example,dwarf) and its availability in different OS kernel versions.The Linux kernel exposes Perf API to the Perf tool starting from version 2.6.31. Any attempts to run the Perf tool on kernels prior to this version lead to undefined results or even crashes. See Linux Perf documentation for more details.
- For application analysis:perf record -o <trace_file_name>.perf --call-graph dwarf -e cpu-cycles,instructions <application_to_launch>
- For process analysis:perf record -o <trace_file_name>.perf --call-graph dwarf -e cpu-cycles,instructions <application_to_launch> -p <PID> sleep 15
- To import acsvfile , use the-result-diroption and specify the name of an existing directory of the result that was collected by theVTunein parallel with the external data collection.ProfilerVTuneadds the externally collected statistics to the result and provides integrated data in theProfilerTimelinepane.Importing acsvfile to theVTuneresult does not affect symbol resolution in the result. For example, you can safely import aProfilercsvfile to a result located on a system where module and debug information is not available.
vtune –import sample_data.tb7 –result-dir r000hs
vtune -import perf_trace.perf