| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
Public Attributes | List of all members
ws_mem_usage_t Struct Reference

Describes a named memory usage tracker, providing callbacks to query current consumption and release cached allocations. More...

`#include <app_mem_usage.h>`

## Public Attributes
const char * | name
size_t(* | fetch )(void)
void(* | gc )(void)

## Detailed Description

Describes a named memory usage tracker, providing callbacks to query current consumption and release cached allocations.

## Member Data Documentation

## ◆ fetch

size_t(* ws_mem_usage_t::fetch) (void)

Callback that returns the number of bytes currently consumed by this subsystem.

## ◆ gc

void(* ws_mem_usage_t::gc) (void)

Callback invoked to release non-essential cached memory held by this subsystem.

## ◆ name

const char* ws_mem_usage_t::name

Short human-readable name identifying this memory subsystem (e.g. "epan", "wmem").

The documentation for this struct was generated from the following file:

- /builds/wireshark/wireshark/wsutil/app_mem_usage.h