instruments

Avoiding blended layers when using resizableImages on iOS

☆樱花仙子☆ 提交于 2019-12-07 01:54:25
问题 I'm trying to avoid blended layers on iOS to improve performance. However, I notice that the resizable image I'm using for the backgroundView of my UITableViewCell is being marked as a blended layer: In fact, using any resizable image--even a JPEG with no transparency--caused layer blending, as seen in this screenshot where first a PNG and then a JPEG is used as a resizable image in a UIImageView . The only resizable image that didn't require a blended layer was a 1x1 pixel image, seen at the

Why VM Tracker is empty?

て烟熏妆下的殇ゞ 提交于 2019-12-06 21:30:16
问题 I'm using Allocations template to profile my app on iPhone, but VM Tracker is always empty. Why? How to make it show data? 回答1: You have to tell it to take snapshots periodically. Before starting the app... Click on the VM Tracker Instrument to activate it. Show the Detail View (Command-D) if you don't see it already. In the left (blue) side bar, activate "Automatic Snapshotting". Run. Optionally you can choose to take snapshots manually before and after interesting events in your app. 回答2:

Display FPS on iOS onscreen (without Instruments)

北战南征 提交于 2019-12-06 21:20:05
问题 In WWDC 2012 Session 506, they display the frames per second on a UILabel in the application, without having to use the Core Animation profiler attached to instruments. I would like to do this for convenience as well as to let other members of my team monitor FPS as they use the app in real-world scenarios. Unfortunately, session 506 isn't included the the WWDC '12 sample code. Does anyone know how to do this? I know that Cocos2D has this capability in their CCDirector , but their approach

Memory leak in iOS, AVPlayer is never deallocated

僤鯓⒐⒋嵵緔 提交于 2019-12-06 20:49:16
问题 I used the AVPlayerDemo sample from the Apple docs and wrote my own UI on top of it to play videos selected from a UITableViewController. Now, the problem is that there's a memory leak here somewhere which I can't find out. The problem is that the AVPlayer object is not being dealloced, I guessed this because every time a press back button and select a new video to play, there is a huge jump in the total memory consumed by the app which is show here: The first time the video is player, the

What is an “misaligned image” in terms of Core Animation in iPhone OS?

时光毁灭记忆、已成空白 提交于 2019-12-06 17:52:59
问题 Instruments tells that there are "misaligned images" which are animated by core animation. What does that mean? UPDATE: I've seen that in Instruments.app > Core Animation. 回答1: I'd love more information about where you're seeing this, but my suspicion is that it's referring to an image that is not pixel-aligned. Quartz allows you to draw at fractional pixels (recall that CGPoint takes CGFloats, not NSIntegers), but it's more expensive and tends to create a bit of blurriness. You can't really

Cant launch iOS app with Instruments on device

北战南征 提交于 2019-12-06 17:29:21
问题 App installs, Instruments launch, but drop down in instruments says select target, and the app never launches. Console says 6/14/11 2:36:22 PM Instruments[1951] XRMobileDeviceException while performing application lookup on device : (null) Device is iOS 4.3.3, regular build and run works and no warnings from Xcode. Profile just doesnt work. Tried cleaning the build, restarting Mac OS and the device. Still no go! 回答1: I had the same problem. I didn't solve it, but an easy workaround is to

What is UIATargetHasGoneAWOLException while operating iphone with UIAutomation through Instruments.

╄→尐↘猪︶ㄣ 提交于 2019-12-06 13:15:37
I am using UIAutomation, through Instruments from Xcode, to do something on iPhone, and got a weird exception: UIATargetHasGoneAWOLException. Anybody know what does this exception mean? I've found that this occurs when certain unknown conditions exist AND an iPhone is connected to the computer. Disconnecting the iPhone will solve the problem. Unfortunately, I don't know what the "certain unknown conditions" are, because a connected iPhone device doesn't automatically result in this exception. But I do see that disconnecting the iPhone is sufficient to prevent it. I found this article that

Advice using leaks in instruments for noobs

*爱你&永不变心* 提交于 2019-12-06 12:48:47
Hello I am pretty new to iphone development. I have run my app for the first time using the "Leaks" from "Instruments". It shows me several leaks around 20 the smallest is 32 bytes and there is one with 1KB. I have followed the memory management guidelines, (i (think i) understand how and when to use release, not to use it when adding to autorelease pools, for every copy, retain, init there should be a release,... etc). I don't think I understand the output of the Leaks in instruments. What does "Responsible library" and "Responsible frame" mean. Because there are some classes and methods i

iPhone (hardware?) id for instruments launched from shell

依然范特西╮ 提交于 2019-12-06 12:11:37
问题 Hey. I'm trying to launch Instruments from shell with iPhone specified as target. As for this apple doc I should be able to specify target with '-w' parameter but I don't know what should be there. I've tried iPhone name, I've tried its UUID but nothing worked - constantly I get 'Unknown hardware device specified'. I also checked content of some saved trace document, but inside I see UUID of the iPhone. Maybe it is some prefix/suffix that should be added to the UUID ? In the end i would like

What are these memory leaking objects, detected by xCode Instruments?

自古美人都是妖i 提交于 2019-12-06 12:01:50
I have an iPhone app, that seems to have memory leaking problem. It's a puzzle game, after a few puzzles, the app crashes on devices. I'm now trying to use xcode Instruments to detect what's going on. First time to use Instruments. I noticed a leak bar in the "Leaks" plot, right the time when the view is loaded. I copied the leaked objects below. Leaked Object # Address Size Responsible Library Responsible Frame __NSTimeZone 1 0x1f87cfc0 32 Bytes CFNetwork _CFGregorianDateCreateWithBytes icu::OlsonTimeZone 1 0x1f1a9a00 1.00 KB CFNetwork PACEntryStreamCallback(__CoreReadStream*, unsigned long,