pretty-print the output of "eden_store_util show_sizes"

Summary: Use `folly::prettyPrint()` when printing the sizes.

Reviewed By: chadaustin

Differential Revision: D15398827

fbshipit-source-id: 17b1bee7b78f63c5b766aad8a65f1a8f776bf6b4
This commit is contained in:
Adam Simpkins 2019-05-20 11:48:56 -07:00 committed by Facebook Github Bot
parent 1f2523ce3b
commit 02faf32c09

View File

@ -12,6 +12,7 @@
#include <optional>
#include <folly/Range.h>
#include <folly/String.h>
#include <folly/container/Array.h>
#include <folly/container/Enumerate.h>
#include <folly/init/Init.h>
@ -197,8 +198,10 @@ class ShowSizesCommand : public Command {
for (const auto& iter : folly::enumerate(kKeySpaceRecords)) {
LOG(INFO) << "Column family \"" << iter->name << "\": "
<< localStore->getApproximateSize(
static_cast<LocalStore::KeySpace>(iter.index));
<< folly::prettyPrint(
localStore->getApproximateSize(
static_cast<LocalStore::KeySpace>(iter.index)),
folly::PRETTY_BYTES_METRIC);
}
}
};