Re: tracing memory allocation sizes

From: Tanel Poder <tanel_at_tanelpoder.com>
Date: Sat, 16 Nov 2019 15:18:32 -0500
Message-ID: <CAMHX9J+N6yursSxVNT_+d_u-wFTnhAp=u6N_+HoOevabjBGzpw_at_mail.gmail.com>



Hi,

Back when I was doing such heap allocation tracing for memory leak research with DTrace on Solaris, I wrote this script to extract the allocation comments:

https://github.com/tanelpoder/tpt-oracle/blob/master/dtrace/trace_kghal.sh

The offsets may differ across platforms and DB versions, but I'd imagine that the size somewhere behind that *arg1 pointer too.

--
Tanel Poder
https://blog.tanelpoder.com/seminar

On Thu, Nov 14, 2019 at 7:49 AM Noveljic Nenad <nenad.noveljic_at_vontobel.com>
wrote:


> Does anybody know how to extract the requested and allocated memory size
> from the parameters and return values, respectively, of the functions
> kghalf, kghalo and kghalp?
>
>
>
> Best regards,
>
>
>
> Nenad
>
>
>
> https://nenadnoveljic.com/blog/
>
>
>
> ____________________________________________________
>
> Please consider the environment before printing this e-mail.
>
> Bitte denken Sie an die Umwelt, bevor Sie dieses E-Mail drucken.
>
>
>
-- http://www.freelists.org/webpage/oracle-l
Received on Sat Nov 16 2019 - 21:18:32 CET

Original text of this message