aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/lwtrace/example2/lwtrace_example2.cpp
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:23 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:23 +0300
commit706b83ed7de5a473436620367af31fc0ceecde07 (patch)
tree103305d30dec77e8f6367753367f59b3cd68f9f1 /library/cpp/lwtrace/example2/lwtrace_example2.cpp
parent918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff)
downloadydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/lwtrace/example2/lwtrace_example2.cpp')
-rw-r--r--library/cpp/lwtrace/example2/lwtrace_example2.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/lwtrace/example2/lwtrace_example2.cpp b/library/cpp/lwtrace/example2/lwtrace_example2.cpp
index 7a4f7a1daf..9a2fc7193d 100644
--- a/library/cpp/lwtrace/example2/lwtrace_example2.cpp
+++ b/library/cpp/lwtrace/example2/lwtrace_example2.cpp
@@ -20,7 +20,7 @@ THolder<NLWTrace::TManager> traceManager;
struct TConfig {
bool UnsafeLWTrace;
- TString TraceRequestPath;
+ TString TraceRequestPath;
};
void InitLWTrace(TConfig& cfg) {
@@ -28,7 +28,7 @@ void InitLWTrace(TConfig& cfg) {
}
void AddLWTraceRequest(TConfig& cfg) {
- TString queryStr = TUnbufferedFileInput(cfg.TraceRequestPath).ReadAll();
+ TString queryStr = TUnbufferedFileInput(cfg.TraceRequestPath).ReadAll();
NLWTrace::TQuery query;
google::protobuf::TextFormat::ParseFromString(queryStr, &query);
traceManager->New("TraceRequest1", query);
@@ -42,7 +42,7 @@ public:
Cout << " time=" << item.Timestamp;
}
if (item.SavedParamsCount > 0) {
- TString paramValues[LWTRACE_MAX_PARAMS];
+ TString paramValues[LWTRACE_MAX_PARAMS];
item.Probe->Event.Signature.SerializeParams(item.Params, paramValues);
Cout << " params: ";
for (size_t i = 0; i < item.SavedParamsCount; ++i) {
@@ -78,7 +78,7 @@ void FactorialCalculator() {
i32 n;
Cout << "Enter a number: ";
- TString str;
+ TString str;
Cin >> n;
GLOBAL_LWPROBE(LWTRACE_EXAMPLE_PROVIDER, AfterInputProbe, n);