コード例 #1
0
ファイル: libvmmalloc.c プロジェクト: Neuvenen/nvml
static void
libvmmalloc_fini(void)
{
	LOG(3, NULL);

	char *env_str = getenv(VMMALLOC_LOG_STATS_VAR);
	if ((env_str == NULL) || strcmp(env_str, "1") != 0)
		return;

	LOG_NONL(0, "\n=========   system heap  ========\n");
	je_vmem_malloc_stats_print(
		print_jemalloc_stats, NULL, "gba");

	LOG_NONL(0, "\n=========    vmem pool   ========\n");
	je_vmem_pool_malloc_stats_print(
		(pool_t *)((uintptr_t)Vmp + Header_size),
		print_jemalloc_stats, NULL, "gba");
	out_fini();
}
コード例 #2
0
ファイル: vmem.c プロジェクト: andreas-bluemle/nvml
/*
 * print_jemalloc_stats -- print function, for jemalloc statistics
 *
 * Prints statistics from jemalloc. All statistics are printed with level 0.
 */
static void
print_jemalloc_stats(void *ignore, const char *s)
{
	LOG_NONL(0, "%s", s);
}
コード例 #3
0
ファイル: libvmmalloc.c プロジェクト: Neuvenen/nvml
/*
 * print_jemalloc_messages -- (internal) custom print function, for jemalloc
 *
 * Prints traces from jemalloc. All traces from jemalloc
 * are considered as error messages.
 */
static void
print_jemalloc_messages(void *ignore, const char *s)
{
	LOG_NONL(1, "%s", s);
}