Questions tagged [xcode-instruments]

Instruments is a performance, analysis, and testing tool for dynamically tracing and profiling macOS, iOS, watchOS, and tvOS code.

Instruments is a performance, analysis, and testing tool for dynamically tracing and profiling macOS, iOS, tvOS, and watchOS code. It is a flexible and powerful tool that lets user track one or more processes and examine the collected data. In this way, Instruments helps user understand the behavior of both user apps and the operating system.

With Instruments, user use special tools to trace different aspects of a process’s behavior. Users can also use the tool to record a sequence of user interface actions and replay them, using one or more instruments to gather data.

Instruments includes the ability to:

  • Examine the behavior of one or more processes
  • Record a sequence of user actions and replay them, reliably reproducing those events and collecting data over multiple runs
  • Create own custom DTrace instruments to analyze aspects of system and app behavior
  • Save user interface recordings and instrument configurations as templates, accessible from Xcode

Using Instruments, user can:

  • Track down difficult-to-reproduce problems in code
  • Do performance analysis on app
  • Automate testing of app
  • Stress-test parts of app
  • Perform general system-level troubleshooting
  • Gain a deeper understanding of how app works

Instruments is available with Xcode 3.0 and later and with macOS 10.5 and later.

Source: About Instruments

406 questions
0
votes
1 answer

Xcode Instruments : Unable to identify the memory leak issue

I'm facing some serious memory-related problems in maintenance project and unable to identify the cause for the issue I'm facing. Please find the attached below image for reference. Help would be much appreciated.
0
votes
1 answer

Device showing as disabled while trying to instrument the app + Xamarin.iOS

I am trying to instrument an app by connecting the device to Visual Studio Community for Mac (version 7.3.3). I am able to install and run the app in device, but when instrumenting its showing as disabled.
0
votes
1 answer

Standard Performance Matrix for iOS App

Is their any app vitals information or any standard values for iOS app to compare with, which is accepted and followed by developers. Currently i am using Xcode instrument to detect memory leakage, app thread uses, core animation , rendering UI…
Abdul Karim
  • 4,359
  • 1
  • 40
  • 55
0
votes
0 answers

what is the reason behind iOS app getting more memory Impact

I have an application in which my app's Memory impact crossed 438.7 Mb, i checked with instruments but there was no memory leaks ,i am surprised ,Is there any way to find out the reason behind it ?
Shakti
  • 986
  • 12
  • 22
0
votes
0 answers

Memory leak in iOS app

I am trying to trace the memory leaks in my app. I have used the Leak template on Instrument. While doing Call Tree, I have selected "Hide System Libraries", I only see: int main(int argc, char * argv[]) { @autoreleasepool { return…
RoshUn
  • 75
  • 1
  • 9
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

Unable to symbolicate memory address of the trace file

I have created trace file using memory leaks profile, trace got generated and I am able to view some leaks getting displayed in the trace file (Instruments Version 7.3.1) (iPhone iOS 8.3) I have symbolized the trace file using proper DYSM and binary…
GreyndBlue
  • 331
  • 1
  • 2
  • 11
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
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
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
0 answers

Xcode8 Time Profile shows addresses, not code

environment: Xcode 8.1 I use the time profiler to test my program。I set my program Build Option Debug is DWARF with dSYM File But the Time Profiler only display Address not function. Hope you can help me .Thank you very much
Yan.Zhao
  • 73
  • 7
0
votes
1 answer

iOS Instrumentation: how to interpret Memory Allocations Template?

I am using Allocations Profiling template for an iOS Instrumentation. I created an extension to UIView class, that takes a snapshot for a view that is not added to the view hierarchy. I want to double check how much memory does my new method…
Wael Showair
  • 3,092
  • 2
  • 22
  • 29
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
0 answers

What could possibly cause a memory leak in this code?

I've been trying to find out what causes memory leaks, but in Instruments, I am being told that the memory leak happens at seriesDownloadingQueue.addOperation(downloadOperation) and in the class that calls the method…
sloeberGJ
  • 355
  • 3
  • 13
0
votes
1 answer

Memory leak through instruments swift

I got the memory leak in instrument with Xcode 7.3 and using swift, please someone explain the actual reason for memory leak. Screenshot of instrument is attached below. It have some problem with NSURLSession in swift.