From: Carl L. <ce...@us...> - 2023-04-28 19:57:10
|
On Fri, 2023-04-28 at 20:30 +0200, Paul Floyd wrote: > > On 28-04-23 18:04, Carl Love wrote: > > > I don't see any explicit "post" errors printed? So I am clearly > > missing something. :-) > > > < snip > > Unfortunately the pesky libc and libstdc++ can get in the way and do > other, system dependent allocations. These allocations are for stuff > like exception handlers and dynamic loading. > > The --ignore-fn options are supposed to filter out all those extras, > leaving us with only the calls to operator new and delete. > > I thought that you might have a different function on power 10. But > looking at the diff from what you posted I only see > > 47c42 > < ->33.24% (4,000B) 0x........: main (new-cpp.cpp:20) > --- > > ->33.24% (4,000B) 0x........: main (new-cpp.cpp:20) > > That's an extra trailing whitespace. > > Could you post the post.diff files, if they aren't too big? OK, not too big. Here is the diff. --- new-cpp.post.exp 2023-04-21 20:54:40.000000000 -0400 +++ new-cpp.post.out 2023-04-24 16:29:56.907990371 -0400 @@ -6,54 +6,61 @@ KB -11.75^ ########### - | # - | # - | # - | :::::::# - | : # - | : # - | ::::::: # :::::::::::: - | : : # : - | : : # : - | : : # : - | : : # : - | : : # : - | : : # : - | ::::::::::::: : # : :::::: - | : : : # : : - | : : : # : : - | : : : # : : :::::: - | : : : # : : : - | : : : # : : : +82.76^ # + | ::#:: + | ::::#: : + | ::: ::#: :::::::::::::::::::::::::::::::: + | : : ::#: ::: + | : : ::#: ::: + | : : ::#: ::: + | : : ::#: ::: + | : : ::#: ::: + | : : ::#: ::: + | : : ::#: ::: + | : : ::#: ::: + | : : ::#: ::: + | : : ::#: ::: + | : : ::#: ::: + | : : ::#: ::: + | : : ::#: ::: + | : : ::#: ::: + | : : ::#: ::: + | : : ::#: ::: 0 +----------------------------------------------------------------------->K B - 0 23.50 + 0 165.5 -Number of snapshots: 10 - Detailed snapshots: [5 (peak)] +Number of snapshots: 12 + Detailed snapshots: [6 (peak)] ------------------------------------------------------------------------------- - n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B) ------------------------------------------------------------------------------- - 0 0 0 0 0 0 - 1 4,008 4,008 4,000 8 0 - 2 8,016 8,016 8,000 16 0 - 3 10,024 10,024 10,000 24 0 - 4 12,032 12,032 12,000 32 0 - 5 12,032 12,032 12,000 32 0 -99.73% (12,000B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc . -->33.24% (4,000B) 0x........: main (new-cpp.cpp:19) + 1 72,712 72,712 72,704 8 0 + 2 76,720 76,720 76,704 16 0 + 3 80,728 80,728 80,704 24 0 + 4 82,736 82,736 82,704 32 0 + 5 84,744 84,744 84,704 40 0 + 6 84,744 84,744 84,704 40 0 +99.95% (84,704B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc . +->85.79% (72,704B) 0x........: ??? (m_trampoline.S:458) +| ->85.79% (72,704B) 0x........: call_init (dl-init.c:70) +| ->85.79% (72,704B) 0x........: _dl_init (dl-init.c:117) +| ->85.79% (72,704B) 0x........: _dl_start_user (in /usr/lib64/ld64.so.2) +| +->04.72% (4,000B) 0x........: main (new-cpp.cpp:19) | -->33.24% (4,000B) 0x........: main (new-cpp.cpp:20) +->04.72% (4,000B) 0x........: main (new-cpp.cpp:20) | -->16.62% (2,000B) 0x........: main (new-cpp.cpp:21) +->02.36% (2,000B) 0x........: main (new-cpp.cpp:21) | -->16.62% (2,000B) 0x........: main (new-cpp.cpp:22) +->02.36% (2,000B) 0x........: main (new-cpp.cpp:22) ------------------------------------------------------------------------------- - n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B) ------------------------------------------------------------------------------- - - 6 16,040 8,024 8,000 24 0 - 7 20,048 4,016 4,000 16 0 - 8 22,056 2,008 2,000 8 0 - 9 24,064 0 0 0 0 + 7 88,752 80,736 80,704 32 0 + 8 92,760 76,728 76,704 24 0 + 9 94,768 74,720 74,704 16 0 + 10 96,776 72,712 72,704 8 0 + 11 169,488 0 0 0 0 |