ns::stats::Sampler method sampling start (public)

 <instance of ns::stats::Sampler[i]> sampling start \
    [ -interval interval ]

Defined in

Start the process-wide sampling callback at the requested interval in seconds (default 10, range 1..3600). Time units and fractional seconds are normalized with ns_baseunit. Repeated calls with the same running interval reuse the scheduler; a different interval requires stopping the sampler first. Clears the previous sample and baseline when starting a stopped sampler. Returns the resulting status dictionary. Persistence must be enabled separately.

Switches:
-interval (optional, defaults to "10")

Testcases:
No testcase defined.
[ show source ]
Show another procedure: