diff options
| author | alexv-smirnov <[email protected]> | 2023-05-24 20:44:52 +0300 |
|---|---|---|
| committer | alexv-smirnov <[email protected]> | 2023-05-24 20:44:52 +0300 |
| commit | 12a3fbb619e9f5c885ecb3340e06b48b008d3814 (patch) | |
| tree | 10c2654623d002d0f31835c1a3124df9d0789dd8 /library/cpp/lwtrace/example3 | |
| parent | f14549c83decddd1c8634ce32c8616ebb654c5a3 (diff) | |
Examples in lwtrace
Diffstat (limited to 'library/cpp/lwtrace/example3')
| -rw-r--r-- | library/cpp/lwtrace/example3/example_query.tr | 13 | ||||
| -rwxr-xr-x | library/cpp/lwtrace/example3/start_with_query.sh | 6 |
2 files changed, 19 insertions, 0 deletions
diff --git a/library/cpp/lwtrace/example3/example_query.tr b/library/cpp/lwtrace/example3/example_query.tr new file mode 100644 index 00000000000..1f841b0932a --- /dev/null +++ b/library/cpp/lwtrace/example3/example_query.tr @@ -0,0 +1,13 @@ +Blocks { + ProbeDesc { + Name: "IterationProbe" + Provider: "LWTRACE_EXAMPLE_PROVIDER" + } + Action { + CustomAction { + Name: "MyAction" + Opts: "/dev/stdout" + } + } +} + diff --git a/library/cpp/lwtrace/example3/start_with_query.sh b/library/cpp/lwtrace/example3/start_with_query.sh new file mode 100755 index 00000000000..5cd221856f3 --- /dev/null +++ b/library/cpp/lwtrace/example3/start_with_query.sh @@ -0,0 +1,6 @@ +#!/bin/bash +echo "Executing program with following trace query:" +cat example_query.tr +echo -n "Press any key to start program" +read +LWTRACE="example_query.tr" ./lwtrace-example3 |
