From: Dong Hai-A. <Hai...@fr...> - 2009-03-11 21:10:48
|
Hi All, Can anyone explain why sample counts are so different when I was profiling the same application? the only difference was "Separate options" used, Separate options=none vs. Separate options=all. I am expecting similar samples count, but the difference are huge, something wrong? thanks, Hai ###################################################################### [ahd007@dell-t5400 op]$ sudo opcontrol --status Daemon running: pid 22016 Event 0: CPU_CLK_UNHALTED:100000:0:1:1 Separate options: none vmlinux file: none Image filter: gdpalette Call-graph depth: 8 [ahd007@dell-t5400 op]$ opreport --long-filenames CPU: Core 2, speed 1994.98 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| %| ------------------ 355 100.000 /home/ahd007/tmp/op/gdpalette ####################################################################### [ahd007@dell-t5400 op]$ sudo opcontrol --status Daemon running: pid 30000 Event 0: CPU_CLK_UNHALTED:100000:0:1:1 Separate options: library kernel thread cpu vmlinux file: none Image filter: gdpalette Call-graph depth: 8 [ahd007@dell-t5400 op]$ opreport --long-filenames CPU: Core 2, speed 1994.98 MHz (estimated) Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a unit mask of 0x00 (Unhalted core cycles) count 100000 Samples on CPU 0 Samples on CPU 3 cpu:0| cpu:3| samples| %| samples| %| ------------------------------------ 1 100.000 96415 100.000 /home/ahd007/tmp/op/gdpalette cpu:0| cpu:3| samples| %| samples| %| ------------------------------------ 1 100.000 472 0.4896 /no-vmlinux 0 0 5287 5.4836 /home/ahd007/tmp/op/gdpalette 0 0 12 0.0124 /lib64/ld-2.9.so 0 0 122 0.1265 /lib64/libc-2.9.so 0 0 85117 88.2819 /lib64/libm-2.9.so 0 0 1769 1.8348 /lib64/libz.so.1.2.3 0 0 1465 1.5195 /usr/lib64/libgd.so.2.0.0 0 0 2171 2.2517 /usr/lib64/libpng12.so.0.31.0 |
From: Maynard J. <may...@us...> - 2009-03-12 14:54:20
|
Dong Hai-AHD007 wrote: > Hi All, > > Can anyone explain why sample counts are so different when I was > profiling the same application? the only difference was "Separate > options" used, Separate options=none vs. Separate options=all. I am > expecting similar samples count, but the difference are huge, something > wrong? >From section 3.1 of the OProfile user manual (http://oprofile.sourceforge.net/doc/controlling.html#controlling-daemon): "Image filtering. If you specify one or more absolute paths to binaries, OProfile will only produce profile results for those binary images. This is useful for restricting the sometimes voluminous output you may get otherwise, especially with --separate=thread. Note that if you are using --separate=lib or --separate=kernel, then if you specification an application binary, the shared libraries and kernel code are included." -Maynard > > thanks, > Hai > > ###################################################################### > [ahd007@dell-t5400 op]$ sudo opcontrol --status > Daemon running: pid 22016 > Event 0: CPU_CLK_UNHALTED:100000:0:1:1 > Separate options: none > vmlinux file: none > Image filter: gdpalette > Call-graph depth: 8 > > > [ahd007@dell-t5400 op]$ opreport --long-filenames > CPU: Core 2, speed 1994.98 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| %| > ------------------ > 355 100.000 /home/ahd007/tmp/op/gdpalette > > ####################################################################### > > [ahd007@dell-t5400 op]$ sudo opcontrol --status > Daemon running: pid 30000 > Event 0: CPU_CLK_UNHALTED:100000:0:1:1 > Separate options: library kernel thread cpu > vmlinux file: none > Image filter: gdpalette > Call-graph depth: 8 > > > [ahd007@dell-t5400 op]$ opreport --long-filenames > CPU: Core 2, speed 1994.98 MHz (estimated) > Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a > unit mask of 0x00 (Unhalted core cycles) count 100000 Samples on CPU 0 > Samples on CPU 3 > cpu:0| cpu:3| > samples| %| samples| %| > ------------------------------------ > 1 100.000 96415 100.000 /home/ahd007/tmp/op/gdpalette > cpu:0| cpu:3| > samples| %| samples| %| > ------------------------------------ > 1 100.000 472 0.4896 /no-vmlinux > 0 0 5287 5.4836 > /home/ahd007/tmp/op/gdpalette > 0 0 12 0.0124 /lib64/ld-2.9.so > 0 0 122 0.1265 /lib64/libc-2.9.so > 0 0 85117 88.2819 /lib64/libm-2.9.so > 0 0 1769 1.8348 /lib64/libz.so.1.2.3 > 0 0 1465 1.5195 /usr/lib64/libgd.so.2.0.0 > 0 0 2171 2.2517 > /usr/lib64/libpng12.so.0.31.0 > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > oprofile-list mailing list > opr...@li... > https://lists.sourceforge.net/lists/listinfo/oprofile-list |