diff options
author | alexv-smirnov <alex@ydb.tech> | 2023-05-24 20:44:52 +0300 |
---|---|---|
committer | alexv-smirnov <alex@ydb.tech> | 2023-05-24 20:44:52 +0300 |
commit | 12a3fbb619e9f5c885ecb3340e06b48b008d3814 (patch) | |
tree | 10c2654623d002d0f31835c1a3124df9d0789dd8 /library/cpp/lwtrace/example2/destructive.tr | |
parent | f14549c83decddd1c8634ce32c8616ebb654c5a3 (diff) | |
download | ydb-12a3fbb619e9f5c885ecb3340e06b48b008d3814.tar.gz |
Examples in lwtrace
Diffstat (limited to 'library/cpp/lwtrace/example2/destructive.tr')
-rw-r--r-- | library/cpp/lwtrace/example2/destructive.tr | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/library/cpp/lwtrace/example2/destructive.tr b/library/cpp/lwtrace/example2/destructive.tr new file mode 100644 index 00000000000..ad955db0186 --- /dev/null +++ b/library/cpp/lwtrace/example2/destructive.tr @@ -0,0 +1,36 @@ +Blocks { + ProbeDesc { Name: "IterationProbe" Provider: "LWTRACE_EXAMPLE_PROVIDER" } + Action { + SleepAction { + NanoSeconds: 100000000 + } + } +} + +Blocks { + ProbeDesc { Name: "AfterInputProbe" Provider: "LWTRACE_EXAMPLE_PROVIDER" } + Action { + StatementAction { + Type: ST_MOD + Argument { Variable: "nMod2" } + Argument { Param: "n" } + Argument { Value: "2" } + } + } +} +Blocks { + ProbeDesc { Name: "AfterInputProbe" Provider: "LWTRACE_EXAMPLE_PROVIDER" } + Predicate { + Operators { + Type: OT_EQ + Argument { Variable: "nMod2" } + Argument { Value: "0" } + } + } + Action { + PrintToStderrAction { } + } + Action { + KillAction { } + } +} |