instruments

Using Instruments to improve memory-management with modal view controllers

I feel like I don't understand something fundamental here. I've been working on memory management in my app while using Instruments to check out live allocations. I have a modal view controller (settingsViewController) that has an image for a background. One thing I noticed was that even after settingsViewController dealloc is called,...

iPhone: OpenAL & AudioToolbox leak

I work with OpenAL to play sounds in my app. When I test it using Instruments tool, it finds a leak: LeakedObject = GeneralBlock-512 Size = 512 Bytes Responsible Library = AudioToolbox Responsible Frame = AU3DMixerEmbeddedInputElement::Initialize() Stack trace: 0 libSystem.B.dylib malloc 1 libstdc++.6.dylib operator new(unsi...

IPhone: Should I use 'instruments' to verify memory leaks?

I've just kind of been 'winging' it with long tests (for hours) with no crashes, and eyeballing my code for quite a while and made sure that everything looks pretty kosher as far as memory leaks. But should I be using instruments... is it mandatory to do this before uploading to app store? ...

IPhone: Resources to learn 'instruments' ?

Hi, I'd like to use instruments to verify is my program doesn't have any memory leaks. Can you please provide me with some resources or tips that helped you as you were trying to figure this out? Maybe some video screencasts, or something. This program is pretty complicated and I'm not too familiar with such low level profiling utils ...

Why can't I access the Back button in my iPhone application using a UI Automation script?

I have a simple function that should check if the view is at the home interface, and if not, bring it to the home: function returnHome() { if (UIATarget.localTarget().frontMostApp().navigationBar().name() == mainTitle) return true; // set tab bar to calculations UIALogger.logMessage("Set tab bar to main."); if (UIATarge...

Does the leaks tool in Instruments give false positives?

I have autoreleased objects that I am assigning to synthesized (retain) properties on an object but it is marking them as leaked. Does leaks just sometimes have false positives or am I missing something? ...

Using Instruments, how can I tell what is causing my iPhone app to freeze?

My iPhone app tends to 'freeze up' the UI when comes into the active state from the background. How can I use Instruments to find out the cause of the freeze? What instrument should I use? What are the key columns I need to look at in the Instruments panel? ...

how to solve Instruments detected leaks whose responsible library is Apple's framework?

Hi all, I'm checking memory leaks in my apps using Instruments Leaks tool. After fixing all leaks whose responsible library is my app. I figure out that there still have a lot of leaks whose responsible libraries are iOS's framworks, based on what Instruments said? This is a screenshot of Intruments: I think these leaks may be caus...

instrument can't detect UIButton leak?

Hi, I'm new to the Instrument, i want to test how it detect the memory leak. So i use the following code. It gets fired when user click on a button. -(IBAction)leak{ UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 30, 30)]; NSLog(@"%@", button); button.selected = YES; } but nothing happens in the Instrument. H...

_dyld_start causing leaks in iphone apps

Using the Allocations Instrument on my Iphone Device, I notice in my heapshots that all my heap growth is caused by the _dyld_start caller (of dyld library). Here is an example: Snapshot: UIImageView Heap Growth: 4.83 Kb Still Alive: 103 When I look in the details, all I see is several instances of the following: Object Add: xxxx C...

accessoryButton with Instruments automation

Hi, I'm writing some automation .js file, and I need to tap one of my accessoryButton from one cell. How can I send the tap message to it ? This is a custom cell, but the accessoryButton is added by iOS, not by me, and I don't know wich name it has. Also in the docs I couldn't find anything ... I have the cell referenced correcly as...

App crashes when used with Allocations Instrument

I have seen that my app crashes when used with the Allocation Instrument. When looking at the device logs, I can tell that it is a 'Low memory' crash. My app process in addition to others used by my app were jettisoned. Here is how the device logs look: MyAPP <09da004ccd82e7a2c54e0ea6ab4eab24> 1990 (jettisoned) (active) MobilePhon...

Instruments automation: iterate for all buttons

Hi, I'm in the process of automate one of my apps. First I tap on a tabBar =>ok Tap on a 'Add' button of a navigation bar => ok Fill some data of my textFields of my tableView => ok Tap on some cell and open a new ViewController => ok Tap on a 'Add' button in this new controller => nothing happens ... The button is the same as the...

How to interpret results from Allocations and VM Tracker in Instruments?

I am tracking a very tough memory leak (or more likely abandoned memory) situation. I do the following: 1) start my application 2) get to a point where the application will show the leak 3) start instruments using the 'allocations' choice 4) attach to my process and start recording 5) take an initial heapshot 6) take an initial snapsh...

Time profiler in Instruments

I am having trouble launching Time Profiler in Xcode, both for Mac Applications and iPhone apps. The steps I have tried are opening Time Profiler, Clicking the choose target drop down box, selecting my iPhone or Mac book. Choose target -> myApp. If I choose a Mac app then I hit the record button a big yellow warning pops up accross the ...