ns::stats::Collector method snapshot (public)
<instance of ns::stats::Collector> snapshot [ -server server ]
Collect current gauges, cumulative counters, allocator statistics and thread CPU times into a timestamped dictionary. The timestamp is in epoch microseconds; collectionSeconds records collection duration. The observations are collected sequentially and do not constitute an atomic snapshot of the entire process. An optional server argument restricts virtual-server data. Does not publish a sample or advance the sampling baseline.
- Switches:
- -server (optional)
- Optional virtual-server name; empty selects all configured servers. Process metrics remain process-wide.
- Returns:
- Timestamped dictionary of gauges, cumulative counters, thread CPU counters, units and availability; timestamp is in epoch microseconds.
- Testcases:
- No testcase defined.
![[i]](/resources/acs-subsite/ZoomIn16.gif)