mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-29 17:22:56 +08:00
use memchecker.c
This commit is contained in:
parent
2cf6013354
commit
bcb43e5e7c
@ -0,0 +1,17 @@
|
||||
#include "dataStrs.h"
|
||||
#include "BaseObj.h"
|
||||
|
||||
void PikaStdLib_MemChecker_max(PikaObj *self)
|
||||
{
|
||||
printf("%0.2f kB", pikaMemMax() / 1024.0);
|
||||
}
|
||||
|
||||
void PikaStdLib_MemChecker_now(PikaObj *self)
|
||||
{
|
||||
printf("%0.2f kB", pikaMemNow() / 1024.0);
|
||||
}
|
||||
|
||||
void PikaStdLib_MemChecker_resetMax(PikaObj *self)
|
||||
{
|
||||
pikaMemMaxReset();
|
||||
}
|
@ -113,17 +113,3 @@ void PikaStdLib_SysObj_type(PikaObj *self, char *argPath)
|
||||
obj_setSysOut(self, arg_getType(arg));
|
||||
}
|
||||
|
||||
void PikaStdLib_MemChecker_max(PikaObj *self)
|
||||
{
|
||||
printf("%0.2f kB", pikaMemMax() / 1024.0);
|
||||
}
|
||||
|
||||
void PikaStdLib_MemChecker_now(PikaObj *self)
|
||||
{
|
||||
printf("%0.2f kB", pikaMemNow() / 1024.0);
|
||||
}
|
||||
|
||||
void PikaStdLib_MemChecker_resetMax(PikaObj *self)
|
||||
{
|
||||
pikaMemMaxReset();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user