summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYinan Zhang <zyn8950@gmail.com>2019-07-30 18:26:13 (GMT)
committerQi Wang <interwq@gmail.com>2019-07-31 02:31:28 (GMT)
commit82b8aaaeb68ccb65ca52532f4806a43fbdb26b7a (patch)
tree7fd8a3132e80c6966f72e1c337b1f93c5968b90e
parent9344d25488b626739c9080eb471d1bd15eeb046b (diff)
downloadjemalloc-82b8aaaeb68ccb65ca52532f4806a43fbdb26b7a.zip
jemalloc-82b8aaaeb68ccb65ca52532f4806a43fbdb26b7a.tar.gz
jemalloc-82b8aaaeb68ccb65ca52532f4806a43fbdb26b7a.tar.bz2
Quick fix for prof log printing
The emitter APIs used were incorrect, a side effect of which was extra lines being printed.
-rw-r--r--src/prof.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/prof.c b/src/prof.c
index 4ebe279..fcf9c6f 100644
--- a/src/prof.c
+++ b/src/prof.c
@@ -2744,12 +2744,12 @@ prof_log_stop(tsdn_t *tsdn) {
emitter_init(&emitter, emitter_output_json, &prof_emitter_write_cb,
(void *)(&arg));
- emitter_json_object_begin(&emitter);
+ emitter_begin(&emitter);
prof_log_emit_metadata(&emitter);
prof_log_emit_threads(tsd, &emitter);
prof_log_emit_traces(tsd, &emitter);
prof_log_emit_allocs(tsd, &emitter);
- emitter_json_object_end(&emitter);
+ emitter_end(&emitter);
/* Reset global state. */
if (log_tables_initialized) {