Questions tagged [xcode-instruments]

Instruments is a performance, analysis, and testing tool for dynamically tracing and profiling macOS, iOS, watchOS, and tvOS code.

Instruments is a performance, analysis, and testing tool for dynamically tracing and profiling macOS, iOS, tvOS, and watchOS code. It is a flexible and powerful tool that lets user track one or more processes and examine the collected data. In this way, Instruments helps user understand the behavior of both user apps and the operating system.

With Instruments, user use special tools to trace different aspects of a process’s behavior. Users can also use the tool to record a sequence of user interface actions and replay them, using one or more instruments to gather data.

Instruments includes the ability to:

  • Examine the behavior of one or more processes
  • Record a sequence of user actions and replay them, reliably reproducing those events and collecting data over multiple runs
  • Create own custom DTrace instruments to analyze aspects of system and app behavior
  • Save user interface recordings and instrument configurations as templates, accessible from Xcode

Using Instruments, user can:

  • Track down difficult-to-reproduce problems in code
  • Do performance analysis on app
  • Automate testing of app
  • Stress-test parts of app
  • Perform general system-level troubleshooting
  • Gain a deeper understanding of how app works

Instruments is available with Xcode 3.0 and later and with macOS 10.5 and later.

Source: About Instruments

406 questions
0
votes
1 answer

iOS Instruments - UIADatePicker Error - Element is not visible

I'm trying to select a value from a UIPickerWheel on my app. The picker wheel pops up when I click on a date field and the values are Month (January, February,...), Date (1,2,...) and Year (2013, 2012...) I get the correct value when I do the…
0
votes
1 answer

How can I solve this memory leak in iOS App?

After analyzing my application with Instruments, the tool tells me I have memory leaks but I do not see why that message if I think I am releasing memory correctly. Any idea? Thanks in advance.
Diego Palomar
  • 6,958
  • 2
  • 31
  • 42
0
votes
2 answers

Instruments shows leak when dequeuing Custom table view cells in cellForRowAtIndexPath

I am getting a memory leak in Instruments related to the table view delegate method cellForRowAtIndexPath when using custom table view cells. I am using XCode 5 but ARC is disabled. I have created my custom table view cell as a separate xib and I…
cspam
  • 2,911
  • 2
  • 23
  • 41
0
votes
1 answer

How to use Instruments to determine part of the code that crashes

I am trying to debug a crash on my app all i get is *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from…
Jonathan Thurft
  • 4,087
  • 7
  • 47
  • 78
0
votes
2 answers

Xcode Instruments Time Profiler Understanding which methods are taking the most time

My UI is acting choppy and I am trying to understand what the source for this is. There are a lot of options using Xcode Instruments and I am not sure which set of them are the best for me. From playing around with some of them it seems that most…
Avba
  • 14,822
  • 20
  • 92
  • 192
0
votes
1 answer

How to access model objects in iOS automation scripts?

Accessing UI components through Instruments for testing automation can be done by turning on accessibility and giving them a label but what about getting our hands on the properties or variables that represent the data model ... how can that be…
pulkitsinghal
  • 3,855
  • 13
  • 45
  • 84
0
votes
1 answer

Instruments Time Profiler

i'm trying to run Time Profiler in Instruments and when it fires off I do not see anything in the Call Tree. Anyone see this before?
Ken Adams
  • 33
  • 1
  • 4
0
votes
1 answer

Everytime a WEPopover is presented in iOS app the memory allocations grow

I am having some issues with my app, I am currently using the WEPopover library (ARCified) to create some custom popovers. However, everytime i present a popover and it's corresponding view (consisting of a view and a tableview populated with an…
David Karlsson
  • 9,396
  • 9
  • 58
  • 103
0
votes
1 answer

How to tap on Image view from a cell which is in a table view

I have a image view(tapping on which i get a popover) inside a cell associated in table views. Log element tree captures the static text 'Picture' but it doesn't show associated image view with it. My flow is like tables -> cells( have around 4…
0
votes
1 answer

Core Animation in Instruments file can't open and No Data

I hope someone enlightens me with this: After saving a trace file (example: filename.trace) and send it via email, how come the recipient couldn't open the file? So, I decided to compress the trace file (example: filename.trace.zip) and send it…
JCurativo
  • 713
  • 6
  • 17
0
votes
2 answers

How to solve Memory leak in SKDatabase function?

Instrument is showing memory leak in following code. I have made sure everywhere retain count is maintained. I have also added autorelease pool, still memory leak is there. How to solve this? Code Block: - (NSArray *)lookupAllForSQL:(NSString…
Baby Groot
  • 4,637
  • 39
  • 52
  • 71
0
votes
1 answer

Need Help Resolving a Memory Leak Once it is Located Using Instruments

I have an application in Xcode 4.6 that connects with Facebook. I have noticed that every so often when the application goes into the background and returns to the foreground, there are occasional crashes at varying points in the application. Being…
jac300
  • 5,182
  • 14
  • 54
  • 89
0
votes
3 answers

Finding the cause of memory leak in Instruments

I have run the leaks in Instruments and it is showing me a memory leak with a 100% value. I am able to see the line of code that is causing the problem. But not really sure what the error is.. - (void) listAllBooks { if (marrListFromDB != nil)…
lakshmen
  • 28,346
  • 66
  • 178
  • 276
0
votes
1 answer

Dirty Size on iPhone app

How to minimize Dirty Size on iPhone app? I released my cache image but don't minimize Dirty Size. Someone have more tips? Thanks!
Edi
  • 1,728
  • 2
  • 13
  • 13
0
votes
2 answers

Instruments, Increase in Allocations of iPhone application

I am using UIPageViewController to load multiple view controllers. When I run my application in Instruments tool. I found that the allocations are moving to high margin. Though I am releasing and making the class object to nil. The allocations keep…
Cyril
  • 1,216
  • 3
  • 19
  • 40