aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/lwtrace/example1
diff options
context:
space:
mode:
authoralexv-smirnov <alex@ydb.tech>2023-05-24 20:44:52 +0300
committeralexv-smirnov <alex@ydb.tech>2023-05-24 20:44:52 +0300
commit12a3fbb619e9f5c885ecb3340e06b48b008d3814 (patch)
tree10c2654623d002d0f31835c1a3124df9d0789dd8 /library/cpp/lwtrace/example1
parentf14549c83decddd1c8634ce32c8616ebb654c5a3 (diff)
downloadydb-12a3fbb619e9f5c885ecb3340e06b48b008d3814.tar.gz
Examples in lwtrace
Diffstat (limited to 'library/cpp/lwtrace/example1')
-rw-r--r--library/cpp/lwtrace/example1/example_query.tr10
-rwxr-xr-xlibrary/cpp/lwtrace/example1/start_with_query.sh3
2 files changed, 13 insertions, 0 deletions
diff --git a/library/cpp/lwtrace/example1/example_query.tr b/library/cpp/lwtrace/example1/example_query.tr
new file mode 100644
index 0000000000..a06e2a922d
--- /dev/null
+++ b/library/cpp/lwtrace/example1/example_query.tr
@@ -0,0 +1,10 @@
+Blocks {
+ ProbeDesc {
+ Name: "IterationProbe"
+ Provider: "LWTRACE_EXAMPLE_PROVIDER"
+ }
+ Action {
+ PrintToStderrAction { }
+ }
+}
+
diff --git a/library/cpp/lwtrace/example1/start_with_query.sh b/library/cpp/lwtrace/example1/start_with_query.sh
new file mode 100755
index 0000000000..2b456d7be7
--- /dev/null
+++ b/library/cpp/lwtrace/example1/start_with_query.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+export LWTRACE="example_query.tr"
+./lwtrace-example1