Julian Seward wrote:

> I suspect not.  In any case counting insns is not terribly expensive,
> so the gain you'd get would be modest.

OK.

> I suspect the names are present in the callgrind.out file, and so
> callgrind_annotate just slices out those that you list.  It doesn't
> itself know the names.  But what part of the .c files of callgrind
> generates the names, I have no idea.

The only usage of the word "event" in the callgrind.out file, apart from
the names of functions that happen to include "event", is in the header:

$ more callgrind.out.xyz
version: 1
creator: callgrind-3.8.1
pid: 7926
cmd:  xxxx.xxx
part: 1

desc: I1 cache:
desc: D1 cache:
desc: LL cache:

desc: Timerange: Basic block 0 - 699103124
desc: Trigger: Program termination

positions: line
events: Ir
summary: 4496324814

ob=(2) ???
fl=(2) ???
fn=(302) 0x00000000053fecd8
0 2
cob=(8) /lib64/libdl-2.11.1.so
cfi=(8) ???
cfn=(304) 0x0000000000000df0
calls=1 0
...


That doesn't look as if there are any other events present, unless they're
called something different. I realise I've jumped to the conclusion that
calls are events, and this might not be true.

I guess I can write something to digest the .out file and produce call
counts from it.

thanks,

--
John Dallman

-----------------
Siemens Industry Software Limited is a limited company registered in England 
and Wales.
Registered number: 3476850.
Registered office: Faraday House, Sir William Siemens Square, Frimley, Surrey, 
GU16 8QD.

------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to