google / tcmalloc

Apache License 2.0
4.32k stars 466 forks source link

how to get for memory info like func “malloc_info” #184

Closed chinchilla-forest closed 1 year ago

chinchilla-forest commented 1 year ago

when i use tcmalloc to run this code ,it print nothing。 malloc_info(0, stdout);` So how to get memory info in tcmalloc like malloc_info?

my code is in centos7 system,but the gcc version is 11(use redhat’s devtool11)

chinchilla-forest commented 1 year ago

i think this doc is useful https://github.com/google/tcmalloc/blob/master/docs/stats.md