Skip to content

add custom allocation tracking hooks - #1396

Open
Eduard Voronkin (Noxybot) wants to merge 2 commits into
microsoft:dev3from
Noxybot:custom-allocation-hooks
Open

add custom allocation tracking hooks#1396
Eduard Voronkin (Noxybot) wants to merge 2 commits into
microsoft:dev3from
Noxybot:custom-allocation-hooks

Conversation

@Noxybot

Copy link
Copy Markdown
Contributor

hi Daan (@daanx) - sometimes applications might want to defined custom memory tracking -- what do you think about providing such tiny machinery for this?
My use case is that we're going to define mi_track_malloc_hook / mi_track_free_hook in our application to track some of the allocation callstacks.

This tracking should be very cheap - hence why:

#define MI_TRACK_ENABLED      0
#define MI_TRACK_HEAP_DESTROY 0

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

Successfully merging this pull request may close these issues.

1 participant