On Tuesday 20 October 2009, Khan Subayal wrote: > Dear all, > > I just started to using valgrind. I want some guidance,...May be the > mail is too long :-) > > My goal is to get the overall or cumulative impact of a set of functions > in an > application, I mean the overall %age of contribution of functions group > to the > total workload of application. In fact each one of these functions is a > wrapper > of a BSD socket API function. > > I have to profile streaming applications and the problem is that > Kcachegrind does > not show the contribution of BSD socket API functions , may be it is > because valgrind does not go > all the way down there.Is there any alternative to valgrind +Kcachegrind
Valgrind profiling tools only see what is happening inside the user level part of a process. I assume you want to see the impact of your socket I/O. This is not easy, as I/O requests usually are put into queues, and I/O happens asynchroneously while the CPU can do other things. The best bet is to use a systemwide sampling tool. For Linux e.g. OProfile or the the newer Perf Events infrastructure supported since 2.6.31. I have it on my TODO to write an import filter for perf.data in KCachegrind... but ASCII output given by "perf report" should do, too. Cheers, Josef ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Valgrind-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/valgrind-users
