aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/monlib/dynamic_counters
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:48 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:48 +0300
commit9abfb1a53b7f7b791444d1378e645d8fad9b06ed (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /library/cpp/monlib/dynamic_counters
parent8cbc307de0221f84c80c42dcbe07d40727537e2c (diff)
downloadydb-9abfb1a53b7f7b791444d1378e645d8fad9b06ed.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/monlib/dynamic_counters')
-rw-r--r--library/cpp/monlib/dynamic_counters/counters.cpp4
-rw-r--r--library/cpp/monlib/dynamic_counters/counters.h4
-rw-r--r--library/cpp/monlib/dynamic_counters/counters_ut.cpp18
-rw-r--r--library/cpp/monlib/dynamic_counters/encode_ut.cpp6
-rw-r--r--library/cpp/monlib/dynamic_counters/golovan_page.cpp2
5 files changed, 17 insertions, 17 deletions
diff --git a/library/cpp/monlib/dynamic_counters/counters.cpp b/library/cpp/monlib/dynamic_counters/counters.cpp
index 339b6c3a07..3635d87d0d 100644
--- a/library/cpp/monlib/dynamic_counters/counters.cpp
+++ b/library/cpp/monlib/dynamic_counters/counters.cpp
@@ -153,7 +153,7 @@ void TDynamicCounters::MergeWithSubgroup(const TString& name, const TString& val
auto it = Counters.find({name, value});
Y_VERIFY(it != Counters.end());
TIntrusivePtr<TDynamicCounters> subgroup = AsDynamicCounters(it->second);
- Y_VERIFY(subgroup);
+ Y_VERIFY(subgroup);
Counters.erase(it);
Counters.merge(subgroup->Resign());
AtomicAdd(ExpiringCount, AtomicSwap(&subgroup->ExpiringCount, 0));
@@ -200,7 +200,7 @@ void TDynamicCounters::EnumerateSubgroups(const std::function<void(const TString
}
}
-void TDynamicCounters::OutputPlainText(IOutputStream& os, const TString& indent) const {
+void TDynamicCounters::OutputPlainText(IOutputStream& os, const TString& indent) const {
auto snap = ReadSnapshot();
// mark private records in plain text output
auto outputVisibilityMarker = [] (EVisibility vis) {
diff --git a/library/cpp/monlib/dynamic_counters/counters.h b/library/cpp/monlib/dynamic_counters/counters.h
index 1f5fadd32d..dc178cfbe0 100644
--- a/library/cpp/monlib/dynamic_counters/counters.h
+++ b/library/cpp/monlib/dynamic_counters/counters.h
@@ -343,11 +343,11 @@ namespace NMonitoring {
const TString& value,
TIntrusivePtr<TDynamicCounters> subgroup);
- void OutputHtml(IOutputStream& os) const;
+ void OutputHtml(IOutputStream& os) const;
void EnumerateSubgroups(const std::function<void(const TString& name, const TString& value)>& output) const;
// mostly for debugging purposes -- use accept with encoder instead
- void OutputPlainText(IOutputStream& os, const TString& indent = "") const;
+ void OutputPlainText(IOutputStream& os, const TString& indent = "") const;
void Accept(
const TString& labelName, const TString& labelValue,
diff --git a/library/cpp/monlib/dynamic_counters/counters_ut.cpp b/library/cpp/monlib/dynamic_counters/counters_ut.cpp
index 8e79949be9..3591037e0a 100644
--- a/library/cpp/monlib/dynamic_counters/counters_ut.cpp
+++ b/library/cpp/monlib/dynamic_counters/counters_ut.cpp
@@ -6,7 +6,7 @@ using namespace NMonitoring;
class TCountersPrinter: public ICountableConsumer {
public:
- TCountersPrinter(IOutputStream* out)
+ TCountersPrinter(IOutputStream* out)
: Out_(out)
, Level_(0)
{
@@ -41,7 +41,7 @@ private:
Indent(Out_, --Level_) << "}\n";
}
- static IOutputStream& Indent(IOutputStream* out, int level) {
+ static IOutputStream& Indent(IOutputStream* out, int level) {
for (int i = 0; i < level; i++) {
out->Write(" ");
}
@@ -49,12 +49,12 @@ private:
}
private:
- IOutputStream* Out_;
+ IOutputStream* Out_;
int Level_ = 0;
};
-Y_UNIT_TEST_SUITE(TDynamicCountersTest) {
- Y_UNIT_TEST(CountersConsumer) {
+Y_UNIT_TEST_SUITE(TDynamicCountersTest) {
+ Y_UNIT_TEST(CountersConsumer) {
TDynamicCounterPtr rootGroup(new TDynamicCounters());
auto usersCounter = rootGroup->GetNamedCounter("users", "count");
@@ -97,7 +97,7 @@ Y_UNIT_TEST_SUITE(TDynamicCountersTest) {
"}\n");
}
- Y_UNIT_TEST(MergeSubgroup) {
+ Y_UNIT_TEST(MergeSubgroup) {
TDynamicCounterPtr rootGroup(new TDynamicCounters());
auto sensor1 = rootGroup->GetNamedCounter("sensor", "1");
@@ -127,7 +127,7 @@ Y_UNIT_TEST_SUITE(TDynamicCountersTest) {
"}\n");
}
- Y_UNIT_TEST(ResetCounters) {
+ Y_UNIT_TEST(ResetCounters) {
TDynamicCounterPtr rootGroup(new TDynamicCounters());
auto sensor1 = rootGroup->GetNamedCounter("sensor", "1");
@@ -176,7 +176,7 @@ Y_UNIT_TEST_SUITE(TDynamicCountersTest) {
"}\n");
}
- Y_UNIT_TEST(RemoveCounter) {
+ Y_UNIT_TEST(RemoveCounter) {
TDynamicCounterPtr rootGroup(new TDynamicCounters());
rootGroup->GetNamedCounter("label", "1");
@@ -202,7 +202,7 @@ Y_UNIT_TEST_SUITE(TDynamicCountersTest) {
"}\n");
}
- Y_UNIT_TEST(RemoveSubgroup) {
+ Y_UNIT_TEST(RemoveSubgroup) {
TDynamicCounterPtr rootGroup(new TDynamicCounters());
rootGroup->GetSubgroup("group", "1");
diff --git a/library/cpp/monlib/dynamic_counters/encode_ut.cpp b/library/cpp/monlib/dynamic_counters/encode_ut.cpp
index bc60b2a933..52d77b6b41 100644
--- a/library/cpp/monlib/dynamic_counters/encode_ut.cpp
+++ b/library/cpp/monlib/dynamic_counters/encode_ut.cpp
@@ -130,10 +130,10 @@ namespace NMonitoring {
}
}
- Y_UNIT_TEST_SUITE(TDynamicCountersEncodeTest) {
+ Y_UNIT_TEST_SUITE(TDynamicCountersEncodeTest) {
TTestData Data;
- Y_UNIT_TEST(Json) {
+ Y_UNIT_TEST(Json) {
TString result;
{
TStringOutput out(result);
@@ -150,7 +150,7 @@ namespace NMonitoring {
AssertResult(samples);
}
- Y_UNIT_TEST(Spack) {
+ Y_UNIT_TEST(Spack) {
TBuffer result;
{
TBufferOutput out(result);
diff --git a/library/cpp/monlib/dynamic_counters/golovan_page.cpp b/library/cpp/monlib/dynamic_counters/golovan_page.cpp
index 0654519a7e..49cf2d39bb 100644
--- a/library/cpp/monlib/dynamic_counters/golovan_page.cpp
+++ b/library/cpp/monlib/dynamic_counters/golovan_page.cpp
@@ -59,7 +59,7 @@ public:
}
private:
- IOutputStream& out;
+ IOutputStream& out;
bool FirstCounter;
TString prefix;
};