|
From: Paul F. <pj...@wa...> - 2023-04-28 18:31:10
|
On 28-04-23 18:04, Carl Love wrote:
> I don't see any explicit "post" errors printed? So I am clearly
> missing something. :-)
>
> I am hoping you can give me a hint here as I am not seeing where the
> issue with the test is. Thanks.
Hi Carl
The test is supposed to be profiling calls to new. That should turn
s* p1 = new s;
s* p2 = new (std::nothrow) s;
char* c1 = new char[2000];
char* c2 = new (std::nothrow) char[2000];
into
KB
11.75^ ###########
| #
| #
| #
| :::::::#
| : #
| : #
| ::::::: # ::::::::::::
| : : # :
| : : # :
| : : # :
| : : # :
| : : # :
| : : # :
| ::::::::::::: : # : ::::::
| : : : # : :
| : : : # : :
| : : : # : : :
| : : : # : : :
| : : : # : : :
0
+----------------------------------------------------------------------->KB
0
23.50
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?
A+
Paul
|