[abd086]: doc.php3  Maximize  Restore  History

Download this file

70 lines (49 with data), 1.7 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php require('start_page.php3'); start_page("doc.php3", "OProfile documentation"); ?>
<h2>Manual</h2>
<p>
An HTML version of the manual for the current version of OProfile can
be found <a href="oprofile/doc/html/oprofile-guide.html">here</a>.
</p>
<h2>Cheat sheet</h2>
<p>
Your 4-step plan to profiling.
</p>
<ol>
<li>
Compile and install oprofile, making sure to use <tt>--with-linux</tt> option to point to
your current kernel source.
</li>
<li>
Start up the profiler :
<div class="listing">
op_start --vmlinux=/path/to/vmlinux --map-file=/path/to/System.map --ctr0-event=CPU_CLK_UNHALTED --ctr0-count=300000
</div>
For Athlon users, use <tt>RETIRED_INSNS</tt> as the event type instead, or one of the others listed by <tt>op_help</tt>.
For RTC mode users, use <tt>--rtc-value=2048</tt> instead of the <tt>--ctr0</tt> options.
</li>
<li>
Now the profiler is running, go do what ever you want to profile.
</li>
<li>
Now let's generate a profile summary :
<div class="listing">
oprofpp -l /path/to/mybinary
</div>
Or, if we built our binary with <tt>-g</tt>, we can produce some annotated source :
<div class="listing">
op_to_source --source-dir=/path/to/source --output-dir=/path/to/annotated-source /path/to/mybinary
</div>
Or we can look at the rankings of the various system components as a whole :
<div class="listing">
op_time -d
</div>
</li>
</ol>
<h2>Event type reference</h2>
<p>
Quick reference for the available event types for the performance counters. The same
info can be retrieved by running <tt>op_help</tt>.
<br />
<a href="intel-events.php3">Intel</a> | <a href="amd-events.php3">AMD</a>
</p>
<?php require('end_page.php3'); end_page("doc.php3"); ?>

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks