Community
cancel
Showing results for 
Search instead for 
Did you mean: 
david_z_
Beginner
59 Views

no information in results

Jump to solution

I've created a test program(just creating 10 threads and increasing a global integer variable 1 per second in each thread). And I use this command to attach vtune to get some hotspots in test:

amplxe-cl -collect hotspots -target-pid 7765 -duration 30

(test's pid is 7765)

after this, I got the results with nothing like this:

amplxe: Collection started. To stop the collection, either press CTRL-C or enter from another console window: amplxe-cl -r /root/test/r025hs -command stop.
amplxe: Collection detached.
amplxe: Using result path `/root/test/r025hs'
amplxe: Executing actions 50 % Generating a report                             

Collection and Platform Info
----------------------------
Parameter                 r025hs                                                                                  
------------------------  ----------------------------------------------------------------------------------------
Application Command Line                                                                                          
Operating System          3.0.13-0.27-default SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 2
Computer Name             linux-6dsc                                                                              
Result Size               1488862                                                                                 
Collection start time     09:46:56 09/10/2014 UTC                                                                 
Collection stop time      09:47:26 09/10/2014 UTC                                                                 

CPU
---
Parameter          r025hs                        
-----------------  ------------------------------
Name               Intel(R) Core(TM) i7 Processor
Frequency          2908808012                    
Logical CPU Count  1                             

Summary
-------
Elapsed Time:  0.000
CPU Time:           
amplxe: Executing actions 100 % done

1. Elapsed Time: 0.000

2. no call stack information in GUI

3.no .th files in result dir

Anyone please help me on this. Thank you in advance:)

0 Kudos
1 Solution
Peter_W_Intel
Employee
59 Views

I can reproduce this problem, based on your description for test case.

The reason was that "var++" take extreme small CPU time, then sleep(1) doesn't has data collected. I changed example with "var++" in loop, which costed more CPU time, then with sleep (1). After doing hotspots collection, the result was expected. Please see my example attached.

# g++ -g threads_10.cpp -o threads_10 -lpthread
# ./threads_10 &
[1] 28407
# amplxe-cl -collect hotspots -target-pid 28407 -duration 30

# amplxe-cl -report hotspots 
amplxe: Using result path `/home/peter/problem_report/r002hs'
amplxe: Executing actions 50 % Generating a report                             
Function  Module      CPU Time:Self  CPU Time:Idle:Self  CPU Time:Poor:Self  CPU Time:Ok:Self  CPU Time:Ideal:Self  CPU Time:Over:Self  Overhead Time:Self  Spin Time:Self
--------  ----------  -------------  ------------------  ------------------  ----------------  -------------------  ------------------  ------------------  --------------
funcA     threads_10          5.640               0.480               3.101             1.570                0.489                   0                   0               0
amplxe: Executing actions 100 % done                                           

 

 

View solution in original post

2 Replies
Peter_W_Intel
Employee
60 Views

I can reproduce this problem, based on your description for test case.

The reason was that "var++" take extreme small CPU time, then sleep(1) doesn't has data collected. I changed example with "var++" in loop, which costed more CPU time, then with sleep (1). After doing hotspots collection, the result was expected. Please see my example attached.

# g++ -g threads_10.cpp -o threads_10 -lpthread
# ./threads_10 &
[1] 28407
# amplxe-cl -collect hotspots -target-pid 28407 -duration 30

# amplxe-cl -report hotspots 
amplxe: Using result path `/home/peter/problem_report/r002hs'
amplxe: Executing actions 50 % Generating a report                             
Function  Module      CPU Time:Self  CPU Time:Idle:Self  CPU Time:Poor:Self  CPU Time:Ok:Self  CPU Time:Ideal:Self  CPU Time:Over:Self  Overhead Time:Self  Spin Time:Self
--------  ----------  -------------  ------------------  ------------------  ----------------  -------------------  ------------------  ------------------  --------------
funcA     threads_10          5.640               0.480               3.101             1.570                0.489                   0                   0               0
amplxe: Executing actions 100 % done                                           

 

 

View solution in original post

david_z_
Beginner
59 Views

Yes! Now I have everything in result! Thank you Peter Wang (Intel).

Reply