@@ -111,6 +111,8 @@ bitflags::bitflags! {
111
111
const LLVM = 1 << 7 ;
112
112
const INCR_RESULT_HASHING = 1 << 8 ;
113
113
114
+ const CGU_NAMES = 1 << 9 ;
115
+
114
116
const DEFAULT = Self :: GENERIC_ACTIVITIES . bits |
115
117
Self :: QUERY_PROVIDERS . bits |
116
118
Self :: QUERY_BLOCKED . bits |
@@ -136,6 +138,7 @@ const EVENT_FILTERS_BY_NAME: &[(&str, EventFilter)] = &[
136
138
( "args" , EventFilter :: ARGS ) ,
137
139
( "llvm" , EventFilter :: LLVM ) ,
138
140
( "incr-result-hashing" , EventFilter :: INCR_RESULT_HASHING ) ,
141
+ ( "cgu-names" , EventFilter :: CGU_NAMES ) ,
139
142
] ;
140
143
141
144
/// Something that uniquely identifies a query invocation.
@@ -425,6 +428,7 @@ pub struct SelfProfiler {
425
428
incremental_result_hashing_event_kind : StringId ,
426
429
query_blocked_event_kind : StringId ,
427
430
query_cache_hit_event_kind : StringId ,
431
+ cgu_merge_event_kind : StringId ,
428
432
}
429
433
430
434
impl SelfProfiler {
@@ -447,6 +451,7 @@ impl SelfProfiler {
447
451
profiler. alloc_string ( "IncrementalResultHashing" ) ;
448
452
let query_blocked_event_kind = profiler. alloc_string ( "QueryBlocked" ) ;
449
453
let query_cache_hit_event_kind = profiler. alloc_string ( "QueryCacheHit" ) ;
454
+ let cgu_merge_event_kind = profiler. alloc_string ( "CguMerged" ) ;
450
455
451
456
let mut event_filter_mask = EventFilter :: empty ( ) ;
452
457
@@ -491,6 +496,7 @@ impl SelfProfiler {
491
496
incremental_result_hashing_event_kind,
492
497
query_blocked_event_kind,
493
498
query_cache_hit_event_kind,
499
+ cgu_merge_event_kind,
494
500
} )
495
501
}
496
502
0 commit comments