diff options
author | David T. Goldblatt <davidtgoldblatt@gmail.com> | 2017-07-20 01:05:28 (GMT) |
---|---|---|
committer | David Goldblatt <davidtgoldblatt@gmail.com> | 2017-07-21 00:58:37 (GMT) |
commit | e215a7bc18a2c3263a6fcca37c1ec53af6c4babd (patch) | |
tree | 25748fd5a06f4add530a620ae0da99869b173970 /include/jemalloc | |
parent | 9761b449c8c6b70abdb4cfa953e59847a84af406 (diff) | |
download | jemalloc-e215a7bc18a2c3263a6fcca37c1ec53af6c4babd.zip jemalloc-e215a7bc18a2c3263a6fcca37c1ec53af6c4babd.tar.gz jemalloc-e215a7bc18a2c3263a6fcca37c1ec53af6c4babd.tar.bz2 |
Add entry and exit logging to all core functions.
I.e. mallloc, free, the allocx API, the posix extensions.
Diffstat (limited to 'include/jemalloc')
-rw-r--r-- | include/jemalloc/internal/log.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/jemalloc/internal/log.h b/include/jemalloc/internal/log.h index 8413a4d..1df8cff 100644 --- a/include/jemalloc/internal/log.h +++ b/include/jemalloc/internal/log.h @@ -30,6 +30,12 @@ * You can then log by writing: * log(log_var, "format string -- my int is %d", my_int); * + * The namespaces currently in use: + * core.[malloc|free|posix_memalign|...].[entry|exit]: + * The entry/exit points of the functions publicly exposed by jemalloc. + * The "entry" variants try to log arguments to the functions, and the + * "exit" ones try to log return values. + * * None of this should be regarded as a stable API for right now. It's intended * as a debugging interface, to let us keep around some of our printf-debugging * statements. |