Allow pretty printing paths with -Zself-profile-events=args

This commit is contained in:
Jakub Beránek
2025-07-25 20:45:00 +02:00
parent a955f1cd09
commit 4ef18ab062
4 changed files with 24 additions and 0 deletions

View File

@@ -551,6 +551,11 @@ impl SelfProfilerRef {
pub fn get_self_profiler(&self) -> Option<Arc<SelfProfiler>> {
self.profiler.clone()
}
/// Is expensive recording of query keys and/or function arguments enabled?
pub fn is_args_recording_enabled(&self) -> bool {
self.enabled() && self.event_filter_mask.intersects(EventFilter::ARGS)
}
}
/// A helper for recording costly arguments to self-profiling events. Used with