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

Call Count column does not appear

L_K_
Beginner
713 Views

Hi.  I'm running Advanced Hotspots analysis with Hot Spots, call counts, stacks and context switches checked  However, when I look at the results, I don't see Call Count column.  I have Show All columns checked and scrolling to the right or left does not reveal a column.  Any idea?  Thanks.

0 Kudos
16 Replies
Peter_W_Intel
Employee
713 Views

If you already did "Show All Columns", it might be due to vtss plus driver was not enabled.

Do you work on Linux*? I remember that the feature needs Linux kernel version 2.6.32 or above.

Check - "lsmod | grep vtsspp" if that driver was loaded.

Another thing is - are your sure if your hot function calls were low number, this might cause "call count" column invisible. You may build a simple example which calls hot functions frequently from a loop, then verify.

0 Kudos
L_K_
Beginner
713 Views

This is VMware 10, Windows 7 environment.  Thanks.

0 Kudos
Bernard
Valued Contributor I
713 Views

Try to run from elevated cmd driverquery -v and look for vtss.sys driver entry. Pay attention to started and running info.

0 Kudos
Peter_W_Intel
Employee
713 Views

@ L K

Thanks for info. However I wonder that only operation system on VMWare Fusion* 5 is supported to run hardware event-based sampling - as I know you ran advanced-hotspots, but I saw your all CPI values are zero!!! Can you verify this issue in native operation system?

Thanks, Peter   

0 Kudos
Bernard
Valued Contributor I
713 Views

@L K

What is your host OS?

0 Kudos
L_K_
Beginner
713 Views

Host OS - Windows 7, 64 bit

Guest, VMWare 10, Windows 7, 32 bit

vtss is running

Thank you.

0 Kudos
Bernard
Valued Contributor I
713 Views

Did you try to check functions call count while profiling your code on the Host machine?

0 Kudos
Peter_W_Intel
Employee
713 Views

In order to verify if this is problematical result (I saw that CPI is zero in columns.png), you can use command line to display interest of data from  the report by using:

amplxe-cl -report hotspots; // which should display "call count" column, if you enabled it during data collecting.

amplxe-cl -report summary; // verify CPI value in this report, it it zero? It doesn't make sense.

0 Kudos
Bernard
Valued Contributor I
713 Views

@Peter

Is there a possibility to receive or redirect VTune output to comsole window only without loading UI? I was thinking about the possibility of failure related to some column CPI UI handler.

0 Kudos
Bernard
Valued Contributor I
713 Views

>>>Is there a possibility to receive or redirect VTune output to comsole window only without loading UI>>>

Of course as a diagnostic option.

0 Kudos
L_K_
Beginner
713 Views

I ran command option followed by > summary.txt and got the output ( or most of it? ) to the file. See attached.  Does VTune support advanced hotspots on VMware Workstation ( Win 7 guest & Host )?  It would take me a bit to set it up on non-VM environment to see if I get correct results ( even if I do - my expectation was that I could run this on VM as I used to with an old version of VTune - I'm aware of changes ).  I can try running sample and analyzing it on the same VM & see what I get...

here are hotspot columns ( 3 ):

Function                                                                                          Module                  CPU Time:Self
------------------------------------------------------------------------------------------------  ----------------------  -------------
KiFastSystemCallRet                                                                               ntdll.dll                       4.152
func@0x1006b351                                                                                   MSO.DLL                         0.984
func@0x10008f53                                                                                   OLMAPI32.DLL                    0.980
func@0x101608d1                                                                                   MSO.DLL                         0.802
func@0x1015b0bc                                                                                   MSO.DLL                         0.241
func@0x100048c0                                                                                   MSPST32.DLL                     0.204
CUserThread::SendRequest                                                                    mydll.dll                     0.186
 

Summary is attached.

 

0 Kudos
Bernard
Valued Contributor I
713 Views

Looks like most of the CPU time is spent in kernel-to-user mode stub function.  Does your code frequently call into kernel mode?

 

0 Kudos
L_K_
Beginner
713 Views

The application being profiled is Microsoft Outlook so that's expected.  It's not the point, however.  We are trying to figure out where did the Call counts go...Peter was looking for a meaningful  value for CPI as well.

0 Kudos
Peter_W_Intel
Employee
713 Views

They are unexpected results.

Event summary
-------------
Hardware Event Type               Hardware Event Count:Self  Hardware Event Sample Count:Self  Events Per Sample
--------------------------------  -------------------------  --------------------------------  -----------------
INST_RETIRED.ANY                                          0                                 0  2700000          
CPU_CLK_UNHALTED.THREAD                                   0                                 0  2700000          
CPU_CLK_UNHALTED.REF_TSC                        46382069573                             23191  2000003         

No sample are collected for INST_RETIRED.ANY and CPU_CLK_UNHALTED.THREAD, so there is no CPI value.

And, no "call count" column in hotspots report.

Does VTune support advanced hotspots on VMware Workstation ( Win 7 guest & Host )?  

No. You have to work on native operation system. 

You can run basic-hotspots, concurrency, and locksandwaits on VMware workstation with Win 7, because they are user-mode sampling and no PMU resource access. 

0 Kudos
L_K_
Beginner
713 Views

Already then.  Once I get a chance I'll try without virtualization.

0 Kudos
Bernard
Valued Contributor I
713 Views

L K. wrote:

The application being profiled is Microsoft Outlook so that's expected.  It's not the point, however.  We are trying to figure out where did the Call counts go...Peter was looking for a meaningful  value for CPI as well.

I was under assumption that it was your application.

0 Kudos
Reply