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
1 answer

How to make nested while loops faster

I am running a while loop that is scanning the serial port for data. This while loop is inside a bigger while loop that is continuously acquiring data from an instrument (a spectrometer). The smaller while loop that scans the port continuously…
Maheen Siddiqui
  • 539
  • 8
  • 19
0
votes
1 answer

When exactly are UIViewController elements ( created via IB in Main.storyboard ) initiated/loaded?

I have, in my viewController, about 15 buttons created via Interface Builder in Main.storyboard and the rest of my buttons I created programmatically. To avoid delay, I sent most of the stuff to background thread, but all the UI stuff ,including the…
rgoncalv
  • 5,825
  • 6
  • 34
  • 61
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
0 answers

Failed to start an appium session, instruments crashed on startup

Friends, Below error is seen:,the below code launches the simulator and trys to launch the app, but it fails, on the simulator i could obsever,the app launches but kills at the same time, it tries that for 3 try,but eventually failes with the below…
Lokesh
  • 41
  • 10
0
votes
0 answers

Appium failed to start iOS simulator when running test from jenkins. Instruments exited with code 255

I am currently working on building a test automation framework for iOS using Appium. In my framework, I start the Appium server from inside the code before the test suite started (@BeforeSuite). When I run the test manually using command: mvn clean…
Hayi Nukman
  • 1,191
  • 12
  • 29
0
votes
0 answers

High CPU usage - what is it?

Can't find out the problem that cause a high CPU usage (150% - 180%) in my app at a certain point. The UI works pretty well anyway.. but there's something in background that cause that without even touching the UI. I'm new to Instruments. Happy to…
Jacopo Penzo
  • 2,168
  • 2
  • 24
  • 29
0
votes
1 answer

WebKit Threading Violation - While executing instruments commands

When we trying to execute the following command, I got the error: WebKit Threading Violation - initial use of WebKit from a secondary thread. Command : instruments -w "45aba71d8e1704e30d565036d717f5cccba7047a" -t "Activity Monitor" -D…
Nagaraj B
  • 9
  • 1
0
votes
2 answers

Instruments Leaks tells about a memory leak when initializing object

Can anyone please tell me why the following code leaks? Instruments tells me about 2 leaks. The 2 lines that obviously cause the leak are: Person *pers = [[Person alloc] init]; and NSMutableDictionary *dict = [[NSMutableDictionary alloc]…
0
votes
0 answers

How to Visualize zPositions in iOS

My team and I are working on a SpriteKit based iOS game of medium complexity. There are lots of layers and nodes to the design of the game and the zPositioning of the nodes has gotten sloppy. One task I have agreed to take on is the revamping of…
zeeple
  • 5,509
  • 12
  • 43
  • 71
0
votes
1 answer

Leaks on the phone but not on the emulator?

Hey all, I have a problem and I'd like some advice. I'm working on a document viewer that's composed of the following major parts: zip library which unpacks the document container (minizip) xml library which parses the document (libxml2) UI code…
EightyEight
  • 3,430
  • 4
  • 36
  • 67
0
votes
1 answer

Tracking app's CPU usage on iOS

everyone. I have asked many questions about real-time plotting by using Core-Plot. The problems I asked before were solved, now I have to profile my app's performance. I use the Instruments and Debug navigator in Xcode to track the CPU usage, but I…
lktlktlkt
  • 51
  • 1
  • 8
0
votes
0 answers

Delayed Read response from SR810 lockin amplifier over Prologix GPIB-USB

I am trying to read data from SR810 Lockin amplifier over Prologix GPIB-USB Here is the screenshot of the shell showing commands and their response As we can see, the response to the commands is extremely delayed even when the data points are…
NidhiS
  • 1
  • 1
0
votes
2 answers

Problem with finding leak code

I am using xcode 3.2 and I have leaks in my app but how can I find the line in my code which is leaking?? In earlier version of xcode I just used to double click on the object in the instrument which used to show the xcode with pointing the line…
Ideveloper
  • 1,467
  • 4
  • 23
  • 44
0
votes
1 answer

How to use Xcode7 instruments leaks tool located the code where leaks occurred

I followed the apple official instruction ,but I can't find the head icon described in instruction.And I got this leak information,So I click the information The code when I Click the information I have reviewed my code , could't find any possible…
Bing Magic
  • 29
  • 5
1 2 3
99
100