Blame memkind-1.10.0/jemalloc/include/jemalloc/internal/stats.h

Packit 345191
#ifndef JEMALLOC_INTERNAL_STATS_H
Packit 345191
#define JEMALLOC_INTERNAL_STATS_H
Packit 345191
Packit 345191
/*  OPTION(opt,		var_name,	default,	set_value_to) */
Packit 345191
#define STATS_PRINT_OPTIONS						\
Packit 345191
    OPTION('J',		json,		false,		true)		\
Packit 345191
    OPTION('g',		general,	true,		false)		\
Packit 345191
    OPTION('m',		merged,		config_stats,	false)		\
Packit 345191
    OPTION('d',		destroyed,	config_stats,	false)		\
Packit 345191
    OPTION('a',		unmerged,	config_stats,	false)		\
Packit 345191
    OPTION('b',		bins,		true,		false)		\
Packit 345191
    OPTION('l',		large,		true,		false)		\
Packit 345191
    OPTION('x',		mutex,		true,		false)		\
Packit 345191
    OPTION('e',		extents,	true,		false)
Packit 345191
Packit 345191
enum {
Packit 345191
#define OPTION(o, v, d, s) stats_print_option_num_##v,
Packit 345191
    STATS_PRINT_OPTIONS
Packit 345191
#undef OPTION
Packit 345191
    stats_print_tot_num_options
Packit 345191
};
Packit 345191
Packit 345191
/* Options for stats_print. */
Packit 345191
extern bool opt_stats_print;
Packit 345191
extern char opt_stats_print_opts[stats_print_tot_num_options+1];
Packit 345191
Packit 345191
/* Implements je_malloc_stats_print. */
Packit 345191
void stats_print(void (*write_cb)(void *, const char *), void *cbopaque,
Packit 345191
    const char *opts);
Packit 345191
Packit 345191
#endif /* JEMALLOC_INTERNAL_STATS_H */