moss@moss-PC:/usr/src/linux-headers-2.6.35-22$ sudo apt-get install oprofile
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libopagent1
Suggested packages:
oprofile-gui
The following NEW packages will be installed:
libopagent1 oprofile
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 3,281kB of archives.
After this operation, 9,105kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://us.archive.ubuntu.com/ubuntu/ maverick/universe libopagent1 i386 0.9.6-1.1ubuntu1 [21.5kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ maverick/universe oprofile i386 0.9.6-1.1ubuntu1 [3,260kB]
Fetched 3,281kB in 19s (167kB/s)
Selecting previously deselected package libopagent1.
(Reading database ... 122774 files and directories currently installed.)
Unpacking libopagent1 (from .../libopagent1_0.9.6-1.1ubuntu1_i386.deb) ...
Selecting previously deselected package oprofile.
Unpacking oprofile (from .../oprofile_0.9.6-1.1ubuntu1_i386.deb) ...
Processing triggers for doc-base ...
Processing 31 changed 1 added doc-base file(s)...
Registering documents with scrollkeeper...
Processing triggers for man-db ...
Setting up libopagent1 (0.9.6-1.1ubuntu1) ...
Setting up oprofile (0.9.6-1.1ubuntu1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
moss@moss-PC:/usr/src/linux-headers-2.6.35-22$ opreport --exclude-dependent
opreport error: No sample file found: try running opcontrol --dump
or specify a session containing sample files
moss@moss-PC:/usr/src/linux-headers-2.6.35-22$ oprofile
No command 'oprofile' found, did you mean:
Command 'oprofiled' from package 'oprofile' (universe)
oprofile: command not found
moss@moss-PC:/usr/src/linux-headers-2.6.35-22$ oprofiled -version
oprofiled: oprofile 0.9.6 compiled on Sep 11 2010 16:44:31
moss@moss-PC:/usr/src/linux-headers-2.6.35-22$ op_help
No command 'op_help' found, did you mean:
Command 'ophelp' from package 'oprofile' (universe)
op_help: command not found
moss@moss-PC:/usr/src/linux-headers-2.6.35-22$ ophelp
Unable to open cpu_type file for reading
Make sure you have done opcontrol --init
cpu_type 'unset' is not valid
you should upgrade oprofile or force the use of timer mode
moss@moss-PC:/usr/src/linux-headers-2.6.35-22$ sudo opcontrol --init
moss@moss-PC:/usr/src/linux-headers-2.6.35-22$ opreport --exclude-dependent
opreport error: No sample file found: try running opcontrol --dump
or specify a session containing sample files
moss@moss-PC:/usr/src/linux-headers-2.6.35-22$ sudo opcontrol --reset
moss@moss-PC:/usr/src/linux-headers-2.6.35-22$ sudo opcontrol --setup --no-vmlinux
moss@moss-PC:/usr/src/linux-headers-2.6.35-22$ sudo opcontrol --start
Using default event: CPU_CLK_UNHALTED:100000:0:1:1
Using 2.6+ OProfile kernel interface.
Using log file /var/lib/oprofile/samples/oprofiled.log
Daemon started.
Profiler running.
moss@moss-PC:/usr/src/linux-headers-2.6.35-22$ sudo opcontrol --shutdown
Stopping profiling.
Killing daemon.
moss@moss-PC:/usr/src/linux-headers-2.6.35-22$ sudo opreport --long-filenames --threshold 10
CPU: Core 2, speed 1728.96 MHz (estimated)
Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a unit mask of 0x00 (Unhalted core cycles) count 100000
CPU_CLK_UNHALT...|
samples| %|
------------------
87134 35.5909 /no-vmlinux
33927 13.8579 /usr/lib/nvidia-173/xorg/nvidia_drv.so
moss@moss-PC:/usr/src/linux-headers-2.6.35-22$ opreport --exclude-dependent
CPU: Core 2, speed 1728.96 MHz (estimated)
Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a unit mask of 0x00 (Unhalted core cycles) count 100000
CPU_CLK_UNHALT...|
samples| %|
------------------
87134 35.9502 no-vmlinux
33927 13.9978 nvidia_drv.so
14800 6.1063 libglib-2.0.so.0.2600.0
11861 4.8937 libxul.so
11685 4.8211 libc-2.12.1.so
11372 4.6919 libgdk_pixbuf-2.0.so.0.2200.0
9252 3.8172 libgobject-2.0.so.0.2600.0
7395 3.0511 Xorg
6974 2.8774 libpthread-2.12.1.so
5557 2.2927 libmozjs.so
5496 2.2676 qq
4942 2.0390 libpixman-1.so.0.18.4
4816 1.9870 libgdk-x11-2.0.so.0.2200.0
4500 1.8566 libcairo.so.2.11000.0
4252 1.7543 libwfb.so
3359 1.3859 libgtk-x11-2.0.so.0.2200.0
1569 0.6473 libX11.so.6.3.0
1160 0.4786 libnspr4.so
1109 0.4576 oprofiled
1104 0.4555 firefox-bin
959 0.3957 libpango-1.0.so.0.2800.1
869 0.3585 libxcb.so.1.1.0
820 0.3383 libpangoft2-1.0.so.0.2800.1
764 0.3152 libdbus-1.so.3.5.2
665 0.2744 libz.so.1.2.3.4
497 0.2051 libstdc++.so.6.0.14
455 0.1877 ld-2.12.1.so
338 0.1395 libfreetype.so.6.6.0
324 0.1337 dbus-daemon
313 0.1291 libgthread-2.0.so.0.2600.0
311 0.1283 libfontconfig.so.1.4.4
282 0.1163 libpng12.so.0.44.0
268 0.1106 libXrender.so.1.3.0
264 0.1089 metacity
260 0.1073 libm-2.12.1.so
224 0.0924 libpixmap.so
210 0.0866 libpixbufloader-gif.so
202 0.0833 bash
188 0.0776 evdev_drv.so
147 0.0607 librt-2.12.1.so
146 0.0602 libpixbufloader-bmp.so
118 0.0487 libwnck-1.so.22.3.30
116 0.0479 libextmod.so
114 0.0470 libpangocairo-1.0.so.0.2800.1
99 0.0408 libvte.so.9.2600.0
97 0.0400 libORBit-2.so.0.1.0
92 0.0380 libgvfscommon.so.0.0.0
79 0.0326 libudev.so.0.9.1
75 0.0309 libgio-2.0.so.0.2600.0
71 0.0293 libdbus-glib-1.so.2.1.0
50 0.0206 libfile.so
49 0.0202 libxklavier.so.16.0.0
37 0.0153 libexpat.so.1.5.2
35 0.0144 libgcrypt.so.11.5.3
32 0.0132 libscim-1.0.so.8.2.4
30 0.0124 libXext.so.6.4.0
29 0.0120 libplc4.so
28 0.0116 nautilus
28 0.0116 libstartup-notification-1.so.0.0.0
26 0.0107 libsqlite3.so
25 0.0103 NetworkManager
23 0.0095 x11.so
22 0.0091 libpcre.so.3.12.1
21 0.0087 pango-basic-fc.so
20 0.0083 librsvg-2.so.2.32.0
18 0.0074 libXi.so.6.1.0
16 0.0066 libkeyboard.so
15 0.0062 libgcc_s.so.1
14 0.0058 gnome-panel
14 0.0058 libscim-gtkutils-1.0.so.8.2.4
13 0.0054 libgconf-2.so.4.1.5
13 0.0054 libxml2.so.2.7.7
12 0.0050 syndaemon
12 0.0050 libXcursor.so.1.0.2
11 0.0045 libplds4.so
11 0.0045 libcanberra-gtk-module.so
9 0.0037 libdbe.so
8 0.0033 liba11y-keyboard.so
8 0.0033 libmouse.so
7 0.0029 libpixbufloader-png.so
6 0.0025 mawk
6 0.0025 libgconfbackend-xml.so
6 0.0025 libnm-util.so.1.6.0
6 0.0025 libpulse-mainloop-glib.so.0.0.4
5 0.0021 libgnome-desktop-2.so.17.1.4
5 0.0021 libnm-glib.so.2.4.1
5 0.0021 socket.so
5 0.0021 rsyslogd
4 0.0017 libnss_files-2.12.1.so
3 0.0012 dash
3 0.0012 libpam.so.0.82.2
3 0.0012 python2.6
3 0.0012 sudo
3 0.0012 libkeybindings.so
3 0.0012 im-xim.so
3 0.0012 libXfixes.so.3.1.0
3 0.0012 libpanel-applet-2.so.0.2.68
3 0.0012 libusbmuxd.so.1.0.4
2 8.3e-04 grep
2 8.3e-04 wpa_supplicant
2 8.3e-04 nm-applet
2 8.3e-04 libmedia-keys.so
2 8.3e-04 libxrandr.so
2 8.3e-04 libscim-x11utils-1.0.so.8.2.4
1 4.1e-04 mkdir
1 4.1e-04 rm
1 4.1e-04 libncurses.so.5.7
1 4.1e-04 libnss_compat-2.12.1.so
1 4.1e-04 libresolv-2.12.1.so
1 4.1e-04 libselinux.so.1
1 4.1e-04 gnome-power-manager
1 4.1e-04 gnome-terminal
1 4.1e-04 libnss3.so
1 4.1e-04 UTF-16.so
1 4.1e-04 libgioremote-volume-monitor.so
1 4.1e-04 libgvfsdbus.so
1 4.1e-04 libXss.so.1.0.0
1 4.1e-04 libbonoboui-2.so.0.0.0
1 4.1e-04 libck-connector.so.0.0.0
1 4.1e-04 libgnome-keyring.so.0.1.1
1 4.1e-04 libpyglib-2.0-python2.6.so.0.0.0
1 4.1e-04 simple.so
1 4.1e-04 scim-panel-gtk
1 4.1e-04 udisks-daemon
moss@moss-PC:/usr/src/linux-headers-2.6.35-22$
OProfile on Ubuntu 10.10 (OCT. 13, 2010)
最新推荐文章于 2017-12-22 11:05:53 发布