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

How to report comparison results from command-line?

Lau_L_
Beginner
361 Views

Hi,

I have used the Compare feature from GUI by selecting two amplxe files from different runs. How can I do this on the command-line, reporting out e.g. the Summary pane of a comparison?

Thanks!

0 Kudos
3 Replies
David_A_Intel1
Employee
361 Views

Hi Lau:

I'm sorry, but right now it looks liks you would have to do this manually.  For example, output the summary report for each result in CSV format and then use a script to process the output of each report to do the comparison.

[bash]$ amplxe-cl -report summary -format=csv -csv-delimiter=comma -r r001hs > r1results.csv
$ amplxe-cl -report summary -format=csv -csv-delimiter=comma -r r002hs > r2results.csv
$ awk -f compare.awk F1=r1results.csv F2=r2results.csv > comparison.txt
[/bash]

Something like that.  Or, whatever your favorite scripting language is. ;)

Alternately, you can import the results in the GUI and use the Compare functionality there.

0 Kudos
Peter_W_Intel
Employee
361 Views

Probably you can compare them in command line directly. For example:

# amplxe-cl -report summary -csv-delimiter="," -r r007runsa -r r008runsa > r7-r8-diff.csv

0 Kudos
David_A_Intel1
Employee
361 Views

Even better!  Cool.  Thanks, Peter! ;)

0 Kudos
Reply