const QUERY_KEYS = 1 << 5;
const FUNCTION_ARGS = 1 << 6;
+ const LLVM = 1 << 7;
const DEFAULT = Self::GENERIC_ACTIVITIES.bits |
Self::QUERY_PROVIDERS.bits |
("query-keys", EventFilter::QUERY_KEYS),
("function-args", EventFilter::FUNCTION_ARGS),
("args", EventFilter::ARGS),
+ ("llvm", EventFilter::LLVM),
];
/// Something that uniquely identifies a query invocation.
pub fn enabled(&self) -> bool {
self.profiler.is_some()
}
+
+ #[inline]
+ pub fn llvm_recording_enabled(&self) -> bool {
+ self.event_filter_mask.contains(EventFilter::LLVM)
+ }
+ #[inline]
+ pub fn get_self_profiler(&self) -> Option<Arc<SelfProfiler>> {
+ self.profiler.clone()
+ }
}
pub struct SelfProfiler {