performance_mark_attribute/lib.rs
1use std::time::Duration;
2
3#[doc(inline)]
4pub use performance_mark_macro::performance_mark;
5
6/// Context passed to a custom logging function.
7pub struct LogContext {
8 /// The name of the function being profiled.
9 pub function: String,
10 /// The time the function took to complete.
11 pub duration: Duration,
12}