mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 22:51:50 +03:00
Quick fix for prof log printing
The emitter APIs used were incorrect, a side effect of which was extra lines being printed.
This commit is contained in:
parent
9344d25488
commit
82b8aaaeb6
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue