Skip to content

Commit

Permalink
Make JSON output from -Zprofile-json valid
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Simulacrum committed Nov 25, 2018
1 parent 6acbb5b commit 2d2b7c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/util/profiling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ macro_rules! define_categories {
};

json.push_str(&format!(
"{{ \"category\": {}, \"time_ms\": {},
"{{ \"category\": \"{}\", \"time_ms\": {},\
\"query_count\": {}, \"query_hits\": {} }},",
stringify!($name),
self.times.$name / 1_000_000,
Expand Down

0 comments on commit 2d2b7c0

Please sign in to comment.