tinyimg 1.0.0
Lightweight image manipulation library for Cloudflare Workers
Loading...
Searching...
No Matches
TinyHeapStats Struct Reference

A snapshot of heap occupancy. More...

#include <memory.h>

Public Attributes

size_t capacity
size_t used
size_t available
size_t peak
uint32_t blocks
uint32_t free_blocks

Detailed Description

A snapshot of heap occupancy.

Reported by the size and benchmark harnesses; peak is the number the wasm module's memory ceiling has to cover.

Member Data Documentation

◆ available

size_t TinyHeapStats::available

Payload bytes sitting in free blocks.

◆ blocks

uint32_t TinyHeapStats::blocks

Blocks in the address ordered list, free and live together.

◆ capacity

size_t TinyHeapStats::capacity

Bytes the heap region spans.

◆ free_blocks

uint32_t TinyHeapStats::free_blocks

How many of those blocks are free.

◆ peak

size_t TinyHeapStats::peak

Highest used has reached since the heap was installed.

◆ used

size_t TinyHeapStats::used

Payload bytes currently handed out.


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