Doing Profiling

Christian Esken c.esken at cityweb.de
Wed Dec 11 21:23:28 GMT 2002


Am Wednesday 11 December 2002 20:59 schrieb Harri Porten:
> On Wed, 11 Dec 2002, Christian Esken wrote:
> > Anybody knows how to get timings?
>
> Use (k)cachegrind.
>
> Harri.

OK,

I downloaded, patched and compiled the cachegrind (valgrind).
"Normal" applications work, but I cannot get it to work with
any KDE application (~ KDE3.1RC4).
It always fails with the same assertion (Assertion `dst->a >= src->a' failed.), see below.

Anybody encounterd this?

Christian

   
chris at bjork:~/src/i/valgrind-1.0.4> cachegrind -v --dumpat=KonqMainWindow::slotReload kresemble
==10078== cachegrind-1.0.4, an I1/D1/L2 cache profiler for x86 GNU/Linux.
==10078== Copyright (C) 2000-2002, and GNU GPL'd, by Julian Seward.
==10078== Startup, with flags:
==10078==    -v
==10078==    --dumpat=KonqMainWindow::slotReload
==10078==    --cachesim=yes
==10078== Reading syms from /opt/kdehead/bin-stripped/kresemble
==10078==    object doesn't have any debug info
==10078== Reading syms from /lib/ld-2.2.5.so
==10078==    object doesn't have any debug info
==10078== Reading syms from /usr/local/lib/valgrind/valgrind.so
==10078== Reading syms from /opt/kdehead/lib/libkdeprint.so.4.1.0
[...]
==10078== Reading syms from /usr/lib/libfreetype.so.6.3.0
==10078== Estimated CPU clock rate is 451 MHz
==10078== Cache configuration used:
==10078==   I1: 16384B, 4-way, 32B lines
==10078==   D1: 16384B, 4-way, 32B lines
==10078==   L2: 524288B, 4-way, 32B lines
==10078==

valgrind: vg_cachesim.c:431 (sub_cc): Assertion `dst->a >= src->a' failed.

sched status:

Thread 1: status = Runnable, associated_mx = 0x0, associated_cv = 0x0
==10078==    at 0x41541DB6: profil_counter (in /lib/libc.so.6)
==10078==    by 0x4005BAE4: ??? (/tmp/ccQpigVh.s:16)
==10078==    by 0x40007D06: do_lookup (in /lib/ld-2.2.5.so)
==10078==    by 0x40006BF3: _dl_lookup_symbol (in /lib/ld-2.2.5.so)


For fixes for some common problems, see FAQ.txt in the source distribution.

Please report this bug to me at: jseward at acm.org






More information about the kde-core-devel mailing list