Lines Matching full:emitter

10 #include "jemalloc/internal/emitter.h"
2581 prof_log_emit_threads(tsd_t *tsd, emitter_t *emitter) { in prof_log_emit_threads() argument
2582 emitter_json_array_kv_begin(emitter, "threads"); in prof_log_emit_threads()
2586 emitter_json_object_begin(emitter); in prof_log_emit_threads()
2588 emitter_json_kv(emitter, "thr_uid", emitter_type_uint64, in prof_log_emit_threads()
2593 emitter_json_kv(emitter, "thr_name", emitter_type_string, in prof_log_emit_threads()
2596 emitter_json_object_end(emitter); in prof_log_emit_threads()
2601 emitter_json_array_end(emitter); in prof_log_emit_threads()
2605 prof_log_emit_traces(tsd_t *tsd, emitter_t *emitter) { in prof_log_emit_traces() argument
2606 emitter_json_array_kv_begin(emitter, "stack_traces"); in prof_log_emit_traces()
2616 emitter_json_array_begin(emitter); in prof_log_emit_traces()
2621 emitter_json_value(emitter, emitter_type_string, in prof_log_emit_traces()
2624 emitter_json_array_end(emitter); in prof_log_emit_traces()
2630 emitter_json_array_end(emitter); in prof_log_emit_traces()
2634 prof_log_emit_allocs(tsd_t *tsd, emitter_t *emitter) { in prof_log_emit_allocs() argument
2635 emitter_json_array_kv_begin(emitter, "allocations"); in prof_log_emit_allocs()
2639 emitter_json_object_begin(emitter); in prof_log_emit_allocs()
2641 emitter_json_kv(emitter, "alloc_thread", emitter_type_size, in prof_log_emit_allocs()
2644 emitter_json_kv(emitter, "free_thread", emitter_type_size, in prof_log_emit_allocs()
2647 emitter_json_kv(emitter, "alloc_trace", emitter_type_size, in prof_log_emit_allocs()
2650 emitter_json_kv(emitter, "free_trace", emitter_type_size, in prof_log_emit_allocs()
2653 emitter_json_kv(emitter, "alloc_timestamp", in prof_log_emit_allocs()
2656 emitter_json_kv(emitter, "free_timestamp", emitter_type_uint64, in prof_log_emit_allocs()
2659 emitter_json_kv(emitter, "usize", emitter_type_uint64, in prof_log_emit_allocs()
2662 emitter_json_object_end(emitter); in prof_log_emit_allocs()
2668 emitter_json_array_end(emitter); in prof_log_emit_allocs()
2672 prof_log_emit_metadata(emitter_t *emitter) { in prof_log_emit_metadata() argument
2673 emitter_json_object_kv_begin(emitter, "info"); in prof_log_emit_metadata()
2679 emitter_json_kv(emitter, "duration", emitter_type_uint64, &ns); in prof_log_emit_metadata()
2682 emitter_json_kv(emitter, "version", in prof_log_emit_metadata()
2685 emitter_json_kv(emitter, "lg_sample_rate", in prof_log_emit_metadata()
2689 emitter_json_kv(emitter, "pid", emitter_type_int, &pid); in prof_log_emit_metadata()
2691 emitter_json_object_end(emitter); in prof_log_emit_metadata()
2718 emitter_t emitter; in prof_log_stop() local
2745 emitter_init(&emitter, emitter_output_json, &prof_emitter_write_cb, in prof_log_stop()
2748 emitter_begin(&emitter); in prof_log_stop()
2749 prof_log_emit_metadata(&emitter); in prof_log_stop()
2750 prof_log_emit_threads(tsd, &emitter); in prof_log_stop()
2751 prof_log_emit_traces(tsd, &emitter); in prof_log_stop()
2752 prof_log_emit_allocs(tsd, &emitter); in prof_log_stop()
2753 emitter_end(&emitter); in prof_log_stop()