Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to access tcmalloc MallocExtensions? #224

Closed
CreativePSofficial opened this issue Feb 13, 2024 · 1 comment
Closed

How to access tcmalloc MallocExtensions? #224

CreativePSofficial opened this issue Feb 13, 2024 · 1 comment

Comments

@CreativePSofficial
Copy link

Hello,

I currently have a program compiled with -ltcmalloc_minimal in the linker flags, which is sufficient to route all allocations to tcmalloc.

However, I was wondering how I could easily access MallocExtensions to do some custom stuff without directly including the entire tcmalloc source code into my build.

Thanks.

@ckennelly
Copy link
Collaborator

-ltcmalloc_minimal is coming from https://github.com/gperftools/gperftools.

malloc_extension.h evolves over time, so it needs to be directly included.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants