diff options
author | Jason Evans <je@facebook.com> | 2010-03-04 01:55:03 (GMT) |
---|---|---|
committer | Jason Evans <je@facebook.com> | 2010-03-04 01:55:03 (GMT) |
commit | 3c2d9c899c1fdff411e3db2ee2d102373f121f9f (patch) | |
tree | b78a88b57cfbdaed89154c99d357a704dcee1f1d | |
parent | 698805c5252465ddbdcf7048e5ccf16d02533877 (diff) | |
download | jemalloc-3c2d9c899c1fdff411e3db2ee2d102373f121f9f.zip jemalloc-3c2d9c899c1fdff411e3db2ee2d102373f121f9f.tar.gz jemalloc-3c2d9c899c1fdff411e3db2ee2d102373f121f9f.tar.bz2 |
Print version in malloc_stats_print().
-rw-r--r-- | jemalloc/src/stats.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/jemalloc/src/stats.c b/jemalloc/src/stats.c index dfc2f93..311a5f2 100644 --- a/jemalloc/src/stats.c +++ b/jemalloc/src/stats.c @@ -415,6 +415,7 @@ stats_print(void (*write_cb)(void *, const char *), void *cbopaque, write_cb(cbopaque, "___ Begin jemalloc statistics ___\n"); if (general) { int err; + const char *cpv; bool bv; unsigned uv; ssize_t ssv; @@ -423,6 +424,10 @@ stats_print(void (*write_cb)(void *, const char *), void *cbopaque, bsz = sizeof(bool); ssz = sizeof(size_t); + CTL_GET("version", &cpv, const char *); + write_cb(cbopaque, "Version: "); + write_cb(cbopaque, cpv); + write_cb(cbopaque, "\n"); CTL_GET("config.debug", &bv, bool); write_cb(cbopaque, "Assertions "); write_cb(cbopaque, bv ? "enabled" : "disabled"); |