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

 <instance of ns::stats::Sampler[i]> sampling stop

Defined in

Unschedule collection and invalidate any collection already in progress so it cannot publish into the stopped sampler. Retains the latest published sample for subsequent reads. Returns the resulting status dictionary. Does not disable the separately configured history persistence callback.

Testcases:
No testcase defined.
Source code:
:locked {
    set state [nsv_get ns_stats control]
    if {[dict get $state running]} {
        ns_unschedule_proc [dict get $state scheduler]
    }
    dict set state running false
    dict incr state generation
    dict set state busy false
    dict set state scheduler {}
    nsv_set ns_stats control $state
}
return [:sampling status]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: