On Mon, 24 Nov 2008, Attilio Rao wrote:

2008/11/23, Alexander Leidinger <[EMAIL PROTECTED]>:
Quoting Attilio Rao <[EMAIL PROTECTED]> (from Sun, 23 Nov 2008 14:02:22
+0100):


pmcannotate is a tool that prints out sources of a tool (in C or
assembly) with inlined profiling informations retrieved by a prior
pmcstat analysis.
If compared with things like callgraph generation, it prints out
profiling on a per-instance basis and this can be useful to find, for
example, badly handled caches, too high latency instructions, etc.


 Can this also be used to do some code coverage analysis? What I'm
interested in is to enable something, run some tests in userland, disable
this something, and then run a tool which tells me which parts of specific
functions where run or not.

Yes, this is exactly what it does.
You can see traces for any sampled PC and so get a profiling anslysis
on a per-instance basis.

I would add that it is only sampled so you don't see every instruction executed. You can use gcov for that however. That's precisely what it's for.

Thanks,
Jeff


Thanks,
Attilio


--
Peace can only be achieved by understanding - A. Einstein
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

_______________________________________________
freebsd-performance@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-performance
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to