NAME
TUI::Gadgets::HeapView::Unix - Unix heap usage backend for HeapView
SYNOPSIS
use TUI::Gadgets::HeapView::Unix;
my $total = TUI::Gadgets::HeapView::Unix->heapSize;
DESCRIPTION
TUI::Gadgets::HeapView::Unix provides the Unix-specific implementation used by THeapView to retrieve memory usage information.
On Unix systems, memory usage is obtained from the operating system by querying the resident set size (RSS) of the current process using the ps command.
The module is not intended to be used directly by application code.
METHODS
heapSize
my $total = TUI::Gadgets::HeapView::Unix->heapSize;
Returns the amount of resident memory currently used by the process.
The value is derived from the RSS (resident set size) reported by the operating system and is returned in bytes.
To reduce system overhead, the value is cached for up to one second before being refreshed.
SEE ALSO
AUTHORS
Borland International (original Turbo Vision design)
J. Schneider <brickpool@cpan.org> (Perl implementation and maintenance)
COPYRIGHT AND LICENSE
Copyright (c) 1990-1994, 1997 by Borland International
Copyright (c) 2026 the "AUTHORS" as listed above.
This software is licensed under the MIT license (see the LICENSE file, which is part of the distribution).