You can use the LD_PRELOAD env var (https://www.ibm.com/docs/en/spectrum-symphony/7.2.1?topic=optimization-optimizing-memory-consumption-tcmalloc-jemalloc) to use jemalloc or tcmalloc, and debug with them.
[email protected] a következőt írta (2021. június 10., csütörtök, 21:19:15 UTC+2): > I'm using cgo and struggling to find a memory leak which can be easily > detected if I can replace the cgo memory allocator to the one the C library > I'm using have because they did a leak detector implementation there. > > It's possible? > > > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/c352f12e-9b96-4230-8ec7-40a30ca34e1cn%40googlegroups.com.
