|
From: Nicholas N. <nj...@cs...> - 2007-11-20 06:37:21
|
On Tue, 20 Nov 2007, Lin Andy-A22318 wrote: > But sometimes, we can't get the conclusion. > For below case, 24.9% is less than 40.4%+18.4%. > In fact, moveToChild only called sqlite3GenericMalloc to get memory.What > does 40.4% mean? > Is it incorrect? > --------------------------------- > Context accounted for 24.9% of measured spacetime > 0x416059C: sqlite3GenericMalloc (os_common.h:177) > 0x4160026: sqlite3MallocRaw (malloc.c:592) > 0x41647B7: sqlite3PagerAcquire (pager.c:3012) > 0x4143BEB: sqlite3BtreeGetPage (btree.c:937) > 0x4143C8A: getAndInitPage (btree.c:964) > Called from: > * 40.4%: 0x414557F: moveToChild (btree.c:2951) > * 18.4%: 0x414588F: sqlite3BtreeCursor (btree.c:2391) I believe it's a bug. Massif has recently been extensively rewritten. The new version should be more reliable than the old one, but its output is different (but hopefully more useful). It will be in Valgrind 3.3.0, but for the moment you can check it out from the SVN trunk. Nick |