aboutsummaryrefslogblamecommitdiffstats
path: root/library/cpp/lwtrace/example2/destructive.tr
blob: ad955db0186d10cf8135d11f41bc1803e3904694 (plain) (tree)


































                                                                              
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 { }
    }
}