NAME

TUI::Gadgets::HeapView - view displaying current heap usage

HIERARCHY

TObject
  TView
    THeapView

SYNOPSIS

use TUI::Gadgets;

my $heapView = new_THeapView(
  $bounds
);

DESCRIPTION

THeapView implements a view that displays information about the current heap usage of the application.

The view periodically samples heap statistics and renders a textual representation of used and available memory. It is intended as a diagnostic gadget and is typically embedded in status views or debugging layouts.

CONSTRUCTOR

new

my $view = THeapView->new(
  bounds => $bounds
);

Creates a new heap view.

bounds

Bounding rectangle defining the position and size of the view (TRect).

new_THeapView

my $view = new_THeapView($bounds);

Factory-style constructor using positional arguments.

METHODS

draw

$view->draw();

Renders the heap usage information.

heapSize

my $total = $view->heapSize();

Returns the total heap size currently available to the application.

update

$view->update();

Refreshes the internal heap statistics and updates the display.

SEE ALSO

TUI::Views::HelpView::Win32, TUI::Views::View, TUI::Views::DrawBuffer

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