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

Xcode - Time profiler and view user executed stacks?

On older version of time profiler it was possible to view the amount of time lines of code would take to execute, or the user stack info. This info is not available anymore/ Instead this is what appears on the latest version
aryaxt
  • 76,198
  • 92
  • 293
  • 442
0
votes
2 answers

Application crashes on iPhone OS 2.2, works fine on 2.1

This is the trace of my app,when I updated my device to 2.2. any idea to get rid of this leak? because I think that's the culprit who keep crashing my application. This is trace when I run my application in os2.2,see the image which show the part…
Amit Vaghela
  • 2,970
  • 7
  • 33
  • 43
0
votes
1 answer

Xcode 7: Unable to open instruments from Developer tools

Iam getting this error when i try to open istruments in Xcode 7 and Xcode 7.1. "Existing default base temp directory '/Library/Caches/com.apple.dt.instruments' has insufficient privileges for user id 505. Please have the owner delete this…
Logic
  • 705
  • 1
  • 9
  • 27
0
votes
1 answer

UIAutomation Testing module in Instruments Xcode

What type of tests can be done using UIAutomation module in Instruments in Xcode? The tests are written in javascripts. One of the test can be done is to check if textfield has particular string or empty. This type of tests can be done through…
0
votes
1 answer

IOS-UIAutomation: An script running issue.(Turning off screen / Sleep system on MAC)

I'd like to run some scripts by instruments uiautomation to test my iOS APP during the night. But it seems like the progress will be stop when I turn off Mac screen or let system sleep. I am sure that it works fine on my friend's Mac... Any ideas?…
Nickee
  • 3
  • 1
0
votes
0 answers

ViewController transition bottleneck in UITabBarController

When I tap on a specific UITabBarItem to switch ViewControllers, the transition takes about 4 - 5s. There is no heavy processing being done, so this leads me to believe that the code is simply inefficient. After having taken a look inside…
Eric Johnson
  • 1,087
  • 1
  • 11
  • 16
0
votes
0 answers

memory detector of xcode seems weird

I'm using AFNetworking for downloading video file from server. Since my app target on iOS7+, i use method downloadTaskWithRequest:progress:destination:completionHandler: When i download a large file(400M), the memory detector of xcode seems weird,…
nova
  • 781
  • 11
  • 17
0
votes
1 answer

Inconsistant NSZombie allocation log

I'm working on old code now imported into Xcode 7. My problem is I have a random crash when changing a master/detail view controller that is pretty basic. The crash happens in main() so, not really helpful, but it's a message sent to an released…
Yann Bizeul
  • 403
  • 3
  • 10
0
votes
0 answers

How may I change the SDK associated with the OS X 'Instruments' app?

How may I (if it's even possible) change the SDK Xcode's associated Instruments app uses? Background I am building a VST synth with Juce and want to profile it in OS X Instruments. However, I recently found out that Instruments uses the latest OS X…
Dave Chambers
  • 2,483
  • 2
  • 32
  • 55
0
votes
1 answer

Is an iOS app CPU hovering around 100% normal?

No matter how long I leave the app without touching my cpu doesn't drop below 90% or so. I'm using Parse and I've narrowed it down to Bolts using up the cpu. Is this normal? Is there any way to reduce the usage? I don't believe I have any endless…
Jeremiah
  • 1,471
  • 1
  • 13
  • 22
0
votes
1 answer

Do I have to "release" my UI objects that I declared as IBOutlets with property attributes "retain" and "nonatomic"?

Do I have to "release" my UI objects that I declared as IBOutlets with property attributes "retain" and "nonatomic"? I ask because I have a UI var declared as so... @interface MyViewController : UIViewController { IBOutlet UILabel…
BeachRunnerFred
  • 18,070
  • 35
  • 139
  • 238
0
votes
1 answer

iPhone memory leak (a lot of allocations)

I tested my app in Instruments. No leaks found, but app crashes (not immediately - after ~20 minutes [depends on user's activity] of working). I viewed Allocations. It reports: Category | Live Bytes | Count Live | # Living | # Transitory | Overall…
kpower
  • 3,871
  • 4
  • 42
  • 62
0
votes
3 answers

Can't release array objects, but they are causing leaks

I have 2 arrays, 1 in the viewDidLoad method and 1 in the add method(adds an object to favorites) NSUserDefaults *myDefault = [NSUserDefaults standardUserDefaults]; NSArray *prefs = [myDefault arrayForKey:@"addedPrefs"]; userAdded =…
some_id
  • 29,466
  • 62
  • 182
  • 304
0
votes
1 answer

Correct values for Heap Growth and Still Alive on Instruments Allocation

I'm trying to find all memory abandoned using instruments. The leaks test has been passed and at least it can't find any memory leak. I'm doing some repeated actions between each Marked Heap, and the average is 100,00 kb for heap growth and 1000…
mongeta
  • 2,301
  • 2
  • 32
  • 42
0
votes
1 answer

Do I need the source code of the app to get performance metrics using Instruments?

I am interested in evaluating performance to an external iOS app. Can I use instruments only with binaries? Is also around non-apple tools to do this? thanks,
Colorator
  • 159
  • 6
1 2 3
99
100