TimespanLogging Functions
TimespanLogging.get_logs!TimespanLogging.init_similarTimespanLogging.timespan_finishTimespanLogging.timespan_start
Basic Functions
TimespanLogging.timespan_start — Function
timespan_start(ctx, category::Symbol, id, tl)Legacy emit path. When the sink is NoOpLog, this is a no-op (and @maybelog already skipped constructing id/tl). Otherwise the event is appended to the calling thread's legacy chunk list — no process-wide lock, no consumer dispatch, no ProfilerResult allocation.
TimespanLogging.timespan_finish — Function
timespan_finish(ctx, category::Symbol, id, tl; tasks=nothing)Legacy finish path. Profiling (profile(ctx, ...)) still uses the old Profile.fetch machinery; the common path only stores a typed-enough legacy record.
TimespanLogging.get_logs! — Function
get_logs!(ctx; kwargs...)
get_logs!(sink; kwargs...)Get the logs recorded by ctx's (or sink's) log sink, clearing them in the process. Recording is always into per-thread buffers regardless of sink; get_logs! is what steals and projects them into the sink's own log shape (a Vector{Timespan} for LocalEventLog, a Dict of consumer name to per-event values for MultiEventLog, nothing for NoOpLog). See the sink's own docstring for sink-specific keyword arguments (e.g. raw and only_local on LocalEventLog).
Logging Metric Functions
TimespanLogging.init_similar — Function
Creates a copy of x with the same configuration, but fresh/empty data.