Memory footprint


pages 16k

malloc出來的是clean的

寫過之后變成dirty

 

memory mapped files

readonly的file是clean的

 

dirty--memory written by my app---ie,malloc, array,string,decoded image buffers

compressed---ios7---訪問前 會壓縮它

clean--data that can be paged out of memory---ie, image.jpg  blob.data  training.model framework的 const sec

可以被置換出去的 看上去也是只讀的 

 

 memory可以省cpu時間

比如cache 比如多線程的context

gpu也可以用memory省時間

如果要省mem就要反過來用了

trade-offs

 

footprint指 dirty+compress 這部分mem


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM