instruments

Instruments can't attach to running process on iPhone

99封情书 提交于 2019-12-06 11:07:42
I created a build for ad-hoc distribution of our product and installed the same on my device. Now I want to run the time profiler on the running process but Instruments is unable to attach to it. This is the error that I get when I try to attach to a running process on the iPhone: Target failed to run : Could not attach to process <app-name> (<pid>) I also tried "Choose Target" > app-name but that too failed with the following error: Target failed to run : Remote exception encountered : 'Failed to get task for pid <pid>' Here are the details of my setup: OS X 10.7.2 Xcode 4.2.1 (Build 4D502)

How to read a Xcode 6.1 Instruments .trace file?

馋奶兔 提交于 2019-12-06 07:46:54
问题 I have been trying to read a .trace file, which I had generated using a custom instruments template(instruments: Automator , Allocations , Leaks ) using Instruments. The best help I found in this stackoverflow answer. Basically the author created a custom Objective-C program(Traced) to read a specific type of Apples .trace file(instrument: OpenGL ES Driver ). His answer is geared towards XCode 4.6 . The code still works with XCode 6.1 , but the trace-file seems to have changed slightly. You

Automating iOS 8 app with Appium causes app freeze

瘦欲@ 提交于 2019-12-06 07:38:22
We have an app that we run automation tests on with Appium. We can launch the app on the device and simulator through Appium. However, the app hangs and freezes after Appium sends 2-3 tap commands. After the freeze, Appium can not find any other elements on the screen. We looked into writing a test script using Xcode 6.0.1 Instruments, but when the script is run, the app hangs as well. The app performs as expected when testing manually. It only hangs when we try to run automation on it either with Appium or with Xcode's Instruments. We are using Appium v1.3.0-beta1, and Xcode 6.0.1. This seems

Objective C: Detecting Leakages via Instruments in Xcode

冷暖自知 提交于 2019-12-06 07:28:28
I ran the instruments on my app and found some leaks, however I am not sure how I can decipher the results for example I clicked on the line '_NSArrayM' After which I clicked on one of the entries in the details column and the following was displayed, What does '100%' mean? The 100% means all the leaks Instruments detected in that function were in the highlighted line of code. If your function was leaking memory in multiple places, the individual percentages would be lower, but they would add up to 100%. 来源: https://stackoverflow.com/questions/6561932/objective-c-detecting-leakages-via

Checking iOS application used memory in instruments

蹲街弑〆低调 提交于 2019-12-06 07:20:22
I want to make sure I'm reading the allocations plug in correctly. I'm testing an iPad app thats receiving memory warnings 1,2 & 3. I want to know the current used up memory from my app, which I think it has to be the "Live Bytes" column? which marks All Allocations to 2.42 MB which I think its low. What do the other columns report? #Transitory, Overall Bytes ? Also if my app uses only 3 MB of memory can it be killed if I get a memory level 3 warning without releasing? Thank you. Brad Larson Don't use the Object Allocations instrument for looking at your total memory usage. It does not display

Why are UIAElement's children not equal to themselves?

痴心易碎 提交于 2019-12-06 06:42:13
问题 I noticed some weird behavior in a UIAutomation script I had written a while back that I hadn't ran in a while. My assertions were failing; after doing some digging, I saw that when iterating a UIAElement's .elements() , subelements do not appear to be equal to themselves. This has worked for me as expected in the past, but appears to be broken in at least XCode 4.3.2 To repro: create a single-view app throw some elements in the view, set Accessibility Labels on the elements so they get

Memory Warning but Small Live Bytes

人盡茶涼 提交于 2019-12-06 06:34:35
In my application, I get a memory warning of level 1 and then 2 after repeating some action (choosing a picture + processing) several times and then a crash. The leak tool doesn't show any leak. I'm also following the Allocations tool in Instruments and my Live Bytes are roughly 4 MB, overall I allocate 113 MB. At maximum I have maybe 20 MB in memory when the picture is loaded. Since I have to repeat an action to get to the crash, it is very likely to be a memory leak. However, I don't know how to locate it since my live bytes are 4 MB and things supposed to be allocated (apart a small leak of

executing system command in Matlab without waiting

拟墨画扇 提交于 2019-12-06 04:19:01
I am trying to operate three instruments using one Matlab GUI. One instrument simply sends data via serial port. Second is configurated and starts sending data via virtual serial port but using manufacturer's SDK (I am using modified example script for Matlab to comunicate with instrument) Third uses compiled C++ program which execution configures instrument and starts sending data but saves it outside Matlab. This instrument operates just few second unlike other sensors: system('ctrllib_demo3.exe 192.168.0.125 C:\ScanPos003.rxp 30,130,1,0,360,1 1') While running each instrument independently,

Start Instruments from the command line

有些话、适合烂在心里 提交于 2019-12-06 04:13:05
问题 I followed this site to get started with UI Automation. http://blog.manbolo.com/2012/04/08/ios-automated-tests-with-uiautomation#1.2 I am trying to start Instruments from the command line. Unfortunately I get an error: 2013-03-14 14:06:36.376 instruments[17854:1207] Connection to the remote device lost while launching target. Aborting... 2013-03-14 14:06:36.378 instruments[17854:1207] Recording cancelled : At least one target failed to launch; aborting run Instruments Trace Error : Failed to

Lot of strange leaks in instruments only on device (no leaks in simulator)

一世执手 提交于 2019-12-06 03:16:10
I started working with instruments and have a lot of leaks. I don't have an idea how to solve them. Instrument show that i have leak in this line: NSArray *topLevelObjects = [[NSArray alloc] initWithArray:[[NSBundle mainBundle] loadNibNamed:@"SearchResultsTableViewCell" owner:self options:nil]]; What is wrong with this? // Customize the appearance of table view cells. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"SearchResultsTableViewCell"; SearchResultsTableViewCell *cell =