1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
|
/* */ package NET.worlds.console;
/* */
/* */ import NET.worlds.core.Std;
/* */ import java.awt.List;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class StatMemNode
/* */ extends StatMan
/* */ implements MainCallback
/* */ {
/* 25 */ private static StatMemNode _singleInstance = new StatMemNode();
/* */ private int _lastTime;
/* */
/* 28 */ public static StatMemNode getNode() { return _singleInstance; }
/* */
/* */ private static final int TITLE = 0;
/* */ private StatMemNode() {
/* 32 */ StatisticsRoot.getNode().addChild(this);
/* */ }
/* */
/* */ private static final int BLANK1 = 1;
/* */ private static final int TOTMEM = 2;
/* */ static
/* */ {
/* 39 */ nativeInit();
/* */ }
/* */
/* */ public String toString()
/* */ {
/* 44 */ return "System Memory";
/* */ }
/* */
/* */
/* */
/* */ synchronized void grabList(List list)
/* */ {
/* 51 */ super.grabList(list);
/* 52 */ Main.register(this);
/* */ }
/* */
/* */
/* */ synchronized void releaseList(boolean terminalCallback)
/* */ {
/* 58 */ if (!terminalCallback) {
/* 59 */ Main.unregister(this);
/* */ }
/* 61 */ super.releaseList(terminalCallback);
/* */ }
/* */
/* */
/* */ public synchronized void mainCallback()
/* */ {
/* 67 */ int thisTime = Std.getFastTime();
/* 68 */ if (thisTime - this._lastTime > 1000) {
/* 69 */ updateList();
/* 70 */ this._lastTime = thisTime;
/* */ }
/* */ }
/* */
/* */ public int getVMAvail() {
/* 75 */ updateMemoryStatus();
/* 76 */ return this._availPageMem;
/* */ }
/* */
/* */
/* */ private static final int FREEMEM = 3;
/* */
/* */ private static final int BLANK2 = 4;
/* */
/* */ private static final int TOTPHYSMEM = 5;
/* */ private static final int AVAILPHYSMEM = 6;
/* */ private static final int SWAPUSED = 7;
/* */ private static final int AVAILVIRTMEM = 8;
/* */ private static final int TOTUSED = 9;
/* */ private long _lastTotMem;
/* */ public int _totPhysMem;
/* */ public int _availPhysMem;
/* */ public int _totPageMem;
/* */ public int _availPageMem;
/* */ void createList()
/* */ {
/* 96 */ this._grabbedList.add("System Memory Stats", 0);
/* 97 */ this._grabbedList.add("", 1);
/* 98 */ this._lastTotMem = Runtime.getRuntime().totalMemory();
/* 99 */ this._grabbedList.add("Total " + Std.getProductName() +
/* 100 */ " Memory Available: " + this._lastTotMem + " bytes", 2);
/* */
/* 102 */ updateMemoryStatus();
/* */
/* 104 */ this._grabbedList.add(" Free " + Std.getProductName() +
/* 105 */ " Memory Available: " + Runtime.getRuntime().freeMemory() +
/* 106 */ " bytes", 3);
/* 107 */ this._grabbedList.add("", 4);
/* 108 */ this._grabbedList.add("Total System Physical Memory: " + this._totPhysMem +
/* 109 */ " bytes", 5);
/* 110 */ this._grabbedList.add("Available System Physical Memory: " +
/* 111 */ this._availPhysMem + " bytes", 6);
/* 112 */ this._grabbedList.add("Total System Swapfile Usage: " + (
/* 113 */ this._totPageMem - this._availPageMem) + " bytes", 7);
/* 114 */ this._grabbedList.add("Available Virtual Memory: " + this._availPageMem +
/* 115 */ " bytes", 8);
/* */ }
/* */
/* */ void updateList()
/* */ {
/* 120 */ long thisTotMem = Runtime.getRuntime().totalMemory();
/* 121 */ if (thisTotMem != this._lastTotMem) {
/* 122 */ this._lastTotMem = thisTotMem;
/* 123 */ this._grabbedList.replaceItem("Total " + Std.getProductName() +
/* 124 */ " Memory Available: " + this._lastTotMem + " bytes", 2);
/* */ }
/* */
/* 127 */ updateMemoryStatus();
/* */
/* 129 */ this._grabbedList.replaceItem(" Free " + Std.getProductName() +
/* 130 */ " Memory Available: " + Runtime.getRuntime().freeMemory() +
/* 131 */ " bytes", 3);
/* 132 */ this._grabbedList.replaceItem("Total System Physical Memory: " + this._totPhysMem +
/* 133 */ " bytes", 5);
/* 134 */ this._grabbedList.replaceItem("Available System Physical Memory: " +
/* 135 */ this._availPhysMem + " bytes", 6);
/* 136 */ this._grabbedList.replaceItem("Total System Swapfile Usage: " + (
/* 137 */ this._totPageMem - this._availPageMem) + " bytes", 7);
/* 138 */ this._grabbedList.replaceItem("Available Virtual Memory: " + this._availPageMem +
/* 139 */ " bytes", 8);
/* */ }
/* */
/* */ public static native void nativeInit();
/* */
/* */ public native void updateMemoryStatus();
/* */ }
/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\console\StatMemNode.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|