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
3 answers

CoreData leaks when view is destroyed

I'm trying to finish an app but I'm having some memory leaks with CoreData when I delete the view from the navigation stack even though I released everything I created. Basically the following method is called by the view below it. + (NSMutableArray…
Olsi
  • 929
  • 2
  • 12
  • 26
0
votes
1 answer

It doesn't seem to main in Time Profiler - Xcode 9.1

It doesn't seem to main in Time Profiler - Xcode 9.1 Profile should look like this: But it seems that way: I have 2 iPads. I can see "main" one but I don't see in the other ipad. I don't understand what the difference. Are need to make an…
Yunus T.
  • 569
  • 7
  • 13
0
votes
1 answer

SKView continues to use resources after segueing to another UIViewController - Swift

I'm building a simple game that has only 3 UIViewControllers, a home screen, the GameViewController, and a pause modal. When I launch the app from Xcode on my iPhone 6s, the CPU usage starts at 0%. When I segue to the GameViewController, the CPU…
SuperCodeBrah
  • 2,874
  • 2
  • 19
  • 33
0
votes
1 answer

Instruments-Xcode-Leaks=> [UIImage imageWithData:]

New to using Instruments, but figured it would be good to help the performace of my application I am developing. I am getting Error leaks on the following command, and was wondering if it might be something I am doing wrong, or can I actually…
chance
  • 18
  • 1
0
votes
0 answers

Xcode Instruments - Activity Monitor - cannot export data to CSV

I am using the Activity Monitor instrument with Xcode to monitor CPU usage on an app. Is there any way I can export the data to a CSV file? The Export Data option is greyed out. Is there any way around this? If anyone can help I would appreciate…
Brendan
  • 25
  • 1
  • 7
0
votes
1 answer

XCode Instruments - Can't modify launch configuration for a profiling a process

I'm trying to profile a provider on my iPhone, however instruments won't allow me to modify the launch configuration in instruments. The icon is simply not there anymore. How It Should Look How Mine Looks I don't understand why the buttons are…
Nathan F.
  • 3,250
  • 3
  • 35
  • 69
0
votes
0 answers

application writing to the disk continuously

I don't get this thing... xcode shows, that my application continuously writing to the disk at least 80 kb/s. I totally commented out all methods, so there is just one thing, a navigation controller in the app. And it still shows this. I tried to…
Magyar Miklós
  • 4,182
  • 2
  • 24
  • 42
0
votes
1 answer

Mac Instruments Time profiling shows wrong heaviest back trace?

I am using the Instruments to profile a very simple program. Here is the result: result My question is: why the heaviest back trace are annotated on a very simple line of code? I think that line only needs some ALU instructions to implement. Is…
0
votes
0 answers

Memory leak for NSOperationQueue observer?

My app is randomly crashing as I have used KVO for NSOperationQueue. I did run instrument and found below ARC retain count situation. and this is my code. @try { [[ApplicationManager sharedInstance].operationsQueue removeObserver:self…
0
votes
1 answer

Iphone memory leak issue?

The memory is leaking in this code fragment, how to fix this memory leak ? -(NSDictionary *)sanitizedFinancialLine:(NSDictionary *)theFinancialLine { NSMutableDictionary *aFinancialLine = [NSMutableDictionary…
pradeep
  • 3,005
  • 12
  • 42
  • 65
0
votes
0 answers

Xcode's Instruments crashes when recording starts with Xcode 8.2.1

Whenever I hit 'record' on the instruments tool, it crashes with the error: "NSInternalInconsistencyException reason: Fatal, partial event too large (4198344)" This only happens when testing with my phone (iPhone 5s, iOS 10.3.2(14F89)), running…
C King
  • 1
  • 2
0
votes
1 answer

Images appear loaded twice in instruments (iPhone + openframeworks)

I am programming for the iPhone using openFrameworks. I ran the project in the device with Instruments/System Usage and I saw that ALL the images appear to be loaded twice, even if I use them only once. (see screen capture of Instruments here…
Marc
  • 1,029
  • 1
  • 10
  • 27
0
votes
0 answers

how to add java instrument dependency in a quickly and batch way?

I use java instrument(premain) to change bytecode,i used losts of jars,like asm,spring,guava.When i package this agent to a jar and run this jar on a springboot's,it always tell me java.lang.NoClassDefFoundError.I know i can add Boot-Class-Path to…
Crytis
  • 300
  • 3
  • 10
0
votes
1 answer

UIImage allocates more memory

In my viewcontroller i created a UIImageView and assigned a image in the Interface Builder. While checking on instruments i have allocation of malloc of 600kb and the responsible library is ImageIO_Malloc. But the size of my image is 37kb. I dont…
ipraba
  • 16,485
  • 4
  • 59
  • 58
0
votes
1 answer

Is there an Instruments Instrument that records all calls in my app

Is there an Instrument in Xcode Instruments that records ALL the calls made by my code (with or without Apple's own frameworks). The closest instrument that seems to do that is Time Profiler. However, Time Profiler does NOT record ALL calls made…
Logicsaurus Rex
  • 3,172
  • 2
  • 18
  • 27