Questions tagged [instruments]

Instruments usually refers to the performance analysis developer tool provided by Apple for Mac and iOS development.

While the term may have other applications (such as in musical instruments), it is usually used on this site to refer to the Instruments performance analysis tool provided by Apple alongside their Xcode IDE. It contains a suite of performance tests, as well as some debugging-related functionality, wrapped in a GUI environment geared toward data analysis.

Instruments is a performance-analysis and testing tool for dynamically tracing and profiling OS X and iOS code. It is a flexible and powerful tool that lets you track a process, collect data, and examine the collected data. In this way, Instruments helps you understand the behavior of both user apps and the operating system.

Links

1820 questions
26
votes
8 answers

Xcode cannot run using the selected device after upgrade to Xcode 5.0

I upgraded to xcode 5.0 today. I then pressed play to run my project in the iOS simulator. This initially worked. Then I decided that I wanted to run the profiler. When I did that, I got the message: Xcode cannot run using the selected device.…
JeffB6688
  • 3,782
  • 5
  • 38
  • 58
26
votes
6 answers

What is CG Raster Data?

I'm trying to find another memory leak in my code, and I can't seem to figure out what CG Raster Data is. While going through the VM Tracker with automatic snapshots enabled, the CG Raster Data seems to be the only part that increases. These also…
chicabella
  • 303
  • 1
  • 3
  • 8
25
votes
2 answers

What does the Tiler Utilization statistic mean in the iPhone OpenGL ES instrument?

I have been trying to perform some OpenGL ES performance optimizations in an attempt to boost the number of triangles per second that I'm able to render in my iPhone application, but I've hit a brick wall. I've tried converting my OpenGL ES data…
Brad Larson
  • 170,088
  • 45
  • 397
  • 571
23
votes
4 answers

How can I get rid of resident dirty memory in Objective-C?

I watched Apple's WWDC 2010 video on Advanced Memory Analysis with Instruments and from that, I was able to find a lot of resident dirty memory. I realize that having so much resident dirty memory is a bad thing (and probably the explanation for my…
Josh Brown
  • 52,385
  • 10
  • 54
  • 80
23
votes
3 answers

Instruments in Xcode 4

I was trying to open instruments in xcode 4 but was not able to find a way to do it. Usually in Xcode 3, we would do run -> run with performance tool... but I dont really find any such thing to do it in xcode 4.. would anyone be able to tell me how…
learner2010
  • 4,157
  • 5
  • 43
  • 68
23
votes
3 answers

Where is Instruments iOS AutoLayout Tool in Xcode 10?

At WWDC Apple promised to release a new Instruments tool for debugging AutoLayout on iOS. It should be released "later". I couldn't find it in the Xcode 10.0.0 release version. Did I overlook something, or didn't Apple release it yet?
fabb
  • 11,660
  • 13
  • 67
  • 111
22
votes
2 answers

Where did Instruments go in Xcode 4.3?

I have just updated from 4.2 to Xcode 4.3 and "Instruments" is no longer there. I tried to run it from Launchpad but was informed that this is not possible because Instruments is in the trash bin. Xcode 4.3 uninstalled 4.2 but it seems it did not…
Krumelur
  • 32,180
  • 27
  • 124
  • 263
22
votes
3 answers

How use Instruments and display the console in Command Lines applications

I'm using Xcode on OSX to develop command line C applications. I would also like to use Instruments to profile and find memory leaks. However, I couldn't find a way to display the console when launching the application from within Instruments. I'm…
Hugo Sereno Ferreira
  • 8,600
  • 7
  • 46
  • 92
21
votes
2 answers

XCode 4 Running the Leaks Instrument

This might be a silly question. How do I run an application with an Instrument in XCode 4 such as Leaks? I do not see the option like I have in the past, and I have looked around, and either I missed it somewhere, or it is right in front of my…
jabroni
  • 706
  • 1
  • 7
  • 25
21
votes
4 answers

Reduce Memory Usage in iOS App without leaks

My iOS app has high memory usage but no memory leaks. How do I reduce the memory usage. Using Instruments, I discovered that my app maxes out at 90MB, before a memory warning occurs, and other memory is deallocated, and then it stays around 55-65MB…
21
votes
1 answer

What do "Self" and "# Self" mean in the Time Profiler instrument?

The documentation just says it means "the number of time the symbol calls itself", but what does this mean? And what does "# Self" mean? When I use Instruments, if "# Self" is equal to 100, then "Self" is also 100.0.
CarmeloS
  • 7,868
  • 8
  • 56
  • 103
20
votes
5 answers

Slow performance for presentViewController - depends on complexity of presentING controller?

I am presenting a view controller: SCAAboutController2 *controller = [[SCAAboutController2 alloc] initWithNibName:nil bundle:nil]; UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:controller]; [self…
Ben Packard
  • 26,102
  • 25
  • 102
  • 183
20
votes
6 answers

Running UIAutomation scripts from Xcode

Did anyone succeed in setting up automated UIAutomation tests in Xcode? I'm trying to set up a target in my Xcode project that should run all the UIAutomation scripts I prepared. Currently, the only Build Phase of this target is this Run Script…
DrummerB
  • 39,814
  • 12
  • 105
  • 142
20
votes
5 answers

Leak from NSURL and AVAudioPlayer using ARC

I am runung Instruments on an iPhone 4S. I am using AVAudioPlayer inside this method: -(void)playSound{ NSURL *url = [self.word soundURL]; NSError *error; audioPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:url error:&error]; …
shannoga
  • 19,649
  • 20
  • 104
  • 169
19
votes
4 answers

How do I reliably get Instruments 4.x to symbolicate?

I have a bit of a dilemma — no matter what I do, I cannot get Apple's Instruments.app to symbolicate any of the included instruments while I'm profiling on my devices (it works OK in the iOS Simulator). I've tried just about everything I can think…
Tony Arnold
  • 2,738
  • 1
  • 23
  • 34