From: Jeremy F. <je...@go...> - 2002-10-18 18:15:34
|
On Fri, 2002-10-18 at 02:13, Josef Weidendorfer wrote: > I'm not so sure about this. Cachegrind does instrumentation for EVERY original > x86 instruction. > > > The alternative would be to regenerate the code, but I think that would > > be much more expensive. > > Yes. Well, if you really have that much instrumentation it might be cheaper to invalidate the cache and regenerate with instrumentation. Another possibility is to run on the real CPU for a while, and then make a breakpoint trap (or something) drop into the Valgrind virtual machine. No idea how easy that would be to do, but my immediate impression is that it isn't all that hard (though this stuff always has those devil-in-the-details gotchas). J |