Make JSON output from -Zprofile-json valid

This commit is contained in:
Mark Rousskov 2018-11-25 15:43:00 -07:00
parent 6acbb5b65c
commit 2d2b7c01eb

View File

@ -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,