mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-30 00:08:03 +00:00
Display how many bytes are allocated
This commit is contained in:
parent
6408121b3e
commit
82911c8559
@ -181,7 +181,7 @@ namespace Recovery
|
|||||||
GraphicalUserInterface::Handle SchedLblHnd = wdgDbgWin->CreateLabel({5, 15, 0, 0}, "0000000000000000 / 0000000000000000");
|
GraphicalUserInterface::Handle SchedLblHnd = wdgDbgWin->CreateLabel({5, 15, 0, 0}, "0000000000000000 / 0000000000000000");
|
||||||
|
|
||||||
wdgDbgWin->CreateLabel({5, 40, 0, 0}, "Memory Usage");
|
wdgDbgWin->CreateLabel({5, 40, 0, 0}, "Memory Usage");
|
||||||
GraphicalUserInterface::Handle MemLblHnd = wdgDbgWin->CreateLabel({5, 55, 0, 0}, "0MB / 0GB (0MB reserved) 0%");
|
GraphicalUserInterface::Handle MemLblHnd = wdgDbgWin->CreateLabel({5, 55, 0, 0}, "0MB / 0GB (0MB reserved) 0% (0000000000000000 bytes allocated)");
|
||||||
|
|
||||||
wdgDbgWin->CreateLabel({5, 95, 0, 0}, "GUI Info");
|
wdgDbgWin->CreateLabel({5, 95, 0, 0}, "GUI Info");
|
||||||
wdgDbgWin->CreateLabel({5, 110, 0, 0}, " Fetch Inputs / Paint Desktop / Paint Widgets");
|
wdgDbgWin->CreateLabel({5, 110, 0, 0}, " Fetch Inputs / Paint Desktop / Paint Widgets");
|
||||||
@ -253,7 +253,7 @@ namespace Recovery
|
|||||||
MemTotal = KernelAllocator.GetTotalMemory();
|
MemTotal = KernelAllocator.GetTotalMemory();
|
||||||
MemReserved = KernelAllocator.GetReservedMemory();
|
MemReserved = KernelAllocator.GetReservedMemory();
|
||||||
int MemPercent = (MemUsed * 100) / MemTotal;
|
int MemPercent = (MemUsed * 100) / MemTotal;
|
||||||
sprintf(TicksText, "%ldMB / %ldGB (%ldMB reserved) %d%%", TO_MB(MemUsed), TO_GB(MemTotal), TO_MB(MemReserved), MemPercent);
|
sprintf(TicksText, "%ldMB / %ldGB (%ldMB reserved) %d%% (%ld bytes allocated)", TO_MB(MemUsed), TO_GB(MemTotal), TO_MB(MemReserved), MemPercent, MemUsed);
|
||||||
wdgDbgWin->SetText(MemLblHnd, TicksText);
|
wdgDbgWin->SetText(MemLblHnd, TicksText);
|
||||||
RefreshMemCounter = 25;
|
RefreshMemCounter = 25;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user