Import Results from Command Line
Prerequisites for Importing a
- 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
Import Performance Profiler results and view data
- Copy the result directory to your local system.
- Use theimportaction to import the required file, setting the imported result directory as a search directory:-import <vtuneresult_path> -source-search-dir <search_path> -r <result_dir>If you do not use the result-dir option, theVTunecreates a new directory with the default name in the current working directory.ProfilerTo import a CSV file with external data, use the-result-diroption and specify the name of an existing directory of the result that was collected by theVTunein parallel with the external collection.ProfilerVTuneadds the externally collected statistics to the result and provides integrated data in theProfilerTimelinepane.
- You can use the command line to display the imported result in theVTuneGUI, or generate a report to view it.Profiler
- In the GUI:-gui <vtuneresult_dir>/<result>.vtune
- In the CLI:-report <vtunereport_type> -result-dir <result_dir>/<result>.vtune
- For Linux targets, make sure to generate the debug information for your binary files using the-goption for compiling and linking. This enables theVTuneto collect accurate performance data.Profiler
- Imported result files may not have all the fields that are present in theVTuneresult files, so some types of data may be missing from the report.Profiler
Import energy analysis results and view data
- <must be a non-existing folder, or you will get an error.project_folder>
- The energy analysis data file has an extension of.pwr.
vtune -import /home/Import/r001.tb6 -search-dir /home/import/r001hs
vtune -report callstacks -result-dir /home/import/r001hs -search-dir /home/import/binaries