2021-11-24 11:15:50 +08:00
|
|
|
#include "PikaStdLib_MemChecker.h"
|
2021-10-01 20:00:15 +08:00
|
|
|
#include "BaseObj.h"
|
|
|
|
#include "dataStrs.h"
|
|
|
|
|
|
|
|
void PikaStdLib_MemChecker_max(PikaObj* self) {
|
|
|
|
obj_sysPrintf(self, "%0.2f kB", pikaMemMax() / 1024.0);
|
|
|
|
}
|
|
|
|
|
|
|
|
void PikaStdLib_MemChecker_now(PikaObj* self) {
|
|
|
|
obj_sysPrintf(self, "%0.2f kB", pikaMemNow() / 1024.0);
|
|
|
|
}
|
|
|
|
|
|
|
|
void PikaStdLib_MemChecker_resetMax(PikaObj* self) {
|
|
|
|
pikaMemMaxReset();
|
|
|
|
}
|
2021-11-24 11:15:50 +08:00
|
|
|
|
|
|
|
float PikaStdLib_MemChecker_getMax(PikaObj* self) {
|
|
|
|
return pikaMemMax() / 1024.0;
|
|
|
|
}
|
|
|
|
|
|
|
|
float PikaStdLib_MemChecker_getNow(PikaObj* self) {
|
|
|
|
return pikaMemNow() / 1024.0;
|
2021-12-13 21:31:27 +08:00
|
|
|
}
|