• Home
  • Raw
  • Download

Lines Matching refs:emitter

193 mutex_stats_emit(emitter_t *emitter, emitter_row_t *row,  in mutex_stats_emit()  argument
197 emitter_table_row(emitter, row); in mutex_stats_emit()
210 emitter_json_kv(emitter, #counter, EMITTER_TYPE_##type, \ in mutex_stats_emit()
219 stats_arena_bins_print(emitter_t *emitter, bool mutex, unsigned i) { in stats_arena_bins_print() argument
288 emitter_table_printf(emitter, "bins:"); in stats_arena_bins_print()
289 emitter_table_row(emitter, &header_row); in stats_arena_bins_print()
290 emitter_json_arr_begin(emitter, "bins"); in stats_arena_bins_print()
306 emitter_table_printf(emitter, in stats_arena_bins_print()
336 emitter_json_arr_obj_begin(emitter); in stats_arena_bins_print()
337 emitter_json_kv(emitter, "nmalloc", emitter_type_uint64, in stats_arena_bins_print()
339 emitter_json_kv(emitter, "ndalloc", emitter_type_uint64, in stats_arena_bins_print()
341 emitter_json_kv(emitter, "curregs", emitter_type_size, in stats_arena_bins_print()
343 emitter_json_kv(emitter, "nrequests", emitter_type_uint64, in stats_arena_bins_print()
345 emitter_json_kv(emitter, "nfills", emitter_type_uint64, in stats_arena_bins_print()
347 emitter_json_kv(emitter, "nflushes", emitter_type_uint64, in stats_arena_bins_print()
349 emitter_json_kv(emitter, "nreslabs", emitter_type_uint64, in stats_arena_bins_print()
351 emitter_json_kv(emitter, "curslabs", emitter_type_size, in stats_arena_bins_print()
354 emitter_json_dict_begin(emitter, "mutex"); in stats_arena_bins_print()
355 mutex_stats_emit(emitter, NULL, col_mutex64, in stats_arena_bins_print()
357 emitter_json_dict_end(emitter); in stats_arena_bins_print()
359 emitter_json_arr_obj_end(emitter); in stats_arena_bins_print()
401 emitter_table_row(emitter, &row); in stats_arena_bins_print()
403 emitter_json_arr_end(emitter); /* Close "bins". */ in stats_arena_bins_print()
406 emitter_table_printf(emitter, " ---\n"); in stats_arena_bins_print()
411 stats_arena_lextents_print(emitter_t *emitter, unsigned i) { in stats_arena_lextents_print() argument
448 emitter_table_printf(emitter, "large:"); in stats_arena_lextents_print()
449 emitter_table_row(emitter, &header_row); in stats_arena_lextents_print()
450 emitter_json_arr_begin(emitter, "lextents"); in stats_arena_lextents_print()
466 emitter_table_printf(emitter, in stats_arena_lextents_print()
474 emitter_json_arr_obj_begin(emitter); in stats_arena_lextents_print()
475 emitter_json_kv(emitter, "curlextents", emitter_type_size, in stats_arena_lextents_print()
477 emitter_json_arr_obj_end(emitter); in stats_arena_lextents_print()
488 emitter_table_row(emitter, &row); in stats_arena_lextents_print()
491 emitter_json_arr_end(emitter); /* Close "lextents". */ in stats_arena_lextents_print()
493 emitter_table_printf(emitter, " ---\n"); in stats_arena_lextents_print()
498 stats_arena_mutexes_print(emitter_t *emitter, unsigned arena_ind) { in stats_arena_mutexes_print() argument
507 emitter_json_dict_begin(emitter, "mutexes"); in stats_arena_mutexes_print()
508 emitter_table_row(emitter, &row); in stats_arena_mutexes_print()
513 emitter_json_dict_begin(emitter, name); in stats_arena_mutexes_print()
516 mutex_stats_emit(emitter, &row, col64, col32); in stats_arena_mutexes_print()
517 emitter_json_dict_end(emitter); /* Close the mutex dict. */ in stats_arena_mutexes_print()
519 emitter_json_dict_end(emitter); /* End "mutexes". */ in stats_arena_mutexes_print()
523 stats_arena_print(emitter_t *emitter, unsigned i, bool bins, bool large, in stats_arena_print() argument
542 emitter_kv(emitter, "nthreads", "assigned threads", in stats_arena_print()
546 emitter_kv(emitter, "uptime_ns", "uptime", emitter_type_uint64, in stats_arena_print()
550 emitter_kv(emitter, "dss", "dss allocation precedence", in stats_arena_print()
573 emitter_json_kv(emitter, "dirty_decay_ms", emitter_type_ssize, in stats_arena_print()
575 emitter_json_kv(emitter, "muzzy_decay_ms", emitter_type_ssize, in stats_arena_print()
578 emitter_json_kv(emitter, "pactive", emitter_type_size, &pactive); in stats_arena_print()
579 emitter_json_kv(emitter, "pdirty", emitter_type_size, &pdirty); in stats_arena_print()
580 emitter_json_kv(emitter, "pmuzzy", emitter_type_size, &pmuzzy); in stats_arena_print()
582 emitter_json_kv(emitter, "dirty_npurge", emitter_type_uint64, in stats_arena_print()
584 emitter_json_kv(emitter, "dirty_nmadvise", emitter_type_uint64, in stats_arena_print()
586 emitter_json_kv(emitter, "dirty_purged", emitter_type_uint64, in stats_arena_print()
589 emitter_json_kv(emitter, "muzzy_npurge", emitter_type_uint64, in stats_arena_print()
591 emitter_json_kv(emitter, "muzzy_nmadvise", emitter_type_uint64, in stats_arena_print()
593 emitter_json_kv(emitter, "muzzy_purged", emitter_type_uint64, in stats_arena_print()
640 emitter_table_row(emitter, &decay_row); in stats_arena_print()
665 emitter_table_row(emitter, &decay_row); in stats_arena_print()
690 emitter_table_row(emitter, &decay_row); in stats_arena_print()
731 emitter_table_row(emitter, &alloc_count_row); in stats_arena_print()
736 emitter_json_kv(emitter, #name, emitter_type_##valtype, \ in stats_arena_print()
741 emitter_json_dict_begin(emitter, "small"); in stats_arena_print()
749 emitter_table_row(emitter, &alloc_count_row); in stats_arena_print()
750 emitter_json_dict_end(emitter); /* Close "small". */ in stats_arena_print()
752 emitter_json_dict_begin(emitter, "large"); in stats_arena_print()
760 emitter_table_row(emitter, &alloc_count_row); in stats_arena_print()
761 emitter_json_dict_end(emitter); /* Close "large". */ in stats_arena_print()
771 emitter_table_row(emitter, &alloc_count_row); in stats_arena_print()
790 emitter_table_row(emitter, &mem_count_row); in stats_arena_print()
796 emitter_table_row(emitter, &mem_count_row); in stats_arena_print()
800 emitter_json_kv(emitter, #stat, emitter_type_size, &stat); \ in stats_arena_print()
803 emitter_table_row(emitter, &mem_count_row); in stats_arena_print()
815 stats_arena_mutexes_print(emitter, i); in stats_arena_print()
818 stats_arena_bins_print(emitter, mutex, i); in stats_arena_print()
821 stats_arena_lextents_print(emitter, i); in stats_arena_print()
826 stats_general_print(emitter_t *emitter) { in stats_general_print() argument
842 emitter_kv(emitter, "version", "Version", emitter_type_string, &cpv); in stats_general_print()
845 emitter_dict_begin(emitter, "config", "Build-time option settings"); in stats_general_print()
849 emitter_kv(emitter, #name, "config."#name, \ in stats_general_print()
857 emitter_kv(emitter, "malloc_conf", "config.malloc_conf", in stats_general_print()
867 emitter_dict_end(emitter); /* Close "config" dict. */ in stats_general_print()
873 emitter_kv(emitter, name, "opt."name, emitter_type, \ in stats_general_print()
882 emitter_kv_note(emitter, name, "opt."name, \ in stats_general_print()
903 emitter_dict_begin(emitter, "opt", "Run-time option settings"); in stats_general_print()
937 emitter_dict_end(emitter); in stats_general_print()
950 emitter_dict_begin(emitter, "prof", "Profiling settings"); in stats_general_print()
953 emitter_kv(emitter, "thread_active_init", in stats_general_print()
957 emitter_kv(emitter, "active", "prof.active", emitter_type_bool, in stats_general_print()
961 emitter_kv(emitter, "gdump", "prof.gdump", emitter_type_bool, in stats_general_print()
965 emitter_kv(emitter, "interval", "prof.interval", in stats_general_print()
969 emitter_kv(emitter, "lg_sample", "prof.lg_sample", in stats_general_print()
972 emitter_dict_end(emitter); /* Close "prof". */ in stats_general_print()
980 emitter_json_dict_begin(emitter, "arenas"); in stats_general_print()
983 emitter_kv(emitter, "narenas", "Arenas", emitter_type_unsigned, &uv); in stats_general_print()
990 emitter_json_kv(emitter, "dirty_decay_ms", emitter_type_ssize, &ssv); in stats_general_print()
993 emitter_json_kv(emitter, "muzzy_decay_ms", emitter_type_ssize, &ssv); in stats_general_print()
996 emitter_kv(emitter, "quantum", "Quantum size", emitter_type_size, &sv); in stats_general_print()
999 emitter_kv(emitter, "page", "Page size", emitter_type_size, &sv); in stats_general_print()
1002 emitter_kv(emitter, "tcache_max", in stats_general_print()
1008 emitter_kv(emitter, "nbins", "Number of bin size classes", in stats_general_print()
1013 emitter_kv(emitter, "nhbins", "Number of thread-cache bin size classes", in stats_general_print()
1020 if (emitter->output == emitter_output_json) { in stats_general_print()
1021 emitter_json_arr_begin(emitter, "bin"); in stats_general_print()
1023 emitter_json_arr_obj_begin(emitter); in stats_general_print()
1026 emitter_json_kv(emitter, "size", emitter_type_size, in stats_general_print()
1030 emitter_json_kv(emitter, "nregs", emitter_type_uint32, in stats_general_print()
1034 emitter_json_kv(emitter, "slab_size", emitter_type_size, in stats_general_print()
1037 emitter_json_arr_obj_end(emitter); in stats_general_print()
1039 emitter_json_arr_end(emitter); /* Close "bin". */ in stats_general_print()
1044 emitter_kv(emitter, "nlextents", "Number of large size classes", in stats_general_print()
1047 if (emitter->output == emitter_output_json) { in stats_general_print()
1048 emitter_json_arr_begin(emitter, "lextent"); in stats_general_print()
1050 emitter_json_arr_obj_begin(emitter); in stats_general_print()
1053 emitter_json_kv(emitter, "size", emitter_type_size, in stats_general_print()
1056 emitter_json_arr_obj_end(emitter); in stats_general_print()
1058 emitter_json_arr_end(emitter); /* Close "lextent". */ in stats_general_print()
1061 emitter_json_dict_end(emitter); /* Close "arenas" */ in stats_general_print()
1065 stats_print_helper(emitter_t *emitter, bool merged, bool destroyed, in stats_print_helper() argument
1098 emitter_json_dict_begin(emitter, "stats"); in stats_print_helper()
1099 emitter_json_kv(emitter, "allocated", emitter_type_size, &allocated); in stats_print_helper()
1100 emitter_json_kv(emitter, "active", emitter_type_size, &active); in stats_print_helper()
1101 emitter_json_kv(emitter, "metadata", emitter_type_size, &metadata); in stats_print_helper()
1102 emitter_json_kv(emitter, "metadata_thp", emitter_type_size, in stats_print_helper()
1104 emitter_json_kv(emitter, "resident", emitter_type_size, &resident); in stats_print_helper()
1105 emitter_json_kv(emitter, "mapped", emitter_type_size, &mapped); in stats_print_helper()
1106 emitter_json_kv(emitter, "retained", emitter_type_size, &retained); in stats_print_helper()
1108 emitter_table_printf(emitter, "Allocated: %zu, active: %zu, " in stats_print_helper()
1114 emitter_json_dict_begin(emitter, "background_thread"); in stats_print_helper()
1115 emitter_json_kv(emitter, "num_threads", emitter_type_size, in stats_print_helper()
1117 emitter_json_kv(emitter, "num_runs", emitter_type_uint64, in stats_print_helper()
1119 emitter_json_kv(emitter, "run_interval", emitter_type_uint64, in stats_print_helper()
1121 emitter_json_dict_end(emitter); /* Close "background_thread". */ in stats_print_helper()
1123 emitter_table_printf(emitter, "Background threads: %zu, " in stats_print_helper()
1137 emitter_table_row(emitter, &row); in stats_print_helper()
1138 emitter_json_dict_begin(emitter, "mutexes"); in stats_print_helper()
1143 emitter_json_dict_begin(emitter, global_mutex_names[i]); in stats_print_helper()
1144 mutex_stats_emit(emitter, &row, col64, col32); in stats_print_helper()
1145 emitter_json_dict_end(emitter); in stats_print_helper()
1148 emitter_json_dict_end(emitter); /* Close "mutexes". */ in stats_print_helper()
1151 emitter_json_dict_end(emitter); /* Close "stats". */ in stats_print_helper()
1156 emitter_json_dict_begin(emitter, "stats.arenas"); in stats_print_helper()
1184 emitter_table_printf(emitter, "Merged arenas stats:\n"); in stats_print_helper()
1185 emitter_json_dict_begin(emitter, "merged"); in stats_print_helper()
1186 stats_arena_print(emitter, MALLCTL_ARENAS_ALL, bins, in stats_print_helper()
1188 emitter_json_dict_end(emitter); /* Close "merged". */ in stats_print_helper()
1194 emitter_table_printf(emitter, in stats_print_helper()
1196 emitter_json_dict_begin(emitter, "destroyed"); in stats_print_helper()
1197 stats_arena_print(emitter, MALLCTL_ARENAS_DESTROYED, in stats_print_helper()
1199 emitter_json_dict_end(emitter); /* Close "destroyed". */ in stats_print_helper()
1209 emitter_json_dict_begin(emitter, in stats_print_helper()
1211 emitter_table_printf(emitter, in stats_print_helper()
1213 stats_arena_print(emitter, i, bins, in stats_print_helper()
1216 emitter_json_dict_end(emitter); in stats_print_helper()
1220 emitter_json_dict_end(emitter); /* Close "stats.arenas". */ in stats_print_helper()
1267 emitter_t emitter; in stats_print() local
1268 emitter_init(&emitter, in stats_print()
1271 emitter_begin(&emitter); in stats_print()
1272 emitter_table_printf(&emitter, "___ Begin jemalloc statistics ___\n"); in stats_print()
1273 emitter_json_dict_begin(&emitter, "jemalloc"); in stats_print()
1276 stats_general_print(&emitter); in stats_print()
1279 stats_print_helper(&emitter, merged, destroyed, unmerged, in stats_print()
1283 emitter_json_dict_end(&emitter); /* Closes the "jemalloc" dict. */ in stats_print()
1284 emitter_table_printf(&emitter, "--- End jemalloc statistics ---\n"); in stats_print()
1285 emitter_end(&emitter); in stats_print()