Xcode Instruments - Zombies - 我在寻找什么?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12098444/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 01:18:50  来源:igfitidea点击:

Xcode Instruments - Zombies - what am I looking for?

iosxcodeinstrumentsnszombienszombieenabled

提问by soleil

When I run Project/Profile in Xcode and choose "Zombies", the app runs in the simulator with "NSZombie detection" enabled. But what should I be looking for to tell me that there is a problem? All I see is the Allocation instrument running and the statistics below. Where will it actually show me that a Zombiewas detected?

当我在 Xcode 中运行 Project/Profile 并选择“ Zombies”时,应用程序在模拟器中运行并NSZombie detection启用“ ”。但是我应该寻找什么来告诉我有问题?我看到的是正在运行的分配工具和下面的统计数据。它实际上会在哪里显示Zombie检测到 a ?

回答by Midhun MP

You will get the leak above the object allocation bar. Check this image; enter image description here

您将在对象分配栏上方看到泄漏。检查此图像; 在此处输入图片说明

For a reference, check this video

如需参考,请查看此视频