English 中文(简体)
如何在分配或租赁文书中找到目标区
原标题:How to find Objective-C Blocks in Allocations or Leaks Instruments

第一次质疑,因此不认为反对我......

对于我制造的标准物品和子类,在分配或《Leaks文书》中找到一个特定物体是相当简单的。 i. 即,如果我想看到一个称为“观点”的“情报分析员”的子流,我可以通过分配工具滚动,看到活物体的数量在增加和减少。 同样,如果该物体被泄露,Leaks仪器将列出该物体。 我甚至可以搜索特定物体。

然而,我不敢确定在寻找目标区块时需要什么。 我在《Leaks文书》中注意到,被泄露的路障变成“NSMallocBlock”。 然而,在使用分配工具时,没有发现__NSMallocBlock。

Any ideas what to look for in the Allocations Instrument to track Objective-C blocks?

很多 增 编

最佳回答

至少在Xcode 4.2.1中,“Blocks(如在(^)中,我用上门/双手在分配工具中显示为一般的马洛斯记忆区块(如记忆库中,小区对小区来说不是黑体)。

因此,Malloc NN Bytes,其中NN是Block > 所需批量。 通常,视<>Block可能捕获的数值而定,Maloc 32或Maloc 64。

当然,同样规模的其他马洛斯区很可能存在。 如果你由负责任的传票人来做,这可能有助于你过滤。

问题回答

暂无回答




相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签