- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I am using VTune to analyze different applications. I noticed that VTune generates a Latency Histogram in the Memory Access - Memory Usage - Summary tab, as reported here:
I would like to generate such latency values from command line to run additional analyses; however, I have found no way to that. I also looked at the SQLite DB that VTune creates in the project folder, but it seems that it contains just a portion of latency values within the "dd_memory_access" table.
Could you please help me with this issue?
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Just confirmed that there is no way to generate the histogram from cli. I can only suggest “Copy to clipboard” from GUI functionality.
You’ll get such text representation:
Latency Histogram
Latency Loads
0 130039
7 70351099
8 10793237
9 2600780
12 1040312
13 520156
14 2080624
15 1170351
16 1300390
17 650195
18 130039
19 130039
20 390117
23 260078
24 130039
26 130039
29 130039
............
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do you mean you want to get a latency histogram as well when running other analysis types besides memory-access?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @yuzhang3_intel
Sorry for the misunderstanding. I would like to know if there is a way get the raw data of the latency histogram from command line.
My goal is to then perform my additional analyses on such data and make charts with different binning widths.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Understood, let me check.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is raw data extracted from the VTune macc data based on the timeline. I'm not sure if it is what you expected.
$ vtune -R timeline -r r015macc/ -r-k column-by=TotalLatency -r-k bin-count=100
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for the reply. I have executed the command you suggested, but it does not exactly provide what I expected. With this command, I can see the total latency distributed over the timeline of my application according to the number of bins. For instance:
timeBin Bin Start Time Bin End Time Total Latency:Self
--------- ---------------- --------------- --------------------
0 0.000 12.015 5,617,298,207
1 12.015 24.030 1,027,101,981
...
However, in order to recreate the latency histogram chart from the Memory Access tab, I suppose I need to have the latency (in clock cycles) of each load instruction. Indeed, if I hover with the mouse the latency histogram, I can see how many loads share the same latency. This is somehow similar to what I found navigating the SQLite DB that VTune creates for a project, where each line of the "dd_memory_access" table contains data about the memory address, cache line, latency, and so on. Unfortunately, as mentioned in my first message, this table seems to contain just a subsample of the overall memory accesses.
Do you think it would be possible to extract the latency (in clock cycles) of each load instruction from the VTune command line?
Thank you for your help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry, another quick question related to your reply: how can I list the metrics that the "column-by" flag accepts?
I tried to look at the VTune documentation for that but I found a few metric examples only.
Thanks again!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Just confirmed that there is no way to generate the histogram from cli. I can only suggest “Copy to clipboard” from GUI functionality.
You’ll get such text representation:
Latency Histogram
Latency Loads
0 130039
7 70351099
8 10793237
9 2600780
12 1040312
13 520156
14 2080624
15 1170351
16 1300390
17 650195
18 130039
19 130039
20 390117
23 260078
24 130039
26 130039
29 130039
............
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I see.
I hoped there was a way to generate the histogram data from the cli, but I think this solution is fine too.
Thank you for your help!

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page