MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / mi_stat_counter_print

Function mi_stat_counter_print

3rd/mimalloc-2.0.9/src/stats.c:221–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219}
220
221static void mi_stat_counter_print(const mi_stat_counter_t* stat, const char* msg, mi_output_fun* out, void* arg ) {
222 _mi_fprintf(out, arg, "%10s:", msg);
223 mi_print_amount(stat->total, -1, out, arg);
224 _mi_fprintf(out, arg, "\n");
225}
226
227static void mi_stat_counter_print_avg(const mi_stat_counter_t* stat, const char* msg, mi_output_fun* out, void* arg) {
228 const int64_t avg_tens = (stat->count == 0 ? 0 : (stat->total*10 / stat->count));

Callers 1

_mi_stats_printFunction · 0.85

Calls 2

_mi_fprintfFunction · 0.85
mi_print_amountFunction · 0.85

Tested by

no test coverage detected