ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
stats_scope Struct Reference

stats duration shard keeps the values that move through the subsystem: owner. Some members are pointers into caller- or subsystem-owned memory, so lifetime follows the API that populated them rather than the struct copy itself. More...

Data Fields

stats_observer_fn observer
void * observer_context
uint64_t id
uint64_t started_ns
stats_capabilities_t capabilities
atomic_t counters [STATS_COUNTER_COUNT]
atomic_t gauges [STATS_GAUGE_COUNT]
mutex_t snapshot_mutex
mutex_t duration_mutex
stats_duration_snapshot_t durations [STATS_DURATION_COUNT]
uint64_t duration_recorded_ns [STATS_DURATION_COUNT]
stats_duration_shard_t shards [16]

Detailed Description

stats duration shard keeps the values that move through the subsystem: owner. Some members are pointers into caller- or subsystem-owned memory, so lifetime follows the API that populated them rather than the struct copy itself.

Definition at line 37 of file lib/stats/stats.c.

Field Documentation

◆ capabilities

stats_capabilities_t stats_scope::capabilities

◆ counters

atomic_t stats_scope::counters[STATS_COUNTER_COUNT]

Definition at line 43 of file lib/stats/stats.c.

Referenced by stats_counter_add(), and stats_scope_snapshot().

◆ duration_mutex

mutex_t stats_scope::duration_mutex

◆ duration_recorded_ns

uint64_t stats_scope::duration_recorded_ns[STATS_DURATION_COUNT]

Definition at line 48 of file lib/stats/stats.c.

Referenced by stats_duration_record(), and stats_scope_snapshot().

◆ durations

Definition at line 47 of file lib/stats/stats.c.

Referenced by stats_duration_record(), and stats_scope_snapshot().

◆ gauges

atomic_t stats_scope::gauges[STATS_GAUGE_COUNT]

Definition at line 44 of file lib/stats/stats.c.

Referenced by stats_gauge_set(), and stats_scope_snapshot().

◆ id

uint64_t stats_scope::id

Definition at line 40 of file lib/stats/stats.c.

Referenced by stats_scope_create(), and stats_scope_snapshot().

◆ observer

◆ observer_context

void* stats_scope::observer_context

◆ shards

stats_duration_shard_t stats_scope::shards[16]

Definition at line 49 of file lib/stats/stats.c.

Referenced by stats_scope_snapshot().

◆ snapshot_mutex

mutex_t stats_scope::snapshot_mutex

Definition at line 45 of file lib/stats/stats.c.

Referenced by stats_scope_create(), stats_scope_destroy(), and stats_scope_snapshot().

◆ started_ns

uint64_t stats_scope::started_ns

Definition at line 41 of file lib/stats/stats.c.

Referenced by stats_scope_create(), and stats_scope_snapshot().


The documentation for this struct was generated from the following file: