@@ -923,8 +923,12 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
923923 self_profile: SwitchWithOptPath = ( SwitchWithOptPath :: Disabled ,
924924 parse_switch_with_opt_path, [ UNTRACKED ] ,
925925 "run the self profiler and output the raw event data" ) ,
926+ // keep this in sync with the event filter names in librustc_data_structures/profiling.rs
926927 self_profile_events: Option <Vec <String >> = ( None , parse_opt_comma_list, [ UNTRACKED ] ,
927- "specifies which kinds of events get recorded by the self profiler" ) ,
928+ "specifies which kinds of events get recorded by the self profiler;
929+ for example: `-Z self-profile-events=default,query-keys`
930+ all options: none, all, default, generic-activity, query-provider, query-cache-hit
931+ query-blocked, incr-cache-load, query-keys" ) ,
928932 emit_stack_sizes: bool = ( false , parse_bool, [ UNTRACKED ] ,
929933 "emits a section containing stack size metadata" ) ,
930934 plt: Option <bool > = ( None , parse_opt_bool, [ TRACKED ] ,
0 commit comments