Softanza
StartFrançais
Softanza
The library documents itself · Performance

stzPerfMonitor

30 own methods · 3 forms written with extensions, listed under their method

the source: base/perf/stzPerfMonitor.ring(opens in a new tab) · All classes · The area reference: Performance

Under each method, its extensions (Q CS XT Z ZZ IB W U): bold and ticked, it exists; struck, it does not. The extensions and what they mean

No method of this class is run on this page: the class reaches files, the network, processes, the clock, chance or sound, and an example run here would only be an example of its effects. Each method carries the explanation the library gives of itself.

Method
Explanation, as the source carries it
init
(no comment in the source: the name reads as a sentence) initno extension
Name
(no comment in the source: the name reads as a sentence) nameno extension
Name_
The agent-host contract spells it Name_().no extension
WatchMemory
Declaring what to watchno extension
WatchCpu
(no comment in the source: the name reads as a sentence) watch cpuno extension
WatchSystemMemory
(no comment in the source: the name reads as a sentence) watch system memoryno extension
Every
(no comment in the source: the name reads as a sentence) everyno extension
EveryMs
(no comment in the source: the name reads as a sentence) every msno extension
EnableTracing
Request tracing (perf P7) -------------------------------- Keep the last pnCapacity request traces [traceId, path, status, durMs, wallMs] in an ENGINE ring -- one truth for every face (the server's copy records, the sentinel's copy reads, alerts carry the trip's trace ids). Enable BEFORE handing the monitor to Observe(): the server stores a Haro copy at that moment, and a copy made earlier does not know tracing was turned on later.no extension
IsTracing
(no comment in the source: the name reads as a sentence) is tracingno extension
RecordTrace
(no comment in the source: the name reads as a sentence) record traceno extension
TraceCount
(no comment in the source: the name reads as a sentence) trace countno extension
RecentTraces
The last pnHowMany traces, oldest first: [ [ :traceId, :path, :status, :durMs, :wallMs ], ... ]no extension
NewCounter
Your own metricsQCSXTZZZIBWU
NewGauge
(no comment in the source: the name reads as a sentence) new gaugeQCSXTZZZIBWU
NewTimer
(no comment in the source: the name reads as a sentence) new timerQCSXTZZZIBWU
HasMetric
(no comment in the source: the name reads as a sentence) has metricno extension
MetricQ
The metric as a chainable object. It is a Haro COPY whose state is the SAME engine series/histogram -- record through it, read through the monitor, the numbers agree.no extension
Metrics
The registry as data: [ [name, kind], ... ].no extension
NumberOfMetrics
(no comment in the source: the name reads as a sentence) number of metricsno extension
Sample
Sampling ------------------------------------------------- One sample of every watched sense, NOW (unconditional pull). Returns the number of gauge writes performed. Self-priced: the monotonic cost of every pass accumulates for SelfCost().no extension
SampleCount
(no comment in the source: the name reads as a sentence) sample countno extension
SelfCost
What observation itself costs -- measured with the same clock it provides (the profiler profiles the profiler). Wall ms on the monotonic clock: sampling is straight-line sense-reading, so wall is the honest price (and Windows quantizes CPU too coarsely for per-sample readings anyway). Returns [ :samples, :totalMs, :perSampleMs ].no extension
Tick
Cadence-gated: samples only when Every() has elapsed on the monotonic clock. Call from any loop; returns 1 if it sampled.also written: Cycleno extension
RunFor
Standalone continuous mode: drive the cadence for nMs (blocking; for scripts and guards -- servers should host, not block).no extension
Prometheus
Interop: the industry formats ---------------------------- The Prometheus /metrics exposition text, every metric.no extension
OtelJson
One OTLP resourceMetrics envelope batching every metric.no extension
Explain
Legibilityno extension
Show
(no comment in the source: the name reads as a sentence) showno extension
Destroy
(no comment in the source: the name reads as a sentence) destroyno extension