Skip to main content

Module monitoring

Module monitoring 

Source
Expand description

Some basic internal monitoring tooling Copper uses to monitor itself and the components it runs.

Structs§

ComponentId
Strongly-typed index into CuMonitoringMetadata::components.
CopperListEntry
One message entry in CopperList slot order with resolved component identity.
CopperListInfo
CopperListIoStats
Reported data about CopperList IO for a single iteration.
CopperListLayout
Static monitor-side CopperList indexing layout.
CopperListView
Per-loop monitor view over CopperList metadata paired with static component mapping.
CountingAlloc
A simple allocator that counts the number of bytes allocated and deallocated.
CuDurationStatistics
A Specialized statistics object for CuDuration. It will also keep track of the jitter between the values.
CuListSlot
Strongly-typed CopperList slot index.
CuMonitoringMetadata
Immutable runtime-provided metadata passed once to CuMonitor::new.
CuMonitoringRuntime
Runtime-provided dynamic monitoring handles passed once to CuMonitor::new.
CuMsgIoCache
CuMsgIoCaptureGuard
CuMsgIoStats
ExecutionMarker
Execution progress marker emitted by the runtime before running a component step.
LiveStatistics
Accumulative stat object that can give your some real time statistics. Uses a fixed-size bucketed histogram for accurate percentile calculations.
MonitorComponentMetadata
Static identity entry for one monitored runtime component.
MonitorConnection
MonitorExecutionProbe
Platform-neutral monitor view of runtime execution progress.
MonitorNode
MonitorTopology
NoMonitor
A do nothing monitor if no monitor is provided. This is basically defining the default behavior of Copper in case of error.
PanicHookRegistration
PanicReport
PayloadIoStats
RuntimeExecutionProbe
Lock-free runtime-side progress probe.
ScopedAllocCounter
Scoped helper that captures the calling thread’s allocation counters on construction and exposes the delta accumulated by the time you query it.

Enums§

ComponentType
Runtime component category used by monitoring metadata and topology.
CuComponentState
Lifecycle state of a monitored component.
Decision
Monitor decision to be taken when a component step errored out.

Traits§

CuMonitor
Runtime monitoring contract implemented by monitor components.

Functions§

build_monitor_topology
Derive a monitor-friendly topology from the runtime configuration.
global_allocated_bytes
Total bytes ever allocated through the CountingAlloc global allocator.
global_deallocated_bytes
Total bytes ever returned to the CountingAlloc global allocator.
panic_payload_to_string
payload_io_stats
Measures payload bytes using the same encode path Copper uses for logging/export.
runtime_panic_hook_active
start_copperlist_io_capture
take_last_completed_handle_bytes

Type Aliases§

ExecutionProbeHandle