2014-02-25 20:42:35 +00:00
|
|
|
/*
|
2013-07-30 05:49:58 +00:00
|
|
|
* app_mem_usage.h
|
|
|
|
*
|
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
2018-02-08 16:59:17 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
2013-07-30 05:49:58 +00:00
|
|
|
*/
|
|
|
|
#ifndef __APP_MEM_USAGE_H__
|
|
|
|
#define __APP_MEM_USAGE_H__
|
|
|
|
|
2013-07-31 18:26:14 +00:00
|
|
|
#include "ws_symbol_export.h"
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
const char *name;
|
|
|
|
gsize (*fetch)(void);
|
|
|
|
void (*gc)(void);
|
|
|
|
|
|
|
|
} ws_mem_usage_t;
|
|
|
|
|
|
|
|
WS_DLL_PUBLIC void memory_usage_component_register(const ws_mem_usage_t *component);
|
|
|
|
|
|
|
|
WS_DLL_PUBLIC void memory_usage_gc(void);
|
|
|
|
|
2016-06-23 15:53:45 +00:00
|
|
|
WS_DLL_PUBLIC const char *memory_usage_get(guint idx, gsize *value);
|
2013-07-30 05:49:58 +00:00
|
|
|
|
2013-07-30 18:57:32 +00:00
|
|
|
#endif /* APP_MEM_USAGE_H */
|