NAME

TUI::Gadgets::HeapView::Linux - Linux heap usage backend for HeapView

SYNOPSIS

use TUI::Gadgets::HeapView::Linux;

my $total = TUI::Gadgets::HeapView::Linux->heapSize;

DESCRIPTION

TUI::Gadgets::HeapView::Linux provides the Linux-specific implementation used by THeapView to retrieve memory usage information.

On Linux systems, heap usage is derived from the process virtual memory statistics provided by the operating system. This module encapsulates the platform-specific logic required to obtain that information.

The module is not intended to be used directly by application code.

METHODS

heapSize

my $total = TUI::Gadgets::HeapView::Linux->heapSize;

Returns the amount of memory currently used by the process.

On Linux, the value is obtained from /proc/self/statm.

The returned value is expressed in bytes.

SEE ALSO

THeapView

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).