15 lines
344 B
C
Raw Normal View History

2021-11-16 21:29:27 +08:00
#include "BaseObj.h"
#include "dataStrs.h"
void PikaStdLib_MemChecker_max(PikaObj* self) {
2021-11-16 21:41:57 +08:00
obj_sysPrintf(self, "%0.2f kB", pikaMemMax() / 1024.0);
2021-11-16 21:29:27 +08:00
}
void PikaStdLib_MemChecker_now(PikaObj* self) {
2021-11-16 21:41:57 +08:00
obj_sysPrintf(self, "%0.2f kB", pikaMemNow() / 1024.0);
2021-11-16 21:29:27 +08:00
}
void PikaStdLib_MemChecker_resetMax(PikaObj* self) {
2021-11-16 21:41:57 +08:00
pikaMemMaxReset();
2021-11-16 21:29:27 +08:00
}