mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-30 22:47:16 +08:00
lmdb: output subtotal % info for each dbi-table.
Change-Id: I897d9fcdf9df4149045a0867a982716bfe7acbe4
This commit is contained in:
parent
7fc3427b9c
commit
5856a6bb6e
@ -691,8 +691,9 @@ int main(int argc, char *argv[])
|
|||||||
total_page_bytes - total_payload_bytes);
|
total_page_bytes - total_payload_bytes);
|
||||||
for (i = 1; i < MAX_DBI && dbi_names[i]; ++i) {
|
for (i = 1; i < MAX_DBI && dbi_names[i]; ++i) {
|
||||||
size_t dbi_bytes = dbi_pages[i] * stat.ms_psize;
|
size_t dbi_bytes = dbi_pages[i] * stat.ms_psize;
|
||||||
print(" %s: %zu total, payload %.2f%% (%zu), unused %.2f%% (%zu)\n",
|
print(" %s: subtotal %.2f%% (%zu), payload %.2f%% (%zu), unused %.2f%% (%zu)\n",
|
||||||
dbi_names[i], dbi_bytes,
|
dbi_names[i],
|
||||||
|
dbi_bytes * 100.0 / total_page_bytes, dbi_bytes,
|
||||||
dbi_payload_bytes[i] * 100.0 / dbi_bytes, dbi_payload_bytes[i],
|
dbi_payload_bytes[i] * 100.0 / dbi_bytes, dbi_payload_bytes[i],
|
||||||
(dbi_bytes - dbi_payload_bytes[i]) * 100.0 / dbi_bytes,
|
(dbi_bytes - dbi_payload_bytes[i]) * 100.0 / dbi_bytes,
|
||||||
dbi_bytes - dbi_payload_bytes[i]);
|
dbi_bytes - dbi_payload_bytes[i]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user