현재 시스템의 메모리 상태를 읽어들이는 API이다.
Type | Description |
---|---|
class | 없음 |
** 반환되는 메모리 Class정의 classMemoryStatus = function() { this.ninstalledmemory; // 설치된 메모리크기(kbyte단위) this.nmemoryload; // 메모리 사용률(0 ~ 100 %) this.ntotalmemoy; // 전체 메모리크기(kbyte단위) this.navailmemoy; // 사용가능한 메모리크기(kbyte단위) }
전용 브라우저 환경에서만 동작합니다.
function btnMemory_on_mouseup(objInst)
{
var clsMemory = factory.xplusgetsysmemorystatus();
factory.consoleprint("설치된 메모리 : " + parseInt(clsMemory.ninstalledmemory / 1024, 10) + "MB");
factory.consoleprint("메모리 사용률 : " + clsMemory.nmemoryload + "%");
factory.consoleprint("전체 메모리 : " + parseInt(clsMemory.ntotalmemoy / 1024, 10) + "MB");
factory.consoleprint("이용가능한 메모리 : " + parseInt(clsMemory.navailmemoy / 1024, 10) + "MB");
factory.consoleprint("사용중 memoy : " + parseInt((clsMemory.ntotalmemoy - clsMemory.navailmemoy) / 1024, 10) + "MB");
}