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
16
votes
4 answers

Xcode Instruments "Networking recording service not found"

I want to use Xcode instruments to analyze network traffic of my iOS app. Unfortunately instruments seems to be broken. I already reinstalled Xcode (incl. Instruments). Any suggestions on how to fix this? Used Versions: Xcode 9.4.1…
EisenRatte
  • 542
  • 5
  • 12
16
votes
1 answer

What do the colors and percentages mean in the Leaks Instrument?

I am debugging (looking for memory leaks) using Xcode for my small application. I use Leaks from Instruments. If there is a leak, I can click on a method name and I see source with marked place where the leak is. It is ok. However I have two…
MDW
  • 163
  • 1
  • 7
15
votes
3 answers

Instruments show leak in main.m (Xcode 4.3.1)

I am developing an app using ARC When profiling my app in instruments for memory leaks it shows leaks at the following function: #import #import "AppDelegate.h" int main(int argc, char *argv[]) { @autoreleasepool { …
Tassos Voulgaris
  • 878
  • 1
  • 9
  • 21
15
votes
3 answers

Recursive Blocks in Objective-C leaking in ARC

So I'm using recursive blocks. I understand that for a block to be recursive it needs to be preceded by the __block keyword, and it must be copied so it can be put on the heap. However, when I do this, it is showing up as a leak in Instruments.…
15
votes
4 answers

How to show the number of times functions are called in Instruments Time Profiler

I've tried every possible fields but can not find the number of times functions are called. Besides, I don't get Self and # Self. What do these two numbers mean?
an0
  • 17,191
  • 12
  • 86
  • 136
15
votes
1 answer

iPhone 4 profile power consumption (with instruments)

I have an app that I added a lot of animation to. The app also used "iPhone sleep preventer" to play silent audio. Since then, I noticed that the battery consumption increased by up to 4 times! I'd like to find a method to profile the power…
Alex Stone
  • 46,408
  • 55
  • 231
  • 407
15
votes
0 answers

SwiftUI NavigationLink never releases memory

Take the most basic example app with two screens in a NavigationView: import SwiftUI struct ContentView: View { var body: some View { NavigationView { List { NavigationLink(destination: SubView()) { Text("Go to screen…
Kevin Renskers
  • 5,156
  • 4
  • 47
  • 95
15
votes
1 answer

Xcode does not generate dSYM file

In my iOS Project, I have set the Generate Debug Symbols to be Yes, but the .dYSM file is not created in DerivedData folder. I am running this application on my iPhone. Because I need it to map it to do the time profiler, because time profiler shows…
Shanmugaraja G
  • 2,778
  • 4
  • 31
  • 47
15
votes
3 answers

What do the columns in the Object Alloc instrument mean?

I was unable to find the documentation for this. There is no Quick Info. The columns have these opaque titles: Category Live Bytes # Living # Transitory Overall Bytes # Overall # Allocations (Net / Overall) Is there a document that shows…
dontWatchMyProfile
  • 45,440
  • 50
  • 177
  • 260
15
votes
2 answers

Memory leak in iOS, AVPlayer is never deallocated

I used the AVPlayerDemo sample from the Apple docs and wrote my own UI on top of it to play videos selected from a UITableViewController. Now, the problem is that there's a memory leak here somewhere which I can't find out. The problem is that the…
Faraz Hassan
  • 663
  • 1
  • 6
  • 24
15
votes
3 answers

Allocations tracking library was not loaded in time and unable to see stack trace

For opening Instruments we must profile first then select which template we have to profile memory leaks,allocations,zombies. But still I get the error allocations library was not loaded, and could not see the stack trace also. And could not find…
user1740045
  • 191
  • 2
  • 10
15
votes
3 answers

Symbol not found: _CFXMLNodeGetInfoPtr when start Instruments

I am developing a iPhone app and everything works fine so far. I can build and start the app in the simulator. But when I now start the app with Instruments I got the error: Dyld Error Message: Symbol not found: _CFXMLNodeGetInfoPtr Referenced from:…
user156593
15
votes
1 answer

how to get DTPerformanceSession working when 'libproc.h file not found'

After adding the line #import I get 'libproc.h file not found'. This file is not on my mac. I have tried googling it and it appears is should be included with Xcode. I have tried upgrading xcode from 4.3 to…
Mark Cooper
  • 203
  • 1
  • 8
15
votes
1 answer

How do you find out what is retaining an object in Instruments?

I've recently converted my iOS project over to ARC. One of the view controllers is not calling its dealloc method and is not being dealloc'ed according to Instruments. I've double checked all of my properties and set the appropriate ones to weak.…
James
  • 6,471
  • 11
  • 59
  • 86
14
votes
2 answers

What is an "misaligned image" in terms of Core Animation in iPhone OS?

Instruments tells that there are "misaligned images" which are animated by core animation. What does that mean? UPDATE: I've seen that in Instruments.app > Core Animation.
Thanks
  • 40,109
  • 71
  • 208
  • 322