从ActionScript获取Adobe Flash中的总内存量

时间:2021-09-23 16:59:13

I have to load a lot of data from BlazeDS and/or Livecycle DS service to Adobe Flex and would like to find out what's available from memory stand point. This is similar to querying in java: long heapSize = Runtime.getRuntime().totalMemory()

我必须将大量数据从BlazeDS和/或Livecycle DS服务加载到Adobe Flex,并希望从内存的角度找出可用的内容。这与java中的查询类似:long heapSize = Runtime.getRuntime()。totalMemory()

1 个解决方案

#1


You can't find the available memory, but you can find the memory currently in use via the System.totalMemory property.

您找不到可用内存,但可以通过System.totalMemory属性找到当前正在使用的内存。

http://livedocs.adobe.com/flex/3/langref/flash/system/System.html#totalMemory

#1


You can't find the available memory, but you can find the memory currently in use via the System.totalMemory property.

您找不到可用内存,但可以通过System.totalMemory属性找到当前正在使用的内存。

http://livedocs.adobe.com/flex/3/langref/flash/system/System.html#totalMemory