gpt4 book ai didi

Xcode 仪器。虚拟内存是什么意思? iPhone OS 没有虚拟机?

转载 作者:行者123 更新时间:2023-12-04 20:08:03 26 4
gpt4 key购买 nike

我一直盯着仪器中的内存监视器,我正在抓我的。为什么显示虚拟内存? iPhone OS 没有虚拟内存。这是什么意思?

我担心的是,我的 iPad 应用程序收到内存警告,但应用程序的实际内存从未超过 70MB,虚拟内存从未超过 180MB?

有人可以启发我吗?

干杯,
道格

最佳答案

( Virtual memory 并不(仅仅)意味着将硬盘用作内存,而是一种将应用程序中使用的地址转换为真实物理内存位置的技术。)

来自 New Feature in iPhone OS 3.1 with Snow Leopard: VM Tracker :

The VM Tracker instrument is designed to report on a target process' virtual memory space, showing all of the regions mapped into the address space along with information and statistics relevant to the mapping type. For example, a region that is a memory-mapped file via an mmap call will show as a "mapped file" region and display the path for the file it references. Instruments shows size statistics for each region as well: virtual, resident, and dirty.

关于Xcode 仪器。虚拟内存是什么意思? iPhone OS 没有虚拟机?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2881995/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com