mirror of
https://github.com/facebook/sapling.git
synced 2025-01-08 22:56:44 +03:00
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:
parent
1f2523ce3b
commit
02faf32c09
@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user