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

How can I solve these memory leak in xcode?

I checked my application's memory leaking problem and these memory leaks are found. How can I solve these memory leak? I used Leaks tool in Instruments. Here are the screenshots Screenshot 1 Screenshot 2
poq
  • 11
  • 1
  • 8
0
votes
0 answers

NSContiguousString Leak on UITableView Cell

I'm getting NSContiguousString leak on Instruments in a ViewController which has only UITableView and a UINavigationBar. When viewController appears texts on UITableViewCells doesn't shown, only blank cells. If I change it to; cell.textLabel?.text =…
Emre Önder
  • 2,408
  • 2
  • 23
  • 73
0
votes
1 answer

How to unload images in Cocos2d

I am working with cocos2d. At the first Default.png load as first splash, then splash1.png load as second splash. I see in Instruments, that memory don't free when I replace scene. How can I unload images from memory? Thanks! #import…
Sveta
  • 1,270
  • 3
  • 16
  • 33
0
votes
1 answer

Leak when calling SSL_connect

I am using OpenSSL and according to Instruments, I have a memory leak started at SSL_connect. SSL_CTX *ctx = SSL_CTX_new(SSLv23_method()); if (!ctx) { NSLog(@"Could not initialize ctx"); [self release]; return…
David Beck
  • 10,099
  • 5
  • 51
  • 88
0
votes
1 answer

Running Instruments to check for leaks on iPhone without developer license

I'm trying to run Instruments on an iPhone app that I've compiled as debug, self signed (no developer license), and copied to the phone. If I select run with with Instruments from Xcode, first the Organizer will complain that the app is already…
Adam Jones
  • 775
  • 6
  • 23
0
votes
1 answer

Why the instrunmens show unavailable when I view the source?

I use the instruments to test if my app has some leaks.But when it shows a leak ,I enter the calltree. It shows unavailable.
Ran
  • 303
  • 1
  • 3
  • 15
0
votes
0 answers

Instrument automation with BDD/TDD on Python

I was wondering if it would be possible to use instrument automation tests in behave driven (or test driven) development codes? I mean the code tested would communicate with instruments that uses PyVISA and TCP/IP communication to send commands and…
0
votes
3 answers

Using XCode and instruments to improve iPhone app performance

I've been experimenting with Instruments off and on for a while and and I still can't do the following (with any sensible results): determine or estimate the average runtime of a function that's called many times. For example if I'm driving my…
MrDatabase
  • 43,245
  • 41
  • 111
  • 153
0
votes
2 answers

Where is the leak?

I don't get it! Instruments is showing me a leak in this method -(void)loadData { if (locationData != nil) { [locationData release]; } self.locationData = [[NSMutableArray alloc] init]; NSData *recievedData = [NSData…
Sedat Kilinc
  • 2,843
  • 1
  • 22
  • 20
0
votes
1 answer

Instruments does not show any leaks but allocations keep increasing

Here is a piece of code to highlight a portion of screen, I would like to know if there is any leaks in this code: - (UIImage*)createImageSection:(UIImage*)image section:(CGRect)section { UIScreen *screen = [UIScreen mainScreen]; float originalWidth…
DKV
  • 25
  • 7
0
votes
1 answer

Can't detect C leaks in xcode 9 instruments

I'm trying to use instruments for the first time. So, I wrote a small C program to detect memory leaks in instruments. Code: #include #include #include int main() { int *temp = NULL; temp =…
unknownymouse
  • 399
  • 1
  • 5
  • 21
0
votes
0 answers

Is there any way to optimize the layout events?

I used Time Profile to check what caused my app to become very stutter and stutter when quick change the pageiwController's page, and it detects that layout events take many CPU and Thread usage (pls see below 'pic'), it costs Max 182% CPU and Max…
stephen
  • 519
  • 6
  • 22
0
votes
1 answer

UIImage ImageNamed method

In my app, I am loading several images onto a UIScrollView and I highlight a portion of the scroll view using Core Graphics routine. I have used the CGImageRelease and CGContextRelease to manage the memory during the routines. When I run the app…
DKV
  • 303
  • 1
  • 3
  • 4
0
votes
0 answers

Xcode Instruments: Color Blended Layers (pink vs red)

I've just made some view background not transparent. But the blended layer remained while testing in Instruments. Only the color of blended layer changed from red to pink. I haven't found what does pink color mean. Any thoughts? From…
iWheelBuy
  • 5,470
  • 2
  • 37
  • 71
0
votes
1 answer

How do I find out which class is taking the most memory?

I made a seemingly innocuous change to my iOS app, and the app is crashing because memory consumption constantly keeps increasing as the app runs, until it crashes. This is perhaps a 10x increase in memory consumption. How do I find out which class…
Kartick Vaddadi
  • 4,818
  • 6
  • 39
  • 55