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

-[MyDictationController respondsToSelector:] message sent ot deallocated instance

My app crashes with this stack trace: [DictationDetailsController respondsToSelector:]: message sent to deallocated instance I tracked that on instruments trying to see the relevant code causing the crash: here is the relevant code for…
0
votes
1 answer

Instruments' UI Recorder hi-jacks my entire system

What am I doing wrong here? :( I open Instruments.app, create a new UI Recorder template, select my application's .app bundle from the Target -> Choose Target menu, hit Record, open a couple of documents, type some stuff on them, close the…
d11wtq
  • 34,788
  • 19
  • 120
  • 195
0
votes
1 answer

Large memory footprint caused by CoreGraphics in Instruments

I'm doing some performance testing in Instruments on the device for an iPhone application that is in development. I'm seeing that the two largest chunks of memory that are been allocated aren't through any of my custom methods (to my…
Matt B
  • 1
  • 2
0
votes
1 answer

Instruments do not take snapshot on simulator

Using Instruments to analyze memory leaks, but the Instruments do not take snapshot, I have checked the Automatic Anapshotting before record. The Instruments did not take anapshot: The normal state is like this below image(download form google):
aircraft
  • 25,146
  • 28
  • 91
  • 166
0
votes
1 answer

Xcode 8.2 Beta instruments not recording any classes from iOS project

I'm trying to debug a memory leak, but it appears that instruments is broken in Xcode 8.2. I've tried with two different projects. In the first project profiling allocations in instruments works fine and I can see the classes from the project in the…
drekka
  • 20,957
  • 14
  • 79
  • 135
0
votes
0 answers

Instruments exited with code 255 Appium issue

I am trying to install my app in my device with Appium applicaiton.If i manually install my device once then appium is working but if i remove app from device or install it first time it is throwing instrument error. info: [debug] Spawning…
PJR
  • 13,052
  • 13
  • 64
  • 104
0
votes
0 answers

Many leaks showing in Instruments caused by Array and Dictionary

I was testing my app using Instruments checking for any leaks and to my surprise it's showing many leaks caused mainly…
Henny Lee
  • 2,970
  • 3
  • 20
  • 37
0
votes
0 answers

UITableView lags when implementing infinite scrolling

My table scrolls very smoothly normally when the data has been loaded on the screen and I am not loading more, however, I am trying to figure why the table lags when new data is loaded onto the table for approximately 0.5 sec. So I have performed…
user172902
  • 3,541
  • 9
  • 32
  • 75
0
votes
0 answers

Determine how CPU expensive a function uses

The following two functions does the same thing but the first one uses way more CPU time then the other one. I have learned this only from observing the Time Profiler in Instrument. (After digging in the call trees). I was wondering if there is a…
user172902
  • 3,541
  • 9
  • 32
  • 75
0
votes
0 answers

Instrument output explaination

I am testing out my app in terms of speed using the time profiler from Xcode Instrument. Below is the output. As I am new to this, I want to see if I can get a explanation to the output. This snapshot was taken before and after the transition ( I…
user6811824
0
votes
1 answer

Foreground app activity over 100%?

I was just monitoring my iOS game's energy usage and I see that the foreground app activity often goes as high as 126%. I am just wondering if this is something I should be concerned about? The energy usage shows a constant value of 1/20--- yet…
patrick
  • 9,290
  • 13
  • 61
  • 112
0
votes
1 answer

instrument can't detect UIButton leak?

I'm new to the Instrument, i want to test how it detect the memory leak. So i use the following code. It gets fired when user click on a button. -(IBAction)leak{ UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 30, 30)]; …
sbs
  • 4,102
  • 5
  • 40
  • 54
0
votes
1 answer

Getting iDevices using instruments got stuck when running through Python subprocess

I am writing a simple python script using Subprocess to get iDevices list attached to my mac. The command I am using is "instruments -s devices". This command works fine when I run through the command line but I am having issues when I use the same…
slysid
  • 5,236
  • 7
  • 36
  • 59
0
votes
0 answers

Using Instruments to measure CPU usage: why 100%+ usage?

We use Instruments Activity Monitor to measure CPU usage of our app. We see some CPU usage more than 100%. Does that mean Instruments didn't take into account multi-core of CPU? Or may be bugs of Instruments?!
qingjinlyc
  • 175
  • 2
  • 12
0
votes
0 answers

Difference in iOS allocation between XCode and instruments

We have an iOS application that we were optimizing the memory allocations.I checked the allocation from XCode debugger and instrument allocation tool,to my surprise they both showed different readings. Can anybody explain what I am doing wrong. I…
GhostCode
  • 452
  • 6
  • 17