mblock_manager_stat_print format

pull/37/head
YuQing 2020-03-30 23:20:34 +08:00
parent c6ddfb98a1
commit 201daee3b6
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
Version 1.44 2020-03-29
Version 1.44 2020-03-30
* add test file src/tests/test_pthread_lock.c
* add uniq_skiplist.[hc]
* add function split_string_ex

View File

@ -255,7 +255,7 @@ int fast_mblock_manager_stat_print_ex(const bool hide_empty, const int order_by)
alloc_mem = 0;
used_mem = 0;
delay_free_mem = 0;
logInfo("%20s %8s %8s %12s %10s %10s %10s %10s %10s %12s",
logInfo("%20s %8s %8s %12s %11s %10s %10s %10s %10s %12s",
"name", "el_size", "instance", "alloc_bytes",
"trunc_alloc", "trunk_used", "el_alloc",
"el_used", "delay_free", "used_ratio");
@ -280,7 +280,7 @@ int fast_mblock_manager_stat_print_ex(const bool hide_empty, const int order_by)
}
}
logInfo("%20s %8d %8d %12"PRId64" %10"PRId64" %10"PRId64
logInfo("%20s %8d %8d %12"PRId64" %11"PRId64" %10"PRId64
" %10"PRId64" %10"PRId64" %10"PRId64" %11.2f%%",
pStat->name, pStat->element_size, pStat->instance_count,
amem, pStat->trunk_total_count, pStat->trunk_used_count,