| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package TUI::Memory;
|
|
2
|
2
|
|
|
2
|
|
3216
|
use strict;
|
|
|
2
|
|
|
|
|
4
|
|
|
|
2
|
|
|
|
|
74
|
|
|
3
|
2
|
|
|
2
|
|
11
|
use warnings;
|
|
|
2
|
|
|
|
|
3
|
|
|
|
2
|
|
|
|
|
226
|
|
|
4
|
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '2.0.0';
|
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=encoding utf8
|
|
8
|
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=head1 NAME
|
|
10
|
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
TUI::Memory - Memory utilities for the TUI::Vision framework
|
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=head1 SYNOPSIS
|
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
use TUI::Memory;
|
|
16
|
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
# Placeholder module.
|
|
18
|
|
|
|
|
|
|
# The full memory utility system will be migrated from TV::Memory.
|
|
19
|
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head1 DESCRIPTION
|
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
TUI::Memory provides memory-related utility functions for the
|
|
23
|
|
|
|
|
|
|
TUI::Vision framework. In the original Turbo Vision architecture,
|
|
24
|
|
|
|
|
|
|
this subsystem offered lightweight helpers for detecting low-memory
|
|
25
|
|
|
|
|
|
|
conditions and performing diagnostic checks.
|
|
26
|
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
This module re-exported:
|
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=over 4
|
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=item * Util
|
|
32
|
|
|
|
|
|
|
Utility functions such as C for memory monitoring.
|
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=back
|
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
This stub does not implement any of these features yet.
|
|
37
|
|
|
|
|
|
|
It exists solely to reserve the namespace for the upcoming migration.
|
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 ROADMAP
|
|
40
|
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=over 4
|
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=item * Phase 2
|
|
44
|
|
|
|
|
|
|
Migration of TV::Memory::Util into TUI::Memory::Util.
|
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=item * Phase 3
|
|
47
|
|
|
|
|
|
|
Integration with TUI::Drivers for system-level memory checks.
|
|
48
|
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=item * Phase 4
|
|
50
|
|
|
|
|
|
|
Optional diagnostic hooks for TUI::Gadgets (HeapView).
|
|
51
|
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=back
|
|
53
|
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 AUTHOR
|
|
55
|
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
J. Schneider
|
|
57
|
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=cut
|
|
59
|
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
1;
|