Contur 2
Educational OS kernel simulator
Loading...
Searching...
No Matches
contur::TuiMemorySnapshot Struct Reference

Immutable memory-focused snapshot consumed by TUI views. More...

#include <tui_models.h>

Public Attributes

std::size_t totalVirtualSlots = 0
 Total number of virtual memory slots.
std::size_t freeVirtualSlots = 0
 Number of free virtual memory slots.
std::optional< std::size_t > totalFrames
 Optional total number of physical frames.
std::optional< std::size_t > freeFrames
 Optional number of free physical frames.
std::vector< std::optional< ProcessId > > frameOwners
 Optional frame ownership map (one entry per frame when provided).

Detailed Description

Immutable memory-focused snapshot consumed by TUI views.

Definition at line 73 of file tui_models.h.

Member Data Documentation

◆ frameOwners

std::vector<std::optional<ProcessId> > contur::TuiMemorySnapshot::frameOwners

Optional frame ownership map (one entry per frame when provided).

Definition at line 88 of file tui_models.h.

◆ freeFrames

std::optional<std::size_t> contur::TuiMemorySnapshot::freeFrames

Optional number of free physical frames.

Definition at line 85 of file tui_models.h.

◆ freeVirtualSlots

std::size_t contur::TuiMemorySnapshot::freeVirtualSlots = 0

Number of free virtual memory slots.

Definition at line 79 of file tui_models.h.

◆ totalFrames

std::optional<std::size_t> contur::TuiMemorySnapshot::totalFrames

Optional total number of physical frames.

Definition at line 82 of file tui_models.h.

◆ totalVirtualSlots

std::size_t contur::TuiMemorySnapshot::totalVirtualSlots = 0

Total number of virtual memory slots.

Definition at line 76 of file tui_models.h.


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