instruments

Xcode Instruments is stripping symbols despite all build settings to the contrary

大兔子大兔子 提交于 2019-12-04 10:23:33
问题 Problem Instruments' Time Profiler is stripping all symbols except system libraries from my app, despite the fact that I have disabled this behavior in all relevant build settings in Xcode — but only on one development machine. The other dev machine behaves normally. Description Instruments' Time Profiler is stripping all symbols except system libraries, despite the fact that I have disabled this behavior in all relevant build settings in Xcode — but this is only happening on one of my

What does <non-object> in Allocation “heapshots” mean?

时间秒杀一切 提交于 2019-12-04 10:14:07
问题 I'm having a hard time fixing memory related issues in my iPad application, but, good thing is, that I've learned about "heapshots" because of that. Bad thing is, I'm still unable to figure out what some of the information provided to me means. So, what are these non-objects which are still alive and takes most of the memory described in Heap Growth? Is it possible to get rid of them? It looks like that most of them are related to various drawing operations, CALayer, context and etc (Category

Start Instruments from the command line

我怕爱的太早我们不能终老 提交于 2019-12-04 10:03:10
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 start trace. This is the command I used: instruments -w {deviceId} -t /Applications/Xcode.app/Contents

Understanding the Instrument for memory leak checking - iPhone

早过忘川 提交于 2019-12-04 08:12:49
问题 Above given images is of my application leaks. Here I want to understand that, in Extended Detail - you can see different colors like light green, light pink, light brown, light purple. What does each color indicates? Now the other confusion is "How to locate the code which is creating a memory leak?" Upto what limit of memory leak - the actual iPhone can go on with. (suppose 10 bytes no problem, 20 bytes no problem & 200 bytes a problem) What does each color indicates? Which color indicates

Understanding iPhone OpenGL Profiling

随声附和 提交于 2019-12-04 04:58:25
My app is up and running and now I am looking to improve the rendering performance. Using 'Instruments' I have collected some data. I am working with an old iPhone 3G as a worst case senario. Time Profiler: -30% CopyVertexElementsMultipleSequential -11% mach_msg_trap -4% _semwait_signal -2% ValidateState However using the Open GL ES Driver, the Sampler reads: -70% _semwait_signal -24% CopyVertexElementsMultipleSequential -0.7% mach_msg_trap Poking around the docs I haven't been able to come with what what the difference between the OpenGL ES Sampler and the Timer Profiler are. Can anyone

UIAutomation through command line on a real device

ε祈祈猫儿з 提交于 2019-12-04 04:01:32
I know starting from Xcode 4.2 it is possible to run UIAutomation scripts through command line. I've tried this and is working perfectly fine for me in simulator. I'd like to know how to get this run in an actual device.I searched and got the command for running on device as, instruments -w <device_id> -t /Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate application -e UIASCRIPT script -e UIARESULTSPATH <results path> What exactly should I give in the application , is it the path to ipa or

How to use UIAutomation to select image from UIImagePickerController

独自空忆成欢 提交于 2019-12-04 03:24:50
问题 We are trying to get a UIAutomation test around a flow in our app where a user selects an image from a UIImagePickerController. All the automation works great, until we try to select an image from the picker controller. It seems like we cannot get the right object to send the tap to. Here is what we are trying: UIALogger.logMessage("Navigation Title: " + app.navigationTitle() ); window.collectionViews()[0].tapWithOptions({tapOffset:{x:0.5, y:0.5}}); The above will show the navigation title as

Application hangs when profiling with instrument in Xcode 6.0.1

僤鯓⒐⒋嵵緔 提交于 2019-12-04 03:09:58
I am observing that whenever I am profiling my application using instrument in Xcode 6.0.1, application hangs every time while I am browsing through the application. I am using iPhone 5S (iOS 8.0.2) to run my application. When I run the application on device it runs all fine. Found the fix - disabling the NSLog statements (profiling on release and not on debug) solved the issue for me. Extending on Abhinav's correct answer, NSLog() is indeed triggering the issue, but not all NSLogs, only some very large ones. In my case I was logging some long responses from a web service, and commenting only

UILabel (CALayer) is using large amounts of virtual memory

▼魔方 西西 提交于 2019-12-04 02:46:41
In Xcode and Instruments I see UILabel (CALayer) using large amounts of virtual memory (Anonymous VM). I see about 235 KB of virtual memory per UILabel . I think this perhaps is a new issue with iOS 7.1 or 7.1.1. Is this expected? I created a simple program that creates 500 UILabels and Instruments shows 115MB of memory used. At about 1500 labels the application is terminated by the OS. for (int i = 0; i < 500; i++) { index = (int)[self.items count]; index++; frame = CGRectMake(10.0, 20, 300.0, 50.0); UILabel *newLabel = [[UILabel alloc] initWithFrame:frame]; newLabel.text = [NSString

Instruments Automation Tool: Script Ended Without Explicitly Closing This Test

試著忘記壹切 提交于 2019-12-04 02:11:48
问题 I was playing around with the Automation tool in Instruments today but have had problems writing a working test. The following example will exit with Issue: Script ended without explicting closing this test . Yes, the message really does say expliciting . I assume this is a typo introduced in a recent version of Xcode. This is the first time I've tried using this tool. Setting cellCount to 6 results in a Pass but anything gives me the 'script ended' message. Am I doing it wrong or is there a