Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

[471b1e]: examples / index.php Maximize Restore History

Download this file

index.php    238 lines (217 with data), 13.0 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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
<?php require("../start_page.php"); 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">$ opreport --exclude-dependent
CPU: PIII, speed 863.195 MHz (estimated)
Counted CPU_CLK_UNHALTED events (clocks processor is not halted) with a unit mask of 0x00 (No unit mask) count 50000
450385 75.6634 cc1plus
60213 10.1156 lyx
29313 4.9245 XFree86
11633 1.9543 as
10204 1.7142 oprofiled
7289 1.2245 vmlinux
7066 1.1871 bash
6417 1.0780 oprofile
6397 1.0747 vim
3027 0.5085 wineserver
1165 0.1957 kdeinit
832 0.1398 wine
...
</div>
<p class="fulloutputlink"><a href="opreport-x">Full output (1Kb)</a></p>
<h2>System-wide binary image summary including per-application libraries</h2>
<div class="computeroutput">$ opreport
CPU: PIII, speed 863.195 MHz (estimated)
Counted CPU_CLK_UNHALTED events (clocks processor is not halted) with a unit mask of 0x00 (No unit mask) count 50000
506605 54.0125 cc1plus
450385 88.9026 cc1plus
28201 5.5667 libc-2.3.2.so
27194 5.3679 vmlinux
677 0.1336 uhci_hcd
89 0.0176 usbcore
51 0.0101 ld-2.3.2.so
...
163209 17.4008 lyx
60213 36.8932 lyx
23881 14.6322 libc-2.3.2.so
21968 13.4600 libstdc++.so.5.0.1
13676 8.3794 libpthread-0.10.so
12988 7.9579 libfreetype.so.6.3.1
10375 6.3569 vmlinux
8599 5.2687 libqt-mt.so.3.0.5
4190 2.5673 ld-2.3.2.so
4157 2.5470 libfontconfig.so.1.0
...
58962 6.2863 kdeinit
16971 28.7829 libqt-mt.so.3.0.5
11533 19.5601 libkonsolepart.so
...
...
</div>
<p class="fulloutputlink"><a href="opreport">Full output (13Kb)</a></p>
<h2>System-wide symbol summary including per-application libraries</h2>
<div class="computeroutput">$ opreport --symbols --image-path=/lib/modules/2.5.75/kernel/
CPU: PIII, speed 863.195 MHz (estimated)
Counted CPU_CLK_UNHALTED events (clocks processor is not halted) with a unit mask of 0x00 (No unit mask) count 50000
vma samples % image name app name symbol name
00000000 450385 48.1828 cc1plus cc1plus (no symbols)
00000000 11617 1.2428 as as (no symbols)
4207d260 7206 0.7709 libc-2.3.2.so cc1plus memset
00000000 7046 0.7538 bash bash (no symbols)
080c0f70 6966 0.7452 XFree86 XFree86 CheckPassiveGrabsOnWindow
00000000 6397 0.6844 vim vim (no symbols)
00032150 5843 0.6251 libkonsolepart.so kdeinit TEWidget::setImage(ca const*, int, int)
420745e0 4928 0.5272 libc-2.3.2.so cc1plus _int_malloc
0804c5a0 4462 0.4774 oprofiled oprofiled odb_insert
00009f30 4154 0.4444 libpthread-0.10.so lyx __pthread_alt_unlock
0003b990 4143 0.4432 libkonsolepart.so kdeinit TEScreen::getCookedImage()
c01163d0 3865 0.4135 vmlinux cc1plus mark_offset_tsc
c0155ef0 3800 0.4065 vmlinux bash do_wp_page
c0156b50 3734 0.3995 vmlinux cc1plus do_anonymous_page
00000000 3410 0.3648 libX11.so.6.2 kdeinit (no symbols)
0810c4ec 3323 0.3555 lyx lyx Paragraph::getFontSettings(BufferParams const&amp;, int) const
...
</div>
<p class="fulloutputlink"><a href="opreport-l.bz2">Full output (compressed, 130Kb)</a></p>
<h2>Symbol summary for a single application</h2>
<div class="computeroutput">$ opreport --exclude-dependent --demangle=smart --symbols `which lyx`
CPU: PIII, speed 863.195 MHz (estimated)
Counted CPU_CLK_UNHALTED events (clocks processor is not halted) with a unit mask of 0x00 (No unit mask) count 50000
vma samples % symbol name
081ec974 5016 8.5096 _Rb_tree&lt;unsigned short, pair&lt;unsigned short const, int&gt;, unsigned short const&gt;::find(unsigned short const&amp;)
0810c4ec 3323 5.6375 Paragraph::getFontSettings(BufferParams const&amp;, int) const
081319d8 3220 5.4627 LyXText::getFont(Buffer const*, Paragraph*, int) const
080e45d8 3011 5.1082 LyXFont::realize(LyXFont const&amp;)
080e3d78 2623 4.4499 LyXFont::LyXFont()
081255a4 1823 3.0927 LyXText::singleWidth(BufferView*, Paragraph*, int, char) const
080e3cf0 1804 3.0605 operator==(LyXFont::FontBits const&amp;, LyXFont::FontBits const&amp;)
081128e0 1729 2.9332 Paragraph::Pimpl::getChar(int) const
081ed020 1380 2.3412 font_metrics::width(char const*, unsigned, LyXFont const&amp;)
08110d60 1310 2.2224 Paragraph::getChar(int) const
081ebc94 1227 2.0816 qfont_loader::getfontinfo(LyXFont const&amp;)
...
</div>
<p class="fulloutputlink"><a href="opreport-xl-lyx.bz2">Full output (compressed, 16Kb)</a></p>
<h2>Symbol summary for a single application including libraries</h2>
<div class="computeroutput">$ opreport --demangle=smart --symbols `which lyx`
CPU: PIII, speed 863.195 MHz (estimated)
Counted CPU_CLK_UNHALTED events (clocks processor is not halted) with a unit mask of 0x00 (No unit mask) count 50000
vma samples % image name symbol name
081ec974 5016 3.1034 lyx _Rb_tree&lt;unsigned short, pair&lt;unsigned short const, int&gt;, unsigned short const&gt;::find(unsigned short const&amp;)
00009f30 4154 2.5701 libpthread-0.10.so __pthread_alt_unlock
0810c4ec 3323 2.0559 lyx Paragraph::getFontSettings(BufferParams const&amp;, int) const
081319d8 3220 1.9922 lyx LyXText::getFont(Buffer const*, Paragraph*, int) const
080e45d8 3011 1.8629 lyx LyXFont::realize(LyXFont const&amp;)
0000a120 2853 1.7652 libpthread-0.10.so __pthread_alt_lock
080e3d78 2623 1.6229 lyx LyXFont::LyXFont()
00069a10 2467 1.5263 libstdc++.so.5.0.1 string::find(char const*, unsigned, unsigned) const
0006a430 2274 1.4069 libstdc++.so.5.0.1 string::compare(char const*) const
4201e850 2169 1.3420 libc-2.3.2.so __GI_setlocale
4207d870 1982 1.2263 libc-2.3.2.so memcpy
...
</div>
<p class="fulloutputlink"><a href="opreport-l-lyx.bz2">Full output (compressed, 43Kb)</a></p>
<h2>Image summary for a single application</h2>
<div class="computeroutput">$ opreport `which lyx`
CPU: PIII, speed 863.195 MHz (estimated)
Counted CPU_CLK_UNHALTED events (clocks processor is not halted) with a unit mask of 0x00 (No unit mask) count 50000
163209 100.0000 lyx
60213 36.8932 lyx
23881 14.6322 libc-2.3.2.so
21968 13.4600 libstdc++.so.5.0.1
13676 8.3794 libpthread-0.10.so
12988 7.9579 libfreetype.so.6.3.1
10375 6.3569 vmlinux
8599 5.2687 libqt-mt.so.3.0.5
4190 2.5673 ld-2.3.2.so
...
</div>
<p class="fulloutputlink"><a href="opreport-lyx">Full output (2Kb)</a></p>
<h2>Call-graph output for a single application</h2>
<div class="computeroutput">$ opreport -cl --demangle=smart `which lyx`
...
-------------------------------------------------------------------------------
1 0.0275 lyx-qt LyXText::getColumnNearX(int, Row const&amp;, int&amp;, bool&amp;) const
1 0.0275 lyx-qt LyXText::computeRowMetrics(int, Row const&amp;) const
1 0.0275 lyx-qt numberOfSeparators(Paragraph const&amp;, Row const&amp;)
1 0.0275 lyx-qt DocIterator::forwardPos()
2 0.0550 lyx-qt Paragraph::isHfill(int) const
6 0.1650 lyx-qt DocIterator::forwardPar()
7 0.1925 lyx-qt RowPainter::paintText()
8 0.2200 lyx-qt Paragraph::isNewline(int) const
9 0.2475 lyx-qt RowPainter::singleWidth(int) const
28 0.7699 lyx-qt LyXText::redoParagraph(int)
29 0.7974 lyx-qt RowPainter::paintFromPos(int&amp;)
47 1.2923 lyx-qt LyXText::singleWidth(Paragraph const&amp;, int) const
128 3.5194 lyx-qt RowPainter::paintChars(int&amp;, bool, bool)
141 3.8768 lyx-qt Paragraph::isSeparator(int) const
400 10.9981 lyx-qt Paragraph::isLineSeparator(int) const
420 11.5480 lyx-qt LyXText::setRowWidth(int, Row&amp;) const
473 13.0052 lyx-qt LyXText::rowBreakPoint(int, Row&amp;) const
1935 53.2032 lyx-qt Paragraph::isInset(int) const
446 1.0910 lyx-qt Paragraph::getChar(int) const
1609 44.2276 lyx-qt vector&lt;char&gt;::size() const
1113 30.5937 lyx-qt vector&lt;char&gt;::operator[](unsigned int) const
446 12.2595 lyx-qt Paragraph::getChar(int) const [self]
188 5.1677 lyx-qt vector&lt;char&gt;::begin() const
79 2.1715 lyx-qt 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;, vect
or<char>::const_iterator const&amp;)
74 2.0341 lyx-qt vector&lt;char&gt;::end() const
72 1.9791 lyx-qt vector&lt;char&gt;::const_iterator::operator+(int const&amp;) const
57 1.5668 lyx-qt vector&lt;char&gt;::const_iterator::operator*() const
-------------------------------------------------------------------------------
...
</div>
<p class="fulloutputlink"><a href="opreport-cl-lyx.bz2">Full output (compressed, 132Kb)</a></p>
<h2>Annotate mixed source/assembly</h2>
<div class="computeroutput">$ opannotate --source --assembly `which oprofiled`
...
: index = hash-&gt;hash_base[odb_do_hash(hash, key)];
: while (index) {
1455 14.2689 : 804c5c2: test %eax,%eax
13 0.1275 : 804c5c4: je 804c5ef <odb_insert+0x4f>
: if (index <= 0 || index &gt;= hash-&gt;descr-&gt;current_size) {
12 0.1177 : 804c5c6: mov 0x8(%esi),%ecx
2 0.0196 : 804c5c9: lea 0x0(%esi,1),%esi
19 0.1863 : 804c5d0: cmp 0x4(%ecx),%eax
78 0.7649 : 804c5d3: jae 804c638 &lt;odb_insert+0x98&gt;
: char * err_msg;
: asprintf(&amp;err_msg, "odb_insert() invalid index %u\n",
: index);
: odb_set_error(hash, err_msg);
: return EXIT_FAILURE;
: }
: node = &amp;hash-&gt;node_base[index];
12 0.1177 : 804c5d5: lea (%eax,%eax,2),%edx
41 0.4021 : 804c5d8: mov (%esi),%eax
: 804c5da: lea (%eax,%edx,4),%ebx
...
</div>
<p class="fulloutputlink"><a href="opannotate-sa.bz2">Full output (compressed, 24Kb)</a></p>
<h2>Annotated source</h2>
<div class="computeroutput">$ opannotate --source --output-dir=/home/moz/src/annotated `which oprofiled`
$ vi /home/moz/src/annotated/home/moz/src/oprofile/daemon/opd_image.c # the annotated source output
...
:static uint64_t pop_buffer_value(struct transient * trans)
254 2.4909 :{ /* pop_buffer_value total: 2105 20.6433 */
: uint64_t val;
:
160 1.5691 : if (!trans-&gt;remaining) {
: fprintf(stderr, "BUG: popping empty buffer !\n");
: exit(EXIT_FAILURE);
: }
:
: val = get_buffer_value(trans-&gt;buffer, 0);
123 1.2062 : trans-&gt;remaining--;
65 0.6374 : trans-&gt;buffer += kernel_pointer_size;
: return val;
230 2.2556 :}
...
</div>
<p class="fulloutputlink"><a href="opannotated.tar.bz2">Full output (tarball, 24Kb)</a></p>
<?php require("$top/end_page.php"); end_page("examples/"); ?>