[COMMIT seastar master] De-anonymize duration class

0 views
Skip to first unread message

Commit Bot

<bot@cloudius-systems.com>
unread,
Sep 16, 2022, 1:37:06 AM9/16/22
to seastar-dev@googlegroups.com, loong0
From: loong0 <long...@gmail.com>
Committer: Pavel Emelyanov <xe...@scylladb.com>
Branch: master

De-anonymize duration class

This is to define formatter by the next patch

---
diff --git a/tests/perf/perf_tests.cc b/tests/perf/perf_tests.cc
--- a/tests/perf/perf_tests.cc
+++ b/tests/perf/perf_tests.cc
@@ -160,7 +160,6 @@ struct result {
double inst = 0.;
};

-namespace {

struct duration {
double value;
@@ -183,8 +182,6 @@ static inline std::ostream& operator<<(std::ostream& os, duration d)
return os;
}

-}
-
static constexpr auto header_format_string = "{:<40} {:>11} {:>11} {:>11} {:>11} {:>11} {:>11} {:>11} {:>11}\n";
static constexpr auto format_string = "{:<40} {:>11} {:>11} {:>11} {:>11} {:>11} {:>11.3f} {:>11.3f} {:>11.1f}\n";

Reply all
Reply to author
Forward
0 new messages