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
43
votes
10 answers

Instruments > device grayed out

I'm running an app on my iOS device but, in Instruments, that device is greyed out. This also means I can't attach the process (Cant launch iOS app with Instruments on device). Is it anything to do with my earlier question: Instruments > Profile -…
Snowcrash
  • 80,579
  • 89
  • 266
  • 376
43
votes
4 answers

iOS Instruments - How to load dSYM file for Swift libraries such as libswift.foundation.dylib?

I'm trying to profile a Swift application in Instruments and am having difficulty because debug symbols for libswiftCore.dylib and libswiftFoundation.dylib libraries are not being displayed. The mouseover text suggests using File -> Symbols to…
rankAmateur
  • 2,067
  • 2
  • 18
  • 22
36
votes
6 answers

Why do I get instruments - "Target failed to run"?

Target failed to run: Remote exception encountered: Faild to get task for pid 3103 I'm running iPhone OS 3.1.3 on the device and I can run my App in debug mode on the device. I downloaded and installed the…
dlinsin
  • 19,249
  • 13
  • 42
  • 53
35
votes
2 answers

What do "Dirty" and "Resident" mean in relation to Virtual Memory?

I dropped out of the CS program at my university... So, can someone who has a full understanding of Computer Science please tell me: what is the meaning of Dirty and Resident, as relates to Virtual Memory? And, for bonus points, what the heck is…
m0rtimer
  • 2,023
  • 1
  • 25
  • 31
33
votes
2 answers

How to find out what mach_msg_trap waits for?

I a profiling my iPhone application on target, and according to Instruments 65% of the time is spent in mach_msg_trap. I have a background thread that runs-forever and send results back to the main thread using…
PeyloW
  • 36,742
  • 12
  • 80
  • 99
31
votes
1 answer

XCode Instruments Allocations: Look at Live Bytes or Overall Bytes?

I am getting some memory warning in my iOS app so I am running Instruments to see the allocations. Should I look at the * All Allocations * Live Bytes or Overall Bytes? Someone said the iOS can close my app if I use for 22MB, is that from the…
Nic Hubbard
  • 41,587
  • 63
  • 251
  • 412
30
votes
11 answers

Is there a way to remove the authorization prompt from command-line instances of Instruments (Xcode)?

I am currently using Instruments via a bash script to initiate the command-line interface to start up runs of the Automation plug-in. With 4.2, this worked well enough, however with the upgrade to Xcode 4.3, I am now being prompted for an…
Darc
  • 696
  • 1
  • 6
  • 14
30
votes
4 answers

Bug with starting Instruments via Profile under Xcode 4.1 Build 4B110

Important Update The strange bug is fixed (at least for me) in Xcode 4.2! I've a serious problem with Xcode 4.1 Build 4B110 under Mac OS X Lion and running Instruments via Xcode. The problem is that Instrument freezes partly if I start it via…
andi1984
  • 676
  • 10
  • 27
30
votes
6 answers

ADB equivalent for iOS device

I was looking some instrument like Android ADB in order to debug iOS devices. I've found iOS instrument, a tool of the XCode that is able to debug app on mobile iOS devices. This instrument is helpful if you have to test your application or some…
user3596455
  • 311
  • 1
  • 4
  • 5
29
votes
1 answer

skpaymentqueue canmakepayments memory leak checks

I run Instrument to check Leaks in my app. It got 1 new leaks [SKPaymentQueue canMakePayments] every time start up even no code for payment is called.
user6037132
29
votes
3 answers

How to run iPhone program with Zombies instrument?

I'm running XCode 3.2 on Snow Leopard and I'm trying to run the Zombies instrument against my app but the selection is grayed out and I don't know why. I know about the NSZombieEnabled environment variable. I have that set to YES on my application.…
Justin Kredible
  • 8,354
  • 15
  • 65
  • 91
28
votes
3 answers

MacOSX Instruments to profile Python code

MacOSX Xcode Instruments is really great for profiling native code. However, I have also a huge chunk of Python calls in my callstacks. Can I somehow make Instruments Python-aware? One solution I could think of is when it sees some…
Albert
  • 65,406
  • 61
  • 242
  • 386
28
votes
1 answer

Is there anyway to read performance counters on OS X Mountain Lion?

Shark, Apple's profiler which let you configure custom performance counters, is no longer supported in OSX Mountain Lion since it can't run a 32-bit kernel. Instruments.app, Apple's replacement for Shark, doesn't seem to support reading performance…
user1775117
  • 363
  • 1
  • 4
  • 7
27
votes
3 answers

What triggers "Color Copied Images" and "Color Hits Green and Misses Red" in Instruments?

The Instruments User Guide has this to say: Color Copied Images. Puts a cyan overlay over images that were copied by Core Animation. But that doesn't explain why an image got copied. There doesn't seem to be an obvious pattern from one copied…
Wilbur Vandrsmith
  • 5,040
  • 31
  • 32
27
votes
1 answer

What does in Allocation "heapshots" mean?

I'm having a hard time fixing memory related issues in my iPad application, but, good thing is, that I've learned about "heapshots" because of that. Bad thing is, I'm still unable to figure out what some of the information provided to me means. So,…
sniurkst
  • 7,212
  • 5
  • 30
  • 30