|
From: Lin Andy-A. <A2...@mo...> - 2007-11-20 03:28:42
|
In my understanding, the context accounted percentage should equal or
greater that the sum percentage of it's called.
For below example, 4.4% is a little greater than 3.2%+0.9%.
---------------------------------
Context accounted for 4.4% of measured spacetime
0x4275E64: std::string::_Rep::_S_create(unsigned, unsigned,
std::allocator const&) (in /usr/lib/libstdc++.so.6.0.3)
Called from:
* 3.2%: 0x4278884: (within /usr/lib/libstdc++.so.6.0.3)
* 0.9%: 0x4275EFF: std::string::_Rep::_M_clone(std::allocator
const&, unsigned) (in /usr/lib/libstdc++.so.6.0.3)
* and 2 other insignificant places
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)=20
Anyone can help me on it, thank in advance.
Regards=20
Andy Lin
|