mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-04 09:30:00 +03:00
Print version in malloc_stats_print().
This commit is contained in:
parent
698805c525
commit
3c2d9c899c
1 changed files with 5 additions and 0 deletions
|
|
@ -415,6 +415,7 @@ stats_print(void (*write_cb)(void *, const char *), void *cbopaque,
|
||||||
write_cb(cbopaque, "___ Begin jemalloc statistics ___\n");
|
write_cb(cbopaque, "___ Begin jemalloc statistics ___\n");
|
||||||
if (general) {
|
if (general) {
|
||||||
int err;
|
int err;
|
||||||
|
const char *cpv;
|
||||||
bool bv;
|
bool bv;
|
||||||
unsigned uv;
|
unsigned uv;
|
||||||
ssize_t ssv;
|
ssize_t ssv;
|
||||||
|
|
@ -423,6 +424,10 @@ stats_print(void (*write_cb)(void *, const char *), void *cbopaque,
|
||||||
bsz = sizeof(bool);
|
bsz = sizeof(bool);
|
||||||
ssz = sizeof(size_t);
|
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);
|
CTL_GET("config.debug", &bv, bool);
|
||||||
write_cb(cbopaque, "Assertions ");
|
write_cb(cbopaque, "Assertions ");
|
||||||
write_cb(cbopaque, bv ? "enabled" : "disabled");
|
write_cb(cbopaque, bv ? "enabled" : "disabled");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue