Jettisoned Tasks Still In Multitasking Bar

僤鯓⒐⒋嵵緔 提交于 2019-12-25 01:16:42

问题


I was inspecting my crash log and noticed several apps appear to have been jettisoned. But looking at the multitasking bar, they are still there. Is there another way I can confirm that inactive apps are actually being jettisoned before my app crashes? Can this be seen in any of the tools?

Up until now, I assumed my app was being closed without the inactive apps being jettisoned. Now I'm unsure.

Update

I have, on several occasions, had my crashing app stop crashing after I removed everything from the multitasking bar. I didn't check the crash log in those cases, and I'll have to do that in the future. But it's hard to imagine that that was just a coincidence.


回答1:


The bar is simply a launch history. It doesnt represent the current state of your device memory except by coincidence.....




回答2:


I used instruments to see what the memory usage was while my app was running. I can see that real memory in the Memory Monitor reports the amount of real memory being used by each app.

Seeing that several inactive apps were showing memory use, I confirmed that they were in the multitasking bar. I was able to manually delete each one from the bar and saw an immediate response in memory usage. Each deleted app disappeared from the memory usage list.

This answers my question -- Instruments can show how much memory is used by apps that show up in the multitasking bar.

Apparently, the multitasking bar is showing applications that are currently taking real memory. It is not just a launch history.

That being said, I don't understand why Jetsam does not release these apps before killing my running app. I'll post that question later as a new one.



来源:https://stackoverflow.com/questions/9978135/jettisoned-tasks-still-in-multitasking-bar

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!