Thanks for the link. even valgrind gives good info on go binary for C 
functions. 

Regards


On Tuesday, April 21, 2020 at 4:01:07 AM UTC+5:30, robert engels wrote:
>
> see 
> https://www.gnu.org/software/libc/manual/html_node/Allocation-Debugging.html 
> for 
> C memory debugging
>
> On Apr 20, 2020, at 1:19 PM, Pavan <sudars...@gmail.com <javascript:>> 
> wrote:
>
> Hi, I am debugging memory leak in a go application. It has lot of C 
> functions called with in. 
> I am trying to use pprof.WriteHeapProfilepprof to dump the memory 
> allocations .
>
> after generating dump file with WriteHeapProfile, it doesnt indicate 
> memory allocations with-in C functions. 
>
> ex: If i call C.greet function and do lot of mallocs inside C function, 
> greet, it doesnt indicate the greet function. 
>
> Please let me know if there are other profilers when C functions are 
> involved with go programs. 
>
>
> Regards,
> Pavan
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to golan...@googlegroups.com <javascript:>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/golang-nuts/6af1d1ec-b8d2-4545-a737-21cf1471d7a3%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/golang-nuts/6af1d1ec-b8d2-4545-a737-21cf1471d7a3%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/6ba42810-9dcf-4b47-809b-722b28db180b%40googlegroups.com.

Reply via email to