ns::ns_stats method history persist (public)

 <instance of ns::ns_stats[i]> history persist

Defined in /usr/local/ns/lib/nsf2.5.0/lib/nx-traits.tcl

Scheduled persistence entry point. Restore the configured history mixins in this interpreter, then save the latest published sample. Return without database access when persistence is disabled.

Testcases:
No testcase defined.
Source code:
set config [nsv_get ns_stats history]
if {$config eq "" || ![dict get $config enabled]} {
    return
}
:object mixins set [dict get $config mixins]
:history save
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: