example_query.tr 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. Blocks {
  2. ProbeDesc {
  3. Name: "StartupProbe"
  4. Provider: "LWTRACE_EXAMPLE_PROVIDER"
  5. }
  6. Action {
  7. PrintToStderrAction { }
  8. }
  9. }
  10. Blocks {
  11. ProbeDesc { Name: "IterationProbe" Provider: "LWTRACE_EXAMPLE_PROVIDER" }
  12. Action {
  13. LogAction {
  14. LogTimestamp: true
  15. MaxRecords: 2
  16. }
  17. }
  18. }
  19. Blocks {
  20. ProbeDesc { Name: "ByrefDurationProbe" Provider: "LWTRACE_EXAMPLE_PROVIDER" }
  21. Action {
  22. LogAction {
  23. LogTimestamp: true
  24. MaxRecords: 1
  25. }
  26. }
  27. Action {
  28. PrintToStderrAction { }
  29. }
  30. }
  31. Blocks {
  32. ProbeDesc { Name: "DurationProbe" Provider: "LWTRACE_EXAMPLE_PROVIDER" }
  33. Action {
  34. LogAction {
  35. LogTimestamp: true
  36. MaxRecords: 1
  37. }
  38. }
  39. Action {
  40. PrintToStderrAction { }
  41. }
  42. }
  43. Blocks {
  44. ProbeDesc { Name: "ResultProbe" Provider: "LWTRACE_EXAMPLE_PROVIDER" }
  45. Action {
  46. PrintToStderrAction { }
  47. }
  48. Action {
  49. LogAction { LogTimestamp: true }
  50. }
  51. }
  52. Blocks {
  53. ProbeDesc { Name: "AfterInputProbe" Provider: "LWTRACE_EXAMPLE_PROVIDER" }
  54. Action {
  55. StatementAction {
  56. Type: ST_MOD
  57. Argument { Variable: "nMod2" }
  58. Argument { Param: "n" }
  59. Argument { Value: "2" }
  60. }
  61. }
  62. }
  63. Blocks {
  64. ProbeDesc { Name: "AfterInputProbe" Provider: "LWTRACE_EXAMPLE_PROVIDER" }
  65. Predicate {
  66. Operators {
  67. Type: OT_EQ
  68. Argument { Variable: "nMod2" }
  69. Argument { Value: "0" }
  70. }
  71. }
  72. Action { LogAction { } }
  73. }