| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
app_mem_usage.h
Go to the documentation of this file.
1
9#ifndef __APP_MEM_USAGE_H__
10#define __APP_MEM_USAGE_H__
11
12#include "ws_symbol_export.h"
13
14 typedef struct {
15 const char *name;
16 size_t (*fetch)(void);
17 void (*gc)(void);
18
19} ws_mem_usage_t;
20
26WS_DLL_PUBLIC void memory_usage_component_register(const ws_mem_usage_t *component);
27
34WS_DLL_PUBLIC void memory_usage_gc(void);
35
43WS_DLL_PUBLIC const char *memory_usage_get(unsigned idx, size_t *value);
44
45#endif /* APP_MEM_USAGE_H */
memory_usage_get
WS_DLL_PUBLIC const char * memory_usage_get(unsigned idx, size_t *value)
Retrieves the name of a memory usage component.
Definition app_mem_usage.c:177
memory_usage_gc
WS_DLL_PUBLIC void memory_usage_gc(void)
Perform garbage collection on memory components.
Definition app_mem_usage.c:189
memory_usage_component_register
WS_DLL_PUBLIC void memory_usage_component_register(const ws_mem_usage_t *component)
Registers a memory usage component.
Definition app_mem_usage.c:168
ws_mem_usage_t
Definition app_mem_usage.h:14