Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
5201 Discussions

Saving micro architecture summary and function wise breakdown using Intel VTune CLI

rbachkaniwala3
Beginner
2,637 Views

I am trying to save the micro architecture summary and function level breakdown of micro architectural information visible using Intel VTune GUI, but using VTune CLI as a csv file.

I have went through the official documentation, but could not find a way.

 

The current CLI report options do not support what I want.

The kind of data format I want is:

1. Collect data use `vtune -collect memory-access `option
2. Open VTune GUI's `Microarchitecture Exploration` option

3. Open `Bottom-up` option

 

The data seen in this window is exactly what I want to save as a CSV. I've uploaded a screenshot to show what I want to save using VTune CLI.
dsada.jpg

0 Kudos
1 Solution
DiyaN_Intel
Moderator
1,871 Views

Hi, 

 

Thank you for your feedback. We have provided your feedback to the relevant team. 

At this moment there is no visibility of when it will be implemented and available for use. 

Please let us know if we can go ahead and close this thread?

 

Regards,

Diya

 

View solution in original post

0 Kudos
10 Replies
DiyaN_Intel
Moderator
2,573 Views

Hi,

Thank you for posting in Intel communities.

We are working internally on getting the bottom-up information via CLI and will get back to you soon with an update.

Meanwhile, requesting you to go through the VTune helper guide and you can try out things that can help you get function-level information via call stacks/top-down option using the below commands.

 

1) Getting the Analysis: 

 vtune -collect memory-access ./application

2) Generating the report: 

vtune -R callstacks -r <absolute report path(./rxxxmacc)> -report-output <filename>.csv -format csv -csv-delimiter comma

Supposedly, if you need bottom-up information as a .csv file on GUI. Just right-click on it to find an option to export as a .CSV file.

You can find it in the screenshot below.

DiyaN_Intel_0-1689155445277.png

 

Regards,

Diya

 

0 Kudos
DiyaN_Intel
Moderator
2,488 Views

Hi, 


Good day to you.

We have not heard back from you.

Could you let us know if your issue has been resolved with the above solution?

If this fixes your issue, please accept this as a solution. 

This would help others with similar issues. Thank you!


Thanks and Regards, 

Diya


0 Kudos
rbachkaniwala3
Beginner
2,472 Views

Can you please reply with the formula used to obtain the data shown in the screenshot of my original post using the hardware counters?
I would like to automate this process instead of relying on opening the GUI and using the copy feature.

0 Kudos
DiyaN_Intel
Moderator
2,400 Views

Hi , 


We are working on this internally and get back to you with an update soon.

In the meantime, can you share the following details which will help us to investigate further :


1. Sample reproducer code.


2. VTune version.


3. Exact steps and the commands used.


4. OS, Kernel and Processor details.


Regards,

Diya



0 Kudos
rbachkaniwala3
Beginner
2,398 Views

1. Sample reproducer code.
Cannot share, but the output I need has nothing to do with my code

2. VTune version.
Intel(R) VTune(TM) Profiler 2023.2.0 (build 626047)


3. Exact steps and the commands used.
vtune -collect memory-access -- python <python program>


4. OS, Kernel and Processor details.
Ubuntu 20.04 LTS, 5.4.0-139-generic, Intel(R) Xeon(R) CPU E5-2667 v4 (Broadwell)

0 Kudos
DiyaN_Intel
Moderator
2,388 Views

Hi,


Thank you for providing the details.


We have informed the development about the issue and are working on it internally and will get back to you with an update soon.


Regards,

Diya



0 Kudos
DiyaN_Intel
Moderator
2,077 Views

Hi,

 

Good day to you.

Sorry for the late reply.

 

We came up with a workaround that to get all the columns that we get for micro-architecture analysis in memory access using command line we need to follow below two steps :

 

1. We need to run a microarchitecture exploration analysis first using the below command:

 vtune -collect uarch-exploration -result-dir <result_directory_name>– ./<application_name>

2. Then run a hotspots report analysis:

vtune -report hotspots -result-dir <result_directory_name> -report-output report.csv -format csv

 

This "report.csv" file will give all the columns and functions as shown in the bottom-up of the microarchitecture analysis in memory access.

 

If you face any issues please let us know.

 

If this resolves your issue, make sure to accept this as a solution. 

This would help others with similar issue. Thank you!

 

Regards, 

Diya

 

0 Kudos
rbachkaniwala3
Beginner
2,057 Views

The data collected by me took several weeks. I am not in a position to run all my experiments again with `uarch-exploration` collection mode.

 

It will be nice to be able to retrieve data in csv format using existing collected data and `vtune -report` option.

 

It would be nice to have an additional CLI feature released in the future which will allow us to simple use `vtune -report` command.


0 Kudos
DiyaN_Intel
Moderator
1,872 Views

Hi, 

 

Thank you for your feedback. We have provided your feedback to the relevant team. 

At this moment there is no visibility of when it will be implemented and available for use. 

Please let us know if we can go ahead and close this thread?

 

Regards,

Diya

 

0 Kudos
DiyaN_Intel
Moderator
1,829 Views

Hi, 


Thanks for confirming and accepting the solution.

This thread will no longer be monitored by Intel. If you need further assistance, please post a new question.


Regards, 

Diya


0 Kudos
Reply