aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/lwtrace/example3/lwtrace_example3.cpp
diff options
context:
space:
mode:
authorserxa <serxa@yandex-team.ru>2022-02-10 16:49:08 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:08 +0300
commite5d4696304c6689379ac7ce334512404d4b7836c (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/lwtrace/example3/lwtrace_example3.cpp
parentd6d7db348c2cc64e71243cab9940ee6778f4317d (diff)
downloadydb-e5d4696304c6689379ac7ce334512404d4b7836c.tar.gz
Restoring authorship annotation for <serxa@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/lwtrace/example3/lwtrace_example3.cpp')
-rw-r--r--library/cpp/lwtrace/example3/lwtrace_example3.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/lwtrace/example3/lwtrace_example3.cpp b/library/cpp/lwtrace/example3/lwtrace_example3.cpp
index 2fa2976a69..4493dc0077 100644
--- a/library/cpp/lwtrace/example3/lwtrace_example3.cpp
+++ b/library/cpp/lwtrace/example3/lwtrace_example3.cpp
@@ -1,8 +1,8 @@
#include <library/cpp/lwtrace/all.h>
#include <google/protobuf/text_format.h>
-#include "my_action.h"
+#include "my_action.h"
-#define LWTRACE_EXAMPLE_PROVIDER(PROBE, EVENT, GROUPS, TYPES, NAMES) \
+#define LWTRACE_EXAMPLE_PROVIDER(PROBE, EVENT, GROUPS, TYPES, NAMES) \
PROBE(IterationProbe, GROUPS(), TYPES(i32, double), NAMES("n", "result")) \
/**/
@@ -10,12 +10,12 @@ LWTRACE_DECLARE_PROVIDER(LWTRACE_EXAMPLE_PROVIDER)
LWTRACE_DEFINE_PROVIDER(LWTRACE_EXAMPLE_PROVIDER)
void InitLWTrace() {
- NLWTrace::StartLwtraceFromEnv([=](NLWTrace::TManager& mngr) {
- mngr.RegisterCustomAction<TMyActionExecutor>();
- });
+ NLWTrace::StartLwtraceFromEnv([=](NLWTrace::TManager& mngr) {
+ mngr.RegisterCustomAction<TMyActionExecutor>();
+ });
}
-long double Fact(int n) {
+long double Fact(int n) {
if (n < 0) {
ythrow yexception() << "N! is undefined for negative N (" << n << ")";
}