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

What could be causing the memory leak in my iOS project? I failed to locate any dubious custom methods using Instruments

According to this answer, locating the method causing memory leak is pretty simple with the help of Instruments. But in my situation, the "extended detail" column doesn't show any of my custom methods, as shown below: How should I locate the leak…
snakeninny
  • 213
  • 4
  • 8
0
votes
0 answers

Automate UI Testing in iOS using ionic framework not recognizing text in text boxes for login

I've exported and compiled an iOS version of an app from the Ionic framework. I'm using Automate UI Testing in iOS's tool instruments. Everything is working fine except for when I use setValue() to fill the login textfield and password textfield.…
0
votes
1 answer

CPU usage calculation in time profiler instrument

When I use time profiler in instrument, it shows the cpu usage for each core (or logical core) as well as a "cpu usage". I'm wondering how the cpu usage is calculated according to the cpu usage of each core. I tried data from a specific timestamp…
ZigZagZebra
  • 1,349
  • 3
  • 14
  • 25
0
votes
0 answers

Memory rise suddenly when dismissViewController and app shows to black screen in objective c

i am opening camera and taking photo and dismissing some times it shows black screen in app -(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { [picker…
0
votes
1 answer

Understanding Allocations Instrument Retain Counts

I have a view controller that is not being released even though to the best of my knowledge I am setting all delegates to nil, removing all gestures, etc. but even with Instruments I am struggling to understand what is retaining the view controller.…
Jeshua Lacock
  • 5,730
  • 1
  • 28
  • 58
0
votes
0 answers

Any idea on optimizing for loops with multiple iteration in iOS app

I am doing the following calculation with Wf1 of size 1024x3136. Is there any suggestion on how can the following be optimized? var temp2: Float = 0.0 // var AFC1: [Float] = [Float](count: 1024, repeatedValue: Float()) var BFC1:…
Nasiba
  • 321
  • 2
  • 15
0
votes
0 answers

How can a javascript get its own absolute path on my computer?

When using a javascipt to UIAutomation Test in Instruments, is there any chance the javascript can get it's own absolute path on my computer? Like in a shell script, we can use pwd to get its absolute path.
Yating Dan
  • 11
  • 1
  • 5
0
votes
1 answer

When will instruments process stop

Now I'm learning UI testing in Instruments. I want to know in what cases will the instruments process stop. Like when the App that is being tested crashes or something. Does someone konw?
Yating Dan
  • 11
  • 1
  • 5
0
votes
1 answer

Resign distribution IPA with developer IPA

I have a requirement of resigning an IPA from Distribution provisioning profile to developer provisioning profile. I have tried iResign. But I iResign failed to do the Distribution to developer provisioning profile resigning. The purpose of this…
TechBee
  • 1,897
  • 4
  • 22
  • 46
0
votes
0 answers

Xcode compiler error: library not found for -lPods from profiling an application

My swift application runs smoothly without errors until I decide to profile the application to run energy diagnostics then I get this error message placed below. To my understanding and research the error occurs specifically if you used a cocoapod…
Hans Ben
  • 91
  • 10
0
votes
1 answer

Device Simulator/Xcode Instruments Automator crashing when starting from Terminal

Runs fine from the Xcode Automator Instruments app. It will sometimes run once and then fail on every attempt afterwards. I have tried creating a fresh Instruments tracetemplate file with just a single test that clicks one button on the app's…
spconrad
  • 50
  • 1
  • 6
0
votes
2 answers

iPhone UIAutomation:can't find sub-element of tableview

I have a view hierarchy as below: -UIScrollView --UITableView ---UIView all of my code in project is: - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. UIScrollView *scrollView =…
Kaneki
  • 1
  • 3
0
votes
1 answer

Xcode - Time profiler and view user executed stacks?

On older version of time profiler it was possible to view the amount of time lines of code would take to execute, or the user stack info. This info is not available anymore/ Instead this is what appears on the latest version
aryaxt
  • 76,198
  • 92
  • 293
  • 442
0
votes
0 answers

how to fix leaks with instruments in iOS app

I have just started with instruments to find for memory leaks in app Can any one suggest me how to fix the leaks as mentioned in instruments.. Actually I am getting as shown below screen Can any one suggest me the steps to fix.. I have referred…
soumya
  • 3,801
  • 9
  • 35
  • 69
0
votes
1 answer

iOS UI Automation: Monitor log for signals

I am working on setting up an Xcode/Instruments UI Automation project for the purpose of capturing screenshots of my app at various states automatically. One of the major issues with this approach is timing. Because the app communicates with a…
devios1
  • 36,899
  • 45
  • 162
  • 260