|
From: Andrew S. <ag...@gm...> - 2007-04-16 23:31:21
|
On 4/13/07, Nicholas Nethercote <nj...@cs...> wrote: > On Fri, 13 Apr 2007, Josef Weidendorfer wrote: > > >> I was wondering if valgrind had the kind of functionality that memspy > >> does. For example, can it tell me which of three data structures > >> referenced in a line of code is experiencing the most cache misses > >> and what's pushing it out of cache? > > > > AFAIK no. > > It should be possible, and I once started something like this, but did > > not finish. However, it already showed some aggregate counters (as part > > of debug output) attributed to global data symbols... > > I have the startings of something like this as well :) It uses client > requests in the source code to specify which bits of memory should be > considered a single entity. But it's not very advanced. Would it be interesting for you to see the memspy source code? I've emailed the authors and they say they are no longer distributing the code since it is so old, but maybe I could ask them if they would share it with you so that you can reimpliment the functionality in Valgrind. -- Andrew Shewmaker |