Make compact json format as default

Saves 20-50% of the output size.
This commit is contained in:
Yinan Zhang
2019-08-09 10:19:51 -07:00
parent a219cfcda3
commit eb70fef8ca
2 changed files with 6 additions and 6 deletions

View File

@@ -635,8 +635,8 @@ prof_log_stop(tsdn_t *tsdn) {
prof_log_stop_buf, PROF_LOG_STOP_BUFSIZE - 1, 0};
/* Emit to json. */
emitter_init(&emitter, emitter_output_json, buffered_write_cb,
&prof_log_stop_buf_arg);
emitter_init(&emitter, emitter_output_json_compact,
buffered_write_cb, &prof_log_stop_buf_arg);
emitter_begin(&emitter);
prof_log_emit_metadata(&emitter);