MCPcopy Create free account
hub / github.com/ElementsProject/elements / PrintStats

Method PrintStats

src/leveldb/benchmarks/db_bench.cc:885–891  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

883 void Compact(ThreadState* thread) { db_->CompactRange(nullptr, nullptr); }
884
885 void PrintStats(const char* key) {
886 std::string stats;
887 if (!db_->GetProperty(key, &stats)) {
888 stats = "(failed)";
889 }
890 fprintf(stdout, "\n%s\n", stats.c_str());
891 }
892
893 static void WriteToFile(void* arg, const char* buf, int n) {
894 reinterpret_cast<WritableFile*>(arg)->Append(Slice(buf, n));

Callers

nothing calls this directly

Calls 1

GetPropertyMethod · 0.45

Tested by

no test coverage detected