]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_session/options.rs
Do not base path to append extension
[rust.git] / src / librustc_session / options.rs
index 4b5736adc17c3f0d4de30fed1499ece9bae4792a..2a0ed27b63b08f7c23f56ab2069a2265b0652fb7 100644 (file)
@@ -923,8 +923,12 @@ fn parse_symbol_mangling_version(
     self_profile: SwitchWithOptPath = (SwitchWithOptPath::Disabled,
         parse_switch_with_opt_path, [UNTRACKED],
         "run the self profiler and output the raw event data"),
+    // keep this in sync with the event filter names in librustc_data_structures/profiling.rs
     self_profile_events: Option<Vec<String>> = (None, parse_opt_comma_list, [UNTRACKED],
-        "specifies which kinds of events get recorded by the self profiler"),
+        "specifies which kinds of events get recorded by the self profiler;
+        for example: `-Z self-profile-events=default,query-keys`
+        all options: none, all, default, generic-activity, query-provider, query-cache-hit
+                     query-blocked, incr-cache-load, query-keys"),
     emit_stack_sizes: bool = (false, parse_bool, [UNTRACKED],
         "emits a section containing stack size metadata"),
     plt: Option<bool> = (None, parse_opt_bool, [TRACKED],