Skip to main content

reifydb_profiler/
lib.rs

1// SPDX-License-Identifier: Apache-2.0
2// Copyright (c) 2026 ReifyDB
3
4//! Always-on profiler primitives over `tracing`: `ProfilerLayer` appends a fixed-size `MinimalSpanRecord` per
5//! matching span without allocating on the hot path, and `ScopeHandle::finish` drains them to a `ProfilerSink`.
6//!
7//! Deliberately free of metric and IoC dependencies, so tests can embed the layer with a `NoopSink` and the data
8//! model is usable without pulling in the subsystem.
9
10#![cfg_attr(not(debug_assertions), deny(clippy::disallowed_methods))]
11#![cfg_attr(debug_assertions, warn(clippy::disallowed_methods))]
12#![cfg_attr(not(debug_assertions), deny(warnings))]
13#![allow(clippy::tabs_in_doc_comments)]
14
15pub mod callsite;
16pub mod category;
17pub mod event;
18pub mod format;
19pub mod intern;
20pub mod layer;
21pub mod percentile;
22pub mod record;
23pub mod scope;
24pub mod sink;
25pub mod spec;
26pub mod summary;
27pub mod visit;