mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 13:13:06 +00:00
Unify buffered writer naming
This commit is contained in:
@@ -631,12 +631,12 @@ prof_log_stop(tsdn_t *tsdn) {
|
||||
char *prof_log_stop_buf = (char *)iallocztm(tsdn,
|
||||
PROF_LOG_STOP_BUFSIZE, sz_size2index(PROF_LOG_STOP_BUFSIZE),
|
||||
false, NULL, true, arena_get(TSDN_NULL, 0, true), true);
|
||||
buf_writer_arg_t prof_log_stop_buf_arg = {prof_emitter_write_cb, &arg,
|
||||
buf_write_arg_t prof_log_stop_buf_arg = {prof_emitter_write_cb, &arg,
|
||||
prof_log_stop_buf, PROF_LOG_STOP_BUFSIZE - 1, 0};
|
||||
|
||||
/* Emit to json. */
|
||||
emitter_init(&emitter, emitter_output_json_compact,
|
||||
buffered_write_cb, &prof_log_stop_buf_arg);
|
||||
emitter_init(&emitter, emitter_output_json_compact, buf_write_cb,
|
||||
&prof_log_stop_buf_arg);
|
||||
|
||||
emitter_begin(&emitter);
|
||||
prof_log_emit_metadata(&emitter);
|
||||
@@ -645,7 +645,7 @@ prof_log_stop(tsdn_t *tsdn) {
|
||||
prof_log_emit_allocs(tsd, &emitter);
|
||||
emitter_end(&emitter);
|
||||
|
||||
buf_writer_flush(&prof_log_stop_buf_arg);
|
||||
buf_write_flush(&prof_log_stop_buf_arg);
|
||||
idalloctm(tsdn, prof_log_stop_buf, NULL, NULL, true, true);
|
||||
|
||||
/* Reset global state. */
|
||||
|
||||
Reference in New Issue
Block a user