instruments

Time profiler doesn't show me functions

纵然是瞬间 提交于 2019-11-29 17:50:41
In tutorial, when someone debug app they see something like this: But when i start recording, by pressing red button: I see this... Make sure the Generate Debug Symbols build setting is set to Yes. You need debug symbols to have function names appear in Instruments. If your project is generating debug symbols, Instruments may not be able to find your project's dSYM file. In Instruments choose Instrument > Call Tree Data Mining > Locate dSYM file to find and open your project's dSYM file. Your project's dSYM file is usually located in the same directory as the application bundle of your project

Why won't instruments execute my Monotouch application?

*爱你&永不变心* 提交于 2019-11-29 17:26:34
问题 I'm trying to use Instruments to look at resource usage in my Monotouch app. However, I can't get the app to launch through Instruments. When I hit the record button in Instruments, the app launches on my iPhone, buzzes (signifying it's a debug build), then crashes - and Instruments reports: Target failed to run: Remote exception encountered : 'Failed to get task for pid 384' The app runs fine when I launch it directly on the phone. I've tried it with debug builds and ad hoc builds (using the

Using Instruments to Work Through Low Memory Warnings

こ雲淡風輕ζ 提交于 2019-11-29 13:52:29
问题 I am trying to work through some low memory conditions using instruments. I can watch memory consumption in the Physical Memory Free monitor drop down to a couple of MB, even though Allocations shows that All Allocations is about 3 MB and Overall Bytes is 34 MB. I have started to experience crashing since I moved some operations to a separate thread with an NSOperationQueue. But I wasn't using instruments before the change. Nevertheless, I'm betting I did something that I can undo to stop the

Using Instruments to test an iOS app without having source code to the application

怎甘沉沦 提交于 2019-11-29 11:26:05
I would like to use UIAutomation via Instruments in Xcode to test an app on my iOS device. Is it possible to do so without having to build the source code? The reason for this is that our team will have testers who will be writing automation scripts to test the apps on our devices, but we don't want them to all go through syncing to latest builds and compiling it through Xcode. Does anyone know if this is possible through UIAutomation or possibly through a 3rd party application? Thanks. You could make UIAutomation tests without the source code, but you will not see your symbols and you cant

How to launch iOS Simulator in specific language from command line?

一曲冷凌霜 提交于 2019-11-29 11:11:12
I need to lauch iOS Simulator that uses specific language using command line. So I found that I can use instruments -w <device> and it is working great, I can set specific device. But how can I run simulator with specific language? I've tried adding -AppleLanguages -AppleLocale but there are some warnings: Instruments Usage Error : Specified target process is invalid: -AppleLanguage thanks! To run your app must be installed and located (if not, will open default language) Use this command to run your app with some language xcrun simctl launch <deviceid> <appid> -AppleLanguages "(pt-BR)" Sample

Why do I get instruments - “Target failed to run”?

牧云@^-^@ 提交于 2019-11-29 10:37:58
问题 Target failed to run: Remote exception encountered: Faild to get task for pid 3103 I'm running iPhone OS 3.1.3 on the device and I can run my App in debug mode on the device. I downloaded and installed the xcode_3.2.2_and_iphone_sdk_3.2_final.dmg twice, without any luck. 回答1: I got the same issue when I switched to XCode 4 and I solved it by setting my release code-signing profile to my development profile instead of the app store profile that was previously set. Indeed, Xcode 4 profiles your

Leaks in Swift 3 / iOS 10

白昼怎懂夜的黑 提交于 2019-11-29 10:37:11
When I'm running instruments and check for leaks, it's showing leaks mainly consisting of: _ContiguousArrayStorage<String> _NativeDictionaryStorageOwner<Int, CGFloat> _NativeDictionaryStorageOwner<String, AnyObject> This is when I'm using Swift 3 and testing on devices using iOS 10. The leaks only show up in iOS 10 while on iOS 9.x everything seems to be normal. On top of that, in iOS 10 UISwitch doesn't seem to deallocate either. Currently I've been creating all kinds of workarounds trying to avoid using dictionaries and in some cases arrays, making it really annoying to code. Question:

Xcode Instrument : Memory Terms Live Bytes and Overall Bytes (Real Memory) confusion

北城以北 提交于 2019-11-29 09:39:13
问题 I am working on a Browser application in which I use a UIWebView for opening web pages. I run the Instruments tool with Memory Monitor. I am totally confused by the terms which are used in Instruments and why they're important. Please explain some of my questions with proper reasons: Live Bytes is important for checking memory optimization or memory consumption? Why ? Why would I care about the Overall Bytes/ Real Memory, if it contains also released objects? When and why are these terms used

setNeedsDisplay, drawRect or CALayer causing dispatch_continuation_alloc_from_heap malloc memory leak iOS

*爱你&永不变心* 提交于 2019-11-29 07:53:12
I'm experiencing a memory leak in my application and it seems to originate from CALayer. It looks as though it only affects old iPads; I see the problem with iPad 1 & 2, but iPad Air is ok. I have a crash report from an iPad 1 showing that my app was 'jettisoned' due to insufficient memory, this leak is my main suspect. Background During operation setNeedsDisplay is continuously called every 40ms by the network thread on various UIViews to update their visuals, see function below. - (void)setNeedsRepaint { [self performSelectorOnMainThread:@selector(setNeedsDisplay) withObject:nil

How to measure total time spent in a function?

你说的曾经没有我的故事 提交于 2019-11-29 06:57:50
I have a utility function that I suspect is eating up a large portion of my application's execution time. Using Time Profiler to look at the call stack, this function takes up a large portion of the execution time of any function from which it is called. However, since this utility function is called from many different sources, I am having trouble determining if, overall, this is the best use of my optimization time. How can I look at total time spent in this function during program execution, regardless of who called it? For clarity, I want to combine the selected entries with all other