blob: 6ebbc89f72cce8f27afdafaa75520c1ed8d356f8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#pragma once
#include <yt/cpp/mapreduce/interface/config.h>
#include <util/generic/strbuf.h>
namespace NYT {
namespace NDetail {
void IncDebugMetricImpl(TStringBuf name);
// Helper functions that allows to track various events inside YT library, useful for testing.
inline void IncDebugMetric(TStringBuf name)
{
if (TConfig::Get()->EnableDebugMetrics) {
IncDebugMetricImpl(name);
}
}
ui64 GetDebugMetric(TStringBuf name);
} // namespace NDetail
} // namespace NYT
|