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

How to click a menu item inside another menu item's menu, in applescript

To be more precise, how can you select a device from the 'Active devices' (from the devices pop up button) in Xcode's instruments. screenshot Script: tell application "Instruments" click menu item "" of menu 1 of menu item "Active…
Eedison
  • 1
  • 1
0
votes
0 answers

using OpenGL ES Analysis to increase performance of a game made with SceneKit

I created a game that uses SceneKits Pyhsics engine. Total number of vertices 4300. The game runs fine on iPhone5s, but gets slow on older devices such as ipad3. I ran the diagnostics with OpenGL ES Analysis. These are the screenshots of 15 seconds…
potato
  • 4,479
  • 7
  • 42
  • 99
0
votes
0 answers

Large memory usage by xcode instruments when automating taking screenshots

We use instruments automation tool to test our ios app. (We use xcode 6.4.) The tests include taking many screenshots which are checked then by imagemagick. The problem I see is that memory usage of instruments application itself grows with time. It…
jesse
  • 650
  • 5
  • 19
0
votes
1 answer

Can't we use Instruments with a real-device attached, instead of using iOS simulator ??

Am currently using Xcode6.4 , and I am actually trying out the Instruments (time profiler) for the first time... The Instrument is working fine if I choose simulator and somethig wierd is happenning when I connect to a…
Legolas
  • 805
  • 1
  • 11
  • 24
0
votes
1 answer

Where is xcode instruments "Track Allocations"

In previous versions of instruments, there was a little 'i' button in the allocations tool which allowed you to do things like enable 'track allocations', which allowed you to get object counts of referrers who had currently or historically either…
zenchemical
  • 115
  • 1
  • 7
0
votes
1 answer

How to fix iOS memory leak from _NSCFNumber?

This is my code where I reloads particular sections of _collectionView. When I check memory leaks using Leaks template in Xcode 6.3 Instruments, it shows leak on line [_collectionView reloadSections:indexToLoad]; and _NSCFNumber as a leaked…
0
votes
1 answer

Read a Xcode Instruments .trace file generated from Automation.tracetemplate

I need to read/parse instruments trace file generated using Automation.tracetemplate. Is there any command line utility or anything that can read the file without opening instruments. I am running an automation script on an iOS application using…
Assassin
  • 215
  • 1
  • 4
  • 13
0
votes
1 answer

How to programatically get the UI Hierarchy in my automation script?

I tried to store the result of target.logElementTree during automation in a variable. Have tried : var op = target.logElementTree(); UIALogger.logMessage(op); The Log result would be "null value" so I am trying to figure out on how to access that…
0
votes
1 answer

From where does target.logElementTree() retrieve information?

I am actually trying to list all the available controls in a particular screen in an app so I want to know from where exactly does target.logElementTree() retrieve the information ?? or how to retrieve the all the controls available on a particular…
0
votes
1 answer

Read a file codeigniter

I need to read this file: AVRAMOV P ATALANTA 1 1 0 FREZZOLINI P ATALANTA 1 1 0 SPORTIELLO P ATALANTA 1 16 15 BIAVA D ATALANTA 8 9 1 EMANUELSON D ATALANTA 7 5 -2 STENDARDO D ATALANTA 7 9 …
0
votes
1 answer

iOS instruments, cannot not launch any app on iPad. Instruments fails silently

I am trying to launch an application on iPad (iPad 4) connected to my Mac via instruments. The same command works fine on another iPad (iPad Air) when run from same Mac. Below is the command I am using to launch the application: instruments -w…
0
votes
0 answers

How to improve my app using TimeProfiler?

I am using TimeProfiler for the first time. And I have read RayWanderlich's blog to get understanding of TimeProfiler. How I can improve the performance in my app. I am showing the screenshots from the TimeProfiler that might help in analysing the…
Jassi
  • 537
  • 8
  • 21
0
votes
0 answers

How to change APP settings in UIAutomation script before tests run?

In my app I determine which database schema and server address i wanna use in app (configurations are inside system settings of the device). On app startup i load some data from DB. App makes queries to/from DB so I don't want to mistakenly run…
0
votes
1 answer

ios How to debug without seeing CoreFoundation code

I want to be able to step through my program but after stepping through a completely function I'm sent through all these files that say CoreFoundation at the top and there's a number of hex address with things I don't understand. Is there any way to…
Jacksonkr
  • 31,583
  • 39
  • 180
  • 284
0
votes
0 answers

EXC_BAD_ACCESS and terminated due to memory pressure

My app crashes with a EXC_BAD_ACCESS message. I enabled NSZombie objects, however that caused a 'terminated due to memory pressure' error - even in debug mode. I also saw the video http://www.markj.net/iphone-memory-debug-nszombie/, but I'm using…