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

App is taking too much memory until a crash ! (iPhone)

I am quite beginner in development and I'm making an application that have about 150 ViewControllers ! Each one have a UIImageView. I've been doing a bit of testing, and after a use the app for a while on the iPhone itself, it Crashes when I keep…
0
votes
2 answers

Memory issues - Living vs. overall -> app is killed

I'm trying to check my applications memory issues in Instruments. When I load the application I play some sounds and show some animations in UIImageViews. To save some memory I load the sounds only when I need it and when I stop playing it I free…
0
votes
1 answer

Not able to write in txt file using performTaskWithPathArgumentsTimeout with python/shell in Instruments

When i try to execute python/shell script(to write in txt file) using performTaskWithPathArgumentsTimeout it doesnt works. I am using it in UIAutomation through Instruments. The result code and error is also '0'. So cant find out exact problem.…
ExploringApple
  • 1,348
  • 2
  • 17
  • 30
0
votes
1 answer

iOS profiling allocations not showing UIImage object created through code

I am doing little analysis on memory allocations for UIImageView and UIImage. To do that I am loading an image of size 2.1MB in image view, but when I profile the memory allocations through xcode-instruments it shows that live bytes are 741.50KB &…
Chitranshu Asthana
  • 1,089
  • 8
  • 19
0
votes
1 answer

Start and Stop scripts buttons are hidden on instruments

I opened Instruments and select the Automation template for it. After opening an Instrument tool i selected an app from Choose Target. After that i selected my Java Script file from Choose script option but the Start Script and Stop Script option…
Divy
  • 1
  • 1
0
votes
1 answer

Xcode>Instruments>Automation>Mac: is there a way to use regular expression within Automation in Instruments

I am totally new to Instruments>Automation. Trying to test the internal app using Automation in Instruments. Here is my problem: Our app has the UI cells generated on the fly. There is no way to predict how many cells will be created and what name…
0
votes
1 answer

new in using XCode Instruments to interpret memory warning for iPhone development, guidance needed

I am working on an iPhone game which receives memory warning that I am not experienced enough to interpret. I have been watching some iTunesU tutorial but I am still not very good at this.. I have received various memory leaks whilst running my game…
mm24
  • 9,280
  • 12
  • 75
  • 170
0
votes
1 answer

Guides to use Xcode Instruments needed

I am following this guide developer instrument guide and RayWenderlich's tutorial to view and analyze data using Instruments and I am wondering if anyone could suggest any other guide-tutorial as I have still unclear some aspects (e.g. how to…
mm24
  • 9,280
  • 12
  • 75
  • 170
0
votes
1 answer

Ambiguity in XCode's Memory Leak Instrument TimeLine

In the following image (taken from Memory Leaks Instrument in Xcode), you will notice a memory leak (the one with green border) in the timeline, how do i know which leaked object(s) that caused this red vertical line (the leak) ? if it's not…
JAHelia
  • 6,934
  • 17
  • 74
  • 134
0
votes
1 answer

iOS profiler similar to android Traceview

I really like developing for iOS more than Android. However, android SDK has a great tool for profiling, called Traceview: It can not only help to find bottlenecks, but can also show which method was running in specific moment in each thread. This…
Pavel Alexeev
  • 6,026
  • 4
  • 43
  • 51
0
votes
1 answer

Feedback on Apple instruments tool

I was wondering if there are some video tutorials on using the instruments tool and / or good step by step tutorials with good illustrations.
Johnny Mast
  • 703
  • 1
  • 9
  • 17
0
votes
1 answer

Instruments UI Automation tests for iPhone app

I'm a newbie in UI Automation using instruments and I have the following question: - the application starts and I get the mainWindow screen (which contains SignIn and Register buttons) - I've managed to write the JavaScript code in order to tap…
-1
votes
3 answers

Guidelines to create a framework for iPhone UIAutomation tool

Can some body share your thoughts to create a framework using iPhone UiAutomation tool (Instruments)
-1
votes
1 answer

How can I run Instruments from Python?

Anyone know how to run Instruments from Python? I tired to use os.system and it didn't work. If I run Instruments from a command line, I only need to run: instruments -w id -t xxxxxxxxxxxxxx xx.js I will need to run the above in python. I suppose…
-2
votes
2 answers

Instruments not showing Responsible Library

I am running instruments to analyze memory leaks in my application, but it does not show any responsible libraries for any allocations: Neither it shows any methods/variables in stack trace, it just shows this: Is there any setting that I am…
Nikita P
  • 4,226
  • 5
  • 31
  • 55
1 2 3
27
28