pub fn counter(
context: &TraceCategoryContext,
name: &'static CStr,
counter_id: u64,
args: &[Arg<'_>],
)
Expand description
Writes a counter event with the specified id.
The arguments to this event are numeric samples and are typically represented by the visualizer as a stacked area chart. The id serves to distinguish multiple instances of counters which share the same category and name within the same process.
1 to 15 numeric arguments can be associated with an event, each of which is interpreted as a distinct time series.