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

Application received Memory warning: Memory level is not normal or this app was killed by jetsam

My Application is received Memory warning and got this Message in Console in device. Memory level is not normal or this app was killed by jetsam. I also try to find solution in instruments via leak and memory allocation but could not find…
0
votes
0 answers

How to find whether the device is iPhone or iPad

I am trying to check whether the connected device is iPhone or iPad. I am able to print the device udid. But is there anyway we can see the device is iPad or iPhone using shell script or any other way.
Arun Kumar
  • 139
  • 1
  • 13
0
votes
0 answers

Why does the simpler oc statement take a longer time?

I am using Xcode Instruments Time Profiler to analyse some Objective-C code, and the statement self.tbNavigationItem.tbNavibarRightItem = nil; took a longer time than self.tbNavigationItem.tbNavibarRightItem = [[TBBarButtonItem alloc]…
Kaiyuan Xu
  • 780
  • 7
  • 13
0
votes
0 answers

Locating NSZombie in code with instruments

I have an error, that appears in 100% of use cases in certain scenario. Current state: Exception breakpoint is enabled. Zombie objects are enabled in run schemes. I use Instruments Zombie tool to trace the error. Here is the problem. Before…
ashvardanian
  • 424
  • 1
  • 6
  • 17
0
votes
1 answer

Using Instruments to improve memory-management with modal view controllers

I feel like I don't understand something fundamental here. I've been working on memory management in my app while using Instruments to check out live allocations. I have a modal view controller (settingsViewController) that has an image for a…
Drewsmits
  • 1,384
  • 2
  • 14
  • 24
0
votes
2 answers

issue to run ios app from appium

I'm trying to run an iOS app with appium i've searched several examples on internet and this is with what i've come out : public class NotAScenario { IOSDriver driver; @BeforeTest public void start() throws InterruptedException,…
user3718160
  • 481
  • 2
  • 11
  • 23
0
votes
1 answer

How to export cpu usage from time profiler instrument

I am profiling cpu usage using time profiler in instrument. Here I can get a graph regarding to cpu usage and recording time. When I choose "export track" it exports all the call tree instead of the graph. I am wondering is there a way I can export…
ZigZagZebra
  • 1,349
  • 3
  • 14
  • 25
0
votes
1 answer

Profiling an executable containing the SDL framework doesn't work in Instruments

I am unable to run OS X Instruments profiling on an SDL application. Seems like including the SDL2 framework during linking breaks the profiling. While normally I would get at least some meaningful stacks and a possibility to give symbols, now I get…
Lof
  • 113
  • 7
0
votes
1 answer

R - Differences in parameter estimates and standard errors - ivreg, tsls and gmm with HAC

I have two closely related questions: 1. It seems like ivreg and tsls/gmm produce different parameter estimates: require(AER) data("CigarettesSW", package = "AER") CigarettesSW$rprice <- with(CigarettesSW, price/cpi) …
berter
  • 23
  • 5
0
votes
1 answer

Xcode instruments record button when pressed starts a run but stops instantly (C Executable)

I am trying to profile a C program I've made of pagerank for an assignment. I have a mac so can't use gprof so have checked out the xcode instruments application. I have loaded the target as the C executable. I compiled my C program with this…
joshuatvernon
  • 1,530
  • 2
  • 23
  • 45
0
votes
1 answer

Memory leak on Allocations

I'm a beginner and still trying to figure out how to read this. There are 3 custom views and at the start I allocate the first one. And then the second / deallocate the first and then the third / deallocate the second. I do empty/nil all arrays…
durazno
  • 559
  • 2
  • 7
  • 25
0
votes
0 answers

Instrument with iOS 9.3.1

I have upload my phone to 9.3.1. And now I have problem, I can't user Instrument tool with my phone. I already update my xcode to 7.3.1 Anyone here face this problem. Can help me?
vien vu
  • 4,277
  • 2
  • 17
  • 30
0
votes
1 answer

iOS UIAutomation Scripting: What's the correct predicate to reference the keyboard?

Using UIATarget.localTarget().frontMostApp().logElementTree; when I know that there is a keyboard present (after tapping a text field) shows that there is a UIAKeyboard element in the hierarchy. However, it does not have a name. I'd like to get a…
Derrick
  • 2,356
  • 5
  • 32
  • 43
0
votes
1 answer

Optimizing an iterative for loop for iOS app

This may sound a little dumb question; but since I am new to programming, I thought some of you might be able to help me in this regard. I have the following snippet of code: for k in 0..<64{ for i in 0..<14{ for j in…
Nasiba
  • 321
  • 2
  • 15
0
votes
1 answer

Run Core Animation Instruments from Terminal

How can I capture the FPS user Xcode Instruments "Core Animation" template? This is what I have tried instruments -t "Core Animation" -w "eb6ddacthisismydeviceidasdfasdfasdfasdb22" MyApp.app When I run this it creates a trace file but it does not…