[dtrace-discuss] Incorrect information showed by dtrace

Matty
Wed, 28 Feb 2007 15:11:16 -0000

On 2/28/07, Nilendra Jain <nilendra at avaya.com>
wrote:
> I am using dtrace to check memory leaks in my code. I have put probe points
for malloc, calloc, realloc and free. It is basically for a telephony product
that I am working on.
>
> I started dtrace after running my process. The output produced by dtrace
for one telephony call shows that one of my [b]initialization[/b] functions has
been invoked 295 times. But it is an initialization function and it gets called
only once during the lifetime of a phone call. I have verified that by adding a
log statement at the start of the function and checking the log output.
>
> I am not sure if the output of dtrace is wrong or I am not probing the
right way ?

Any reason your not using libumem to look for memory leaks in your
code? I think that might be a better tool for this given job.

Thanks,
- Ryan
--
UNIX Administrator