[a3a02f]: examples / index.php3 Maximize Restore History

Download this file

index.php3    184 lines (167 with data), 11.3 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
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<?php require("$tmptop../start_page.php3"); start_page("examples/", "OProfile examples"); ?>
<h2>Example reports</h2>
<p>
Below is some example output after a short session profiling on my machine.
Note that the reports have been abridged for readability; links to the full
output are provided.
</p>
<h2>System-wide binary image summary</h2>
<div class="computeroutput">
$ op_time -r<br />
1572216 24.0804 0.0000 /home/moz/bin/real/realplay<br />
1045853 16.0185 0.0000 /home/moz/src/mozilla/xpfe/bootstrap/mozilla-bin<br />
752528 11.5259 0.0000 /boot/2.5.69/vmlinux<br />
720322 11.0326 0.0000 /usr/bin/kdeinit<br />
620607 9.5053 0.0000 /usr/X11R6/bin/XFree86<br />
458894 7.0285 0.0000 /home/moz/src/lyx/lyx-qt/src/lyx<br />
328260 5.0277 0.0000 /usr/local/bin/wineserver<br />
243275 3.7260 0.0000 /usr/local/oprofile/bin/oprofiled<br />
229936 3.5217 0.0000 /usr/local/bin/wine<br />
185594 2.8426 0.0000 /usr/local/bin/xchat<br />
107519 1.6468 0.0000 /oprofile<br />
...<br />
</div>
<p class="fulloutputlink"><a href="op_time_r">Full output (2Kb)</a></p>
<h2>System-wide binary image summary including per-application libraries</h2>
<div class="computeroutput">
$ op_time -rk<br />
2744147 25.7481 0.0000 /home/moz/bin/real/realplay<br />
706163 6.6259 25.7334 /home/moz/bin/real/Common/rmacore.so.6.0<br />
598597 5.6166 21.8136 /lib/i686/libc-2.3.2.so<br />
416988 3.9126 15.1955 /boot/2.5.69/vmlinux<br />
341961 3.2086 12.4615 /home/moz/bin/real/Common/rcacore.so.6.0<br />
296228 2.7795 10.7949 /home/moz/bin/real/Codecs/rncolor.so.6.0<br />
120982 1.1352 4.4087 /home/moz/bin/real/Codecs/cook.so.6.0<br />
93450 0.8768 3.4054 /lib/i686/libpthread-0.10.so<br />
...<br />
1524890 14.3079 0.0000 /home/moz/src/mozilla/xpfe/bootstrap/mozilla-bin<br />
709081 6.6532 46.5005 /home/moz/.mozilla/plugins/libflashplayer.so<br />
144589 1.3567 9.4819 /boot/2.5.69/vmlinux<br />
119456 1.1208 7.8337 /home/moz/src/mozilla/layout/build/libgklayout.so<br />
88811 0.8333 5.8241 /lib/i686/libc-2.3.2.so<br />
78671 0.7382 5.1591 /home/moz/src/mozilla/xpfe/bootstrap/mozilla-bin<br />
61355 0.5757 4.0236 /usr/lib/libglib-1.2.so.0.0.10<br />
45465 0.4266 2.9815 /home/moz/src/mozilla/js/src/libmozjs.so<br />
...<br />
1404207 13.1755 0.0000 /boot/2.5.69/vmlinux<br />
...<br />
</div>
<p class="fulloutputlink"><a href="op_time_rk">Full output (30Kb)</a></p>
<h2>System-wide symbol summary including per-application libraries</h2>
<div class="computeroutput">
$ op_time -Drl -p /lib/modules/2.5.69/kernel/<br />
vma samples % symbol name image name app name<br />
c0107180 1296591 8.89463 default_idle /boot/2.5.69/vmlinux /boot/2.5.69/vmlinux<br />
00000000 966073 6.62727 (no symbol) /home/moz/.mozilla/plugins/libflashplayer.so /home/moz/src/mozilla/xpfe/bootstrap/mozilla-bin<br />
00000000 960804 6.59113 (no symbol) /home/moz/bin/real/Common/rmacore.so.6.0 /home/moz/bin/real/realplay<br />
00000000 463863 3.18211 (no symbol) /home/moz/bin/real/Common/rcacore.so.6.0 /home/moz/bin/real/realplay<br />
4207d870 438119 3.0055 memcpy /lib/i686/libc-2.3.2.so /home/moz/bin/real/realplay<br />
00000000 402029 2.75792 (no symbol) /home/moz/bin/real/Codecs/rncolor.so.6.0 /home/moz/bin/real/realplay<br />
0804c2fc 185135 1.27003 odb_insert /usr/local/oprofile/bin/oprofiled /usr/local/oprofile/bin/oprofiled<br />
00000000 164335 1.12734 (no symbol) /home/moz/bin/real/Codecs/cook.so.6.0 /home/moz/bin/real/realplay<br />
c0115d70 161488 1.10781 mtrr_centaur_report_mcr /boot/2.5.69/vmlinux /boot/2.5.69/vmlinux<br />
00032150 140885 0.966473 TEWidget::setImage(ca const*, int, int) /usr/lib/libkonsolepart.so /usr/bin/kdeinit<br />
4207d200 133348 0.914769 memmove /lib/i686/libc-2.3.2.so /home/moz/bin/real/realplay<br />
0003b990 113394 0.777884 TEScreen::getCookedImage() /usr/lib/libkonsolepart.so /usr/bin/kdeinit<br />
00000000 112270 0.770174 (no symbol) /usr/X11R6/lib/libX11.so.6.2 /usr/bin/kdeinit<br />
00000000 94161 0.645946 (no symbol) /home/moz/bin/real/realplay /home/moz/bin/real/realplay<br />
00000000 93782 0.643346 (no symbol) /usr/bin/vim /usr/bin/vim<br />
0804b51c 91500 0.627691 pop_buffer_value /usr/local/oprofile/bin/oprofiled /usr/local/oprofile/bin/oprofiled<br />
...<br />
</div>
<p class="fulloutputlink"><a href="op_time_Drl.gz">Full output (compressed, 666Kb)</a></p>
<h2>Symbol summary for a single application</h2>
<div class="computeroutput">
$ oprofpp -Drl ./lyx<br />
Cpu type: PIII<br />
Cpu speed was (MHz estimation) : 863.195<br />
Counter 0 counted CPU_CLK_UNHALTED events (clocks processor is not halted) with a unit mask of 0x00 (No unit mask) count 23150<br />
vma samples % symbol name<br />
082619d2 9123 4.35626 _Rb_tree&lt;unsigned short, pair&lt;unsigned short const, int&gt;, unsigned short const&gt;::find(unsigned short const&amp;)<br />
08113542 8502 4.05973 vector&lt;char&gt;::const_iterator::__normal_iterator(char const* const&amp;)<br />
08114242 7123 3.40125 vector&lt;char&gt;::size() const<br />
0811499c 6151 2.93712 vector&lt;char&gt;::const_iterator::difference_type __gnu_cxx::operator-&lt;char const*, char const*, vector&lt;char&gt;&gt;(vector&lt;char&gt;::const_iterator const&amp;, vector&lt;char&gt;::const_iterator const&amp;)<br />
081131f6 6142 2.93282 vector&lt;char&gt;::begin() const<br />
0812e362 5363 2.56085 Paragraph::getFontSettings(BufferParams const&amp;, int) const<br />
08161b9c 4631 2.21131 LyXText::getFont(Buffer const*, ParagraphList::iterator, int) const<br />
08113222 4020 1.91956 vector&lt;char&gt;::end() const<br />
08135252 3981 1.90094 Paragraph::Pimpl::getChar(int) const<br />
08261d0c 3838 1.83265 _Rb_tree&lt;unsigned short, pair&lt;unsigned short const, int&gt;, unsigned short const&gt;::_S_key(_Rb_tree_node&lt;pair&lt;unsigned short const, int&gt;&gt;*)<br />
08261b7a 3692 1.76294 less&lt;unsigned short&gt;::operator()(unsigned short const&amp;, unsigned short const&amp;) const<br />
080a1a2a 3445 1.645 ParagraphList::insert(ParagraphList::iterator, Paragraph const&amp;)<br />
08137b10 3317 1.58388 vector&lt;char&gt;::operator[](unsigned) const<br />
...<br />
</div>
<p class="fulloutputlink"><a href="oprofpp_Drl.gz">Full output (compressed, 306Kb)</a></p>
<h2>Symbol summary for a single application including libraries</h2>
<div class="computeroutput">
$ oprofpp -Dkrl<br />
Cpu type: PIII<br />
Cpu speed was (MHz estimation) : 863.195<br />
Counter 0 counted CPU_CLK_UNHALTED events (clocks processor is not halted) with a unit mask of 0x00 (No unit mask) count 23150<br />
vma samples % symbol name image name<br />
082619d2 9123 2.01187 _Rb_tree&lt;unsigned short, pair&lt;unsigned short const, int&gt;, unsigned short const&gt;::find(unsigned short const&amp;) /home/moz/src/lyx/lyx-qt/src/lyx<br />
08113542 8502 1.87493 vector&lt;char&gt;::const_iterator::__normal_iterator(char const* const&amp;) /home/moz/src/lyx/lyx-qt/src/lyx<br />
00009f30 8395 1.85133 __pthread_alt_unlock /lib/i686/libpthread-0.10.so<br />
08114242 7123 1.57082 vector&lt;char&gt;::size() const /home/moz/src/lyx/lyx-qt/src/lyx<br />
0811499c 6151 1.35647 vector&lt;char&gt;::const_iterator::difference_type __gnu_cxx::operator-&lt;char const*, char const*, vector&lt;char&gt;&gt;(vector&lt;char&gt;::const_iterator const&amp;, vector&lt;char&gt;::const_iterator const&amp;) /home/moz/src/lyx/lyx-qt/src/lyx<br />
081131f6 6142 1.35448 vector&lt;char&gt;::begin() const /home/moz/src/lyx/lyx-qt/src/lyx<br />
0812e362 5363 1.18269 Paragraph::getFontSettings(BufferParams const&amp;, int) const /home/moz/src/lyx/lyx-qt/src/lyx<br />
0000a120 5258 1.15953 __pthread_alt_lock /lib/i686/libpthread-0.10.so<br />
4207d870 4957 1.09316 memcpy /lib/i686/libc-2.3.2.so<br />
...<br />
</div>
<p class="fulloutputlink"><a href="oprofpp_Dkrl.gz">Full output (compressed, 693Kb)</a></p>
<h2>Annotate mixed source/assembly</h2>
<div class="computeroutput">
$ op_to_source -sa --source-dir=/home/moz/src/oprofile ./oprofiled<br />
...<br />
0804b51c &lt;pop_buffer_value&gt;: /* pop_buffer_value total: 183912 19.96% */<br />
:static uint64_t pop_buffer_value(struct transient * trans)<br />
:{<br />
9112 0.989% : 804b51c: push %ebp<br />
5108 0.554% : 804b51d: mov %esp,%ebp<br />
3 0.000% : 804b51f: push %esi<br />
4610 0.500% : 804b520: push %ebx<br />
5079 0.551% : 804b521: mov 0x8(%ebp),%edx<br />
: uint64_t val;<br />
:<br />
: if (!trans-&gt;remaining) {<br />
7109 0.771% : 804b524: mov 0x4(%edx),%eax<br />
10786 1.171% : 804b527: test %eax,%eax<br />
3789 0.411% : 804b529: je 804b55a &lt;pop_buffer_value+0x3e&gt;<br />
3406 0.369% : 804b52b: cmpl $0x4,0x8050618<br />
3757 0.407% : 804b532: mov (%edx),%ecx<br />
3123 0.339% : 804b534: je 804b554 &lt;pop_buffer_value+0x38&gt;<br />
: 804b536: mov (%ecx),%ebx<br />
: 804b538: mov 0x4(%ecx),%esi<br />
: fprintf(stderr, "BUG: popping empty buffer !\n");<br />
: exit(EXIT_FAILURE);<br />
: }<br />
...<br />
</div>
<p class="fulloutputlink"><a href="op_to_source_sa.gz">Full output (compressed, 33Kb)</a></p>
<h2>Annotated source</h2>
<div class="computeroutput">
$ op_to_source --output-dir=/home/moz/src/annotated --source-dir /home/moz/src/oprofile ./oprofiled<br />
op_to_source: file "/usr/include/sys/stat.h" ignored<br />
$ vi /home/moz/src/annotated/daemon/opd_image.c # the annotated source output<br />
...<br />
:static uint64_t pop_buffer_value(struct transient * trans)<br />
27173 2.576% :{ /* pop_buffer_value total: 209298 19.84% */<br />
: uint64_t val;<br />
:<br />
24806 2.351% : if (!trans-&gt;remaining) {<br />
: fprintf(stderr, "BUG: popping empty buffer !\n");<br />
: exit(EXIT_FAILURE);<br />
: }<br />
:<br />
: val = get_buffer_value(trans-&gt;buffer, 0);<br />
5126 0.485% : trans-&gt;remaining--;<br />
5734 0.543% : trans-&gt;buffer += kernel_pointer_size;<br />
: return val;<br />
25299 2.398% :}<br />
...<br />
</div>
<p class="fulloutputlink"><a href="op_to_source.tar.gz">Full output (tarball, 27Kb)</a></p>
<?php require("$top/end_page.php3"); end_page("examples/"); ?>