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
19
votes
1 answer

Alamofire memory leaks Instruments

I am trying to clean my app from memory leaks and I have a few problems understanding this Why Alamofire function Request.serializeResponseJSON is called 30 seconds after I've launched app: I did not touch anything or navigate anywhere, the screen…
JuicyFruit
  • 2,638
  • 2
  • 18
  • 35
19
votes
5 answers

Xcode's Time Profiler shows addresses instead of symbols

In general, my problem could be seen on this screen-shot: A lot of non-symbolicated addresses and something that looks broken inside "Symbols" menu. Well, and some settings and actions in attempt to solve this. But none still helped: Profile tab…
bronenos
  • 239
  • 3
  • 4
19
votes
1 answer

iOS UIAutomation Simulator 5.0: The target application appears to have died

I'm trying to use the record feature in UIAutomation that only works on Simulator 5.0. When using UIAutomation on Simulator 4.3, it runs perfect. When running my app from Xcode on Simulator 5.0 it runs perfect. This rules out the possibility that…
Or Arbel
  • 2,965
  • 2
  • 30
  • 40
18
votes
4 answers

Memory leak every time UIScrollView is released

In my app I have a scroll view and four table views. Each time one is dragged and then released, I get a 48 byte leak. This really adds up. As you can see, both groups of leaks have the same source. Has anyone seen a leak like this before? Edit…
eric.mitchell
  • 8,817
  • 12
  • 54
  • 92
18
votes
9 answers

XCode iPhone simulator does not look like an iPhone

Silly question, but.. I am not been able to see the device appearance when running the iPhone simulator. I don't remember after which XCode update this started but the iPhone simulator shows only as a simple window without showing the device case…
mm24
  • 9,280
  • 12
  • 75
  • 170
18
votes
4 answers

Trying to read a Xcode Instruments .trace file. What is the file format of a .trace file?

I am writing an automated profiling system, to profile different GPU intensive screens in my App. I have been trying to use 'XCode Instruments' for this, with the 'OpenGL ES Driver' instrument that captures the gpu usage data. My automated system…
georgeparrish
  • 193
  • 1
  • 1
  • 5
17
votes
7 answers

Attempts to tap a UIButton in a UITableViewCell using UI Automation fail with "could not be tapped"

I have an iPhone app that I'm testing using UI Automation. I have a button in a UITableViewCell but when I try to tap on it using UI Automation I get the following error. Script threw an uncaught JavaScript error:…
kodie
  • 429
  • 6
  • 13
17
votes
1 answer

How to find the cause of a 100% CPU usage on an iPhone App

I've diagnosed a strange behavior in an app : after 10 minutes or so, the CPU usage goes to 100%. There's no leak in the app, and it happens while the app is doing nothing. I can profile this with instruments using the "Time Profiler", but is there…
Julien
  • 9,312
  • 10
  • 63
  • 86
17
votes
1 answer

Xcode Instruments, Leaks. Meaning of "thunk for @escaping @callee_guaranted() -> ()"

I often see this line in the Stack Trance when trying to track a memory leak in Xcode Instruments: thunk for @escaping @callee_guaranteed () -> () What does it mean? I can't even translate thunk word, not to mention its technical meaning in this…
kelin
  • 11,323
  • 6
  • 67
  • 104
17
votes
2 answers

Xcode 6 Memory Leaks Instrument doesn't work

I am trying to use Instruments to find leaks within my app. I do it in the same way as I did before updating to Xcode 6.x. Since updating, it won't take any snapshots: the leaks instrument status displays "Analyzing process" and will never…
spanfish
  • 191
  • 2
  • 5
17
votes
2 answers

Mark Generation: What is VM: Dispatch continuations

What does the allocation under "VM: Dispatch continuations" signify? (https://i.stack.imgur.com/4kuqz.png)
Florin
  • 2,891
  • 4
  • 19
  • 26
17
votes
1 answer

Core Data Instruments for the iPhone

I'm trying to monitor my core data usage but all the Core Data instruments are greyed out in Instruments. It's also not available from the "Run with Performance Tool" in Xcode. It says that the Core Data instruments are for the Mac and it's not…
Michael Waterfall
  • 20,497
  • 27
  • 111
  • 168
16
votes
1 answer

Best Resources for UIAutomation Testing for iOS Applications

Testing with UIAutomation on Instruments is great, however, the documentation and resources around it are either non-existent or in hiding. What are the best resources (documentation, blog posts, Stack Overflow questions) that have helped you in…
dtuckernet
  • 7,817
  • 5
  • 39
  • 54
16
votes
2 answers

Cant launch iOS app with Instruments on device

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 :…
Maciej Swic
  • 11,139
  • 8
  • 52
  • 68
16
votes
5 answers

Instruments does not work on XCode 4 with device

Until very recently, instruments worked fine. I don't know what I did to make it mad, but now it won't attach to any device that I try to Profile with; no device at all. I've tried an iPhone, iPad, and 2 iPod touches; no luck! I'm using XCode…
haider
  • 2,418
  • 3
  • 24
  • 26