팩토리 » Api

xplusgetsysmemorystatus

Description

현재 시스템의 메모리 상태를 읽어들이는 API이다.

Return Value

Type Description
class 없음

Remark

** 반환되는 메모리 Class정의

classMemoryStatus = function() 
{
	this.ninstalledmemory;	// 설치된 메모리크기(kbyte단위)
	this.nmemoryload;	// 메모리 사용률(0 ~ 100 %)
	this.ntotalmemoy;	// 전체 메모리크기(kbyte단위)
	this.navailmemoy;	// 사용가능한 메모리크기(kbyte단위)
}

전용 브라우저 환경에서만 동작합니다.

Example

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"); }

See Also

xplusgetsysmemoryusage

Viewer Ver.

9.1.1.1

Update Date

20210831