intel vtune yukai hong department of mathematics national taiwan university july 24, 2008

34
Intel VTune Yukai Hong Department of Mathematics National Taiwan University July 24, 2008

Upload: ralph-wherry

Post on 29-Mar-2015

218 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: Intel VTune Yukai Hong Department of Mathematics National Taiwan University July 24, 2008

Intel VTune

Yukai Hong

Department of MathematicsNational Taiwan University

July 24, 2008

Page 2: Intel VTune Yukai Hong Department of Mathematics National Taiwan University July 24, 2008

Installation of Intel VTune

Step 1

2/34Intel VTune Yukai Hong

Page 3: Intel VTune Yukai Hong Department of Mathematics National Taiwan University July 24, 2008

Step 2

3/34

Installation of Intel VTune

Intel VTune Yukai Hong

Page 4: Intel VTune Yukai Hong Department of Mathematics National Taiwan University July 24, 2008

Step 3

4/34

Installation of Intel VTune

Intel VTune Yukai Hong

Page 5: Intel VTune Yukai Hong Department of Mathematics National Taiwan University July 24, 2008

Step 4

Get the serial number from Intel website with free registration.

5/34

Installation of Intel VTune

Intel VTune Yukai Hong

Page 6: Intel VTune Yukai Hong Department of Mathematics National Taiwan University July 24, 2008

Step 5

6/34

Installation of Intel VTune

Intel VTune Yukai Hong

Page 7: Intel VTune Yukai Hong Department of Mathematics National Taiwan University July 24, 2008

Step 6

Enforcing installing since the Linux version does not support.

7/34

Installation of Intel VTune

Intel VTune Yukai Hong

Page 8: Intel VTune Yukai Hong Department of Mathematics National Taiwan University July 24, 2008

Step 7

Read the documentations.

8/34

Installation of Intel VTune

Intel VTune Yukai Hong

Page 9: Intel VTune Yukai Hong Department of Mathematics National Taiwan University July 24, 2008

Step 8

9/34

Installation of Intel VTune

Intel VTune Yukai Hong

Page 10: Intel VTune Yukai Hong Department of Mathematics National Taiwan University July 24, 2008

Step 9

10/34

Installation of Intel VTune

Intel VTune Yukai Hong

Page 11: Intel VTune Yukai Hong Department of Mathematics National Taiwan University July 24, 2008

Step 10

11/34

Installation of Intel VTune

Intel VTune Yukai Hong

Page 12: Intel VTune Yukai Hong Department of Mathematics National Taiwan University July 24, 2008

Step 11

12/34

Installation of Intel VTune

Intel VTune Yukai Hong

Page 13: Intel VTune Yukai Hong Department of Mathematics National Taiwan University July 24, 2008

Step 12

13/34

Installation of Intel VTune

Intel VTune Yukai Hong

Page 14: Intel VTune Yukai Hong Department of Mathematics National Taiwan University July 24, 2008

Step 13

Change the authority of global folders for all user.

14/34

Installation of Intel VTune

Intel VTune Yukai Hong

Page 15: Intel VTune Yukai Hong Department of Mathematics National Taiwan University July 24, 2008

Starting of Intel VTune

vtl: text modevtlec: graphic mode

15/34Intel VTune Yukai Hong

Page 16: Intel VTune Yukai Hong Department of Mathematics National Taiwan University July 24, 2008

Usage of Intel VTune

Set the personal workspace.

16/34Intel VTune Yukai Hong

Page 17: Intel VTune Yukai Hong Department of Mathematics National Taiwan University July 24, 2008

Usage of Intel VTune

17/34Intel VTune Yukai Hong

Page 18: Intel VTune Yukai Hong Department of Mathematics National Taiwan University July 24, 2008

Usage of Intel VTune

Select Call Graph option to analyze program with analytic graph.

18/34Intel VTune Yukai Hong

Page 19: Intel VTune Yukai Hong Department of Mathematics National Taiwan University July 24, 2008

Usage of Intel VTune

Select Linux executable option to analyze compiled file.

19/34Intel VTune Yukai Hong

Page 20: Intel VTune Yukai Hong Department of Mathematics National Taiwan University July 24, 2008

Usage of Intel VTune

Select compiled or executable file to launch and analyze.

20/34Intel VTune Yukai Hong

Page 21: Intel VTune Yukai Hong Department of Mathematics National Taiwan University July 24, 2008

Usage of Intel VTune

After launching, double click Call Graph Results.

21/34Intel VTune Yukai Hong

Page 22: Intel VTune Yukai Hong Department of Mathematics National Taiwan University July 24, 2008

Usage of Intel VTune

The red part appears.

If you launch more than one file, it has more than one label.

22/34Intel VTune Yukai Hong

Page 23: Intel VTune Yukai Hong Department of Mathematics National Taiwan University July 24, 2008

Usage of Intel VTune

The red part shows the all the details for each function.

23/34Intel VTune Yukai Hong

Page 24: Intel VTune Yukai Hong Department of Mathematics National Taiwan University July 24, 2008

Usage of Intel VTune

The red part shows the called (tree) graph of all functions.

24/34Intel VTune Yukai Hong

Page 25: Intel VTune Yukai Hong Department of Mathematics National Taiwan University July 24, 2008

Usage of Intel VTune

The red part shows the information on launching the file.

25/34Intel VTune Yukai Hong

Page 26: Intel VTune Yukai Hong Department of Mathematics National Taiwan University July 24, 2008

Usage of Intel VTune

Your launch file name and others are standard library.

26/34Intel VTune Yukai Hong

Page 27: Intel VTune Yukai Hong Department of Mathematics National Taiwan University July 24, 2008

Usage of Intel VTune

You can see all detailed information for each function.

27/34Intel VTune Yukai Hong

Page 28: Intel VTune Yukai Hong Department of Mathematics National Taiwan University July 24, 2008

Usage of Intel VTune

Include details

(1) calls

(2) average self time per call

(3) self time

(4) total time

(5) self wait time

(6) total wait time

(7) class

(8) module path

(9) full name

28/34Intel VTune Yukai Hong

Page 29: Intel VTune Yukai Hong Department of Mathematics National Taiwan University July 24, 2008

Usage of Intel VTune

Include details

(10) source file

(11) % in function

(12) average total time per call

(13) callers

(14) callees

(15) address

29/34Intel VTune Yukai Hong

Page 30: Intel VTune Yukai Hong Department of Mathematics National Taiwan University July 24, 2008

Usage of Intel VTune

Select one of functions for more detailed information.

30/34Intel VTune Yukai Hong

Page 31: Intel VTune Yukai Hong Department of Mathematics National Taiwan University July 24, 2008

Usage of Intel VTune

(1) The first part shows which function call it.

In this case, it means function A calls function B1.

(2) The second part shows which function are called by it.

In this case, it means function B1 calls C1, C2 and C3.

31/34Intel VTune Yukai Hong

Page 32: Intel VTune Yukai Hong Department of Mathematics National Taiwan University July 24, 2008

Usage of Intel VTune

Click each element on graph can show more detailed information.

32/34Intel VTune Yukai Hong

Page 33: Intel VTune Yukai Hong Department of Mathematics National Taiwan University July 24, 2008

Usage of Intel VTune

Highlight option can show only special terms on graph.

33/34Intel VTune Yukai Hong

Page 34: Intel VTune Yukai Hong Department of Mathematics National Taiwan University July 24, 2008

Thanks

34/34Intel VTune Yukai Hong