Skip to content

Commit 8420944

Browse files
authored
Rollup merge of rust-lang#56223 - Mark-Simulacrum:self-profile-json, r=wesleywiser
Make JSON output from -Zprofile-json valid r? @wesleywiser cc rust-lang/rustc-perf#299
2 parents 350f314 + 2d2b7c0 commit 8420944

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/librustc/util/profiling.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ macro_rules! define_categories {
102102
};
103103

104104
json.push_str(&format!(
105-
"{{ \"category\": {}, \"time_ms\": {},
105+
"{{ \"category\": \"{}\", \"time_ms\": {},\
106106
\"query_count\": {}, \"query_hits\": {} }},",
107107
stringify!($name),
108108
self.times.$name / 1_000_000,

0 commit comments

Comments
 (0)