diff options
author | Vladislav Kuznetsov <va.kuznecov@physics.msu.ru> | 2022-02-10 16:46:54 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:54 +0300 |
commit | de20f5598f0832a6e646f61b4feca942c00da928 (patch) | |
tree | 6de57350f1f78bcbe9c57e73a010cd24a6afc90e /library/cpp/lwtrace | |
parent | 9eeddfb447d62493b7f67a7a1e253ea7f28e95ae (diff) | |
download | ydb-de20f5598f0832a6e646f61b4feca942c00da928.tar.gz |
Restoring authorship annotation for Vladislav Kuznetsov <va.kuznecov@physics.msu.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/lwtrace')
-rw-r--r-- | library/cpp/lwtrace/all.h | 12 | ||||
-rw-r--r-- | library/cpp/lwtrace/preprocessor.h | 4 | ||||
-rw-r--r-- | library/cpp/lwtrace/shuttle.h | 14 |
3 files changed, 15 insertions, 15 deletions
diff --git a/library/cpp/lwtrace/all.h b/library/cpp/lwtrace/all.h index d7aa57c49d..b412bbfcea 100644 --- a/library/cpp/lwtrace/all.h +++ b/library/cpp/lwtrace/all.h @@ -130,8 +130,8 @@ // NOTE: #define MY_PROBE(name, ...) GLOBAL_LWPROBE(MY_PROVIDER, name, ## __VA_ARGS__) #define GLOBAL_LWPROBE(provider, probe, ...) LWPROBE_I(LWTRACE_GET_NAMESPACE(provider)::LWTRACE_GET_NAME(probe), ##__VA_ARGS__) #define LWPROBE(probe, ...) LWPROBE_I(LWTRACE_GET_NAME(probe), ##__VA_ARGS__) -#define GLOBAL_LWPROBE_ENABLED(provider, probe) LWPROBE_ENABLED_I(LWTRACE_GET_NAMESPACE(provider)::LWTRACE_GET_NAME(probe)) -#define LWPROBE_ENABLED(probe) LWPROBE_ENABLED_I(LWTRACE_GET_NAME(probe)) +#define GLOBAL_LWPROBE_ENABLED(provider, probe) LWPROBE_ENABLED_I(LWTRACE_GET_NAMESPACE(provider)::LWTRACE_GET_NAME(probe)) +#define LWPROBE_ENABLED(probe) LWPROBE_ENABLED_I(LWTRACE_GET_NAME(probe)) #define LWPROBE_OBJ(probe, ...) LWPROBE_I(probe, ##__VA_ARGS__) // Calls a probe when scope is beeing left @@ -149,8 +149,8 @@ #else #define GLOBAL_LWPROBE(provider, probe, ...) #define LWPROBE(probe, ...) -#define GLOBAL_LWPROBE_ENABLED(provider, probe) false -#define LWPROBE_ENABLED(probe) false +#define GLOBAL_LWPROBE_ENABLED(provider, probe) false +#define LWPROBE_ENABLED(probe) false #define LWPROBE_OBJ(probe, ...) Y_UNUSED(probe) #define GLOBAL_LWPROBE_DURATION(provider, probe, ...) #define LWPROBE_DURATION(probe, ...) @@ -183,8 +183,8 @@ #define LWTRACE_GET_EVENTS(provider) NULL #define GLOBAL_LWPROBE(provider, probe, ...) #define LWPROBE(probe, ...) -#define GLOBAL_LWPROBE_ENABLED(provider, probe) false -#define LWPROBE_ENABLED(probe) false +#define GLOBAL_LWPROBE_ENABLED(provider, probe) false +#define LWPROBE_ENABLED(probe) false #define GLOBAL_LWPROBE_DURATION(provider, probe, ...) #define LWPROBE_DURATION(probe, ...) #define GLOBAL_LWTRACK(provider, probe, orbit, ...) diff --git a/library/cpp/lwtrace/preprocessor.h b/library/cpp/lwtrace/preprocessor.h index 40865467b2..ca03f9383f 100644 --- a/library/cpp/lwtrace/preprocessor.h +++ b/library/cpp/lwtrace/preprocessor.h @@ -264,8 +264,8 @@ namespace NLWTrace { } \ } while (false) /**/ -#define LWPROBE_ENABLED_I(probe) ((probe).Probe.GetExecutorsCount() > 0) - +#define LWPROBE_ENABLED_I(probe) ((probe).Probe.GetExecutorsCount() > 0) + #define LWPROBE_DURATION_I(probetype, uniqid, probe, ...) probetype ::TScopedDuration uniqid(probe, 0 /* fake P0 - used for duration */, ##__VA_ARGS__); #define LWTRACK_I(probe, orbit, ...) \ diff --git a/library/cpp/lwtrace/shuttle.h b/library/cpp/lwtrace/shuttle.h index 85c6e4da61..6d3c8dd400 100644 --- a/library/cpp/lwtrace/shuttle.h +++ b/library/cpp/lwtrace/shuttle.h @@ -176,13 +176,13 @@ namespace NLWTrace { private: TShuttlePtr HeadNoLock; public: - TOrbit() = default; - TOrbit(const TOrbit&) = delete; - TOrbit(TOrbit&&) = default; - - TOrbit& operator=(const TOrbit&) = delete; - TOrbit& operator=(TOrbit&&) = default; - + TOrbit() = default; + TOrbit(const TOrbit&) = delete; + TOrbit(TOrbit&&) = default; + + TOrbit& operator=(const TOrbit&) = delete; + TOrbit& operator=(TOrbit&&) = default; + ~TOrbit() { Reset(); } |