Skip to content

Commit fccc841

Browse files
committed
Remove profiler output and replace with a raw event dump
Related to #58372
1 parent 25b8c61 commit fccc841

File tree

4 files changed

+271
-329
lines changed

4 files changed

+271
-329
lines changed

src/librustc/session/config.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1405,9 +1405,7 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
14051405
crate_attr: Vec<String> = (Vec::new(), parse_string_push, [TRACKED],
14061406
"inject the given attribute in the crate"),
14071407
self_profile: bool = (false, parse_bool, [UNTRACKED],
1408-
"run the self profiler"),
1409-
profile_json: bool = (false, parse_bool, [UNTRACKED],
1410-
"output a json file with profiler results"),
1408+
"run the self profiler and output the raw event data"),
14111409
emit_stack_sizes: bool = (false, parse_bool, [UNTRACKED],
14121410
"emits a section containing stack size metadata"),
14131411
plt: Option<bool> = (None, parse_opt_bool, [TRACKED],

src/librustc/session/mod.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -1131,11 +1131,8 @@ pub fn build_session_(
11311131
source_map: Lrc<source_map::SourceMap>,
11321132
driver_lint_caps: FxHashMap<lint::LintId, lint::Level>,
11331133
) -> Session {
1134-
let self_profiling_active = sopts.debugging_opts.self_profile ||
1135-
sopts.debugging_opts.profile_json;
1136-
11371134
let self_profiler =
1138-
if self_profiling_active { Some(Arc::new(PlMutex::new(SelfProfiler::new()))) }
1135+
if sopts.debugging_opts.self_profile { Some(Arc::new(PlMutex::new(SelfProfiler::new()))) }
11391136
else { None };
11401137

11411138
let host_triple = TargetTriple::from_triple(config::host_triple());

0 commit comments

Comments
 (0)