instruments

What do “Self” and “# Self” mean in the Time Profiler instrument?

淺唱寂寞╮ 提交于 2019-12-03 05:43:14
The documentation just says it means "the number of time the symbol calls itself", but what does this mean? And what does "# Self" mean? When I use Instruments, if "# Self" is equal to 100, then "Self" is also 100.0. I think the documentation you read must be incorrect. Self in the Time Profiler refers to the amount of time spent in the given function itself, excluding time spent in other methods that it calls. Self % is the same thing but expressed as a percentage of the total running time. # Self is the number of actual profiler samples that hit this function or method. The Time Profiler

Do loops and convenience methods cause memory peaks with ARC?

…衆ロ難τιáo~ 提交于 2019-12-03 05:11:21
问题 I'm working with ARC and seeing some strange behavior when modifying strings in a loop. In my situation, I'm looping using NSXMLParser delegate callbacks, but I see the same exact behavior and symptoms using a demo project and sample code which simply modifies some NSString objects. You can download the demo project from GitHub, just uncomment one of the four method calls in the main view controller's viewDidLoad method to test the different behaviors. For simplicity's sake, here's a simple

Using Xcode Instruments on hackintosh

别说谁变了你拦得住时间么 提交于 2019-12-03 05:09:22
问题 Using hackintosh (i7-4790K 4GHz, 16GB DDR3, GF980Ti) for developing on Xcode (both Swift and Objective-C) about an year, never get any errors. But now I need to use Instruments apps (such Leaks, Allocations, Energy Log, System Trace, etc.) - but I can not! When I start ANY of these apps I see just transparent window without any visible information. 回答1: EDIT: as @Eike said in his answer, Instruments and other apps facing this issue work out of the box from 10.13 onwards. For 10.12, the

How do I reliably get Instruments 4.x to symbolicate?

谁说胖子不能爱 提交于 2019-12-03 04:52:12
I have a bit of a dilemma — no matter what I do, I cannot get Apple's Instruments.app to symbolicate any of the included instruments while I'm profiling on my devices (it works OK in the iOS Simulator). I've tried just about everything I can think of, including: Checking that I'm actually building a dSYM Switching between Debug and Release build schemes Making sure that the signing certificate being used in my Development cert Adding and removing my Derived Data folder from Spotlight's Privacy list Clean & Build before profiling Removing the Derived Data folder before building and profiling I

Time profiler in instruments is not working

China☆狼群 提交于 2019-12-03 03:25:23
问题 I recently update my Xcode to version 9.3, so is instruments. After that, time profiler won't work anymore, it usually works fine before. I tried to run it via Xcode, and I tried to run it manually. Doesn't work. The life cycle row stuck in initializing, and I got a bunch of warnings complain about the data volume is too high for a recording mode of "immediate" and some data had to be dropped to move forward . Then I switch to delay mode, still got nothing. Then I create a simple new project,

Instruments > Allocations not showing app classes/objects

隐身守侯 提交于 2019-12-03 02:25:47
In previous versions of Instruments I had no problem but now (v6.2) for some reason Allocations won't list any of my app's objects. I've tried Debug and Release Mode: Note, the filter "VC" should catch all the ViewControllers. And without the filter... Any ideas? I tested this out with both 6.2 and 6.3 and encountered the issue. Also I was using the iOS 8.2 and 8.3 simulators. However, when I switched to the iOS 8.1 simulator, it worked properly. So it's not so much a bug with Instruments as it is an iOS bug, it appears, or at the very least a combination of the two. So a workaround for now is

ADB equivalent for iOS device

半腔热情 提交于 2019-12-03 01:39:46
I was looking some instrument like Android ADB in order to debug iOS devices. I've found iOS instrument , a tool of the XCode that is able to debug app on mobile iOS devices. This instrument is helpful if you have to test your application or some other open source app. I need to test the iOS device, more than my apps, so I was looking for something like Android ADB for iOS devices. Is there something like it? You asked: I would like to know if it's possible execute a touch on the iOS device, such as input events like "tap", "swipe", "drag", "flick" in similar manner of adb shell for android

Understanding Instruments memory allocation log on iOS

拥有回忆 提交于 2019-12-03 01:15:34
I have built an iOS app that is almost done, however, I have recently experienced that it crashes after while due to "Memory pressure". So I started profiling the memory allocations in Instruments and sure, the app does use quite a lot of memory and it only seems to increase during usage. However, relatively new to Instruments memory allocation I am not quite able to decipher where 52 % of the allocations are made, as seen in the screenshot below: It has obviously got something to do with Core Animation, but what exactly is hard for me to determine, so I thought that some clever minds out

iOS libsystem_c.dylib strdup memory leak NSZombie not working

末鹿安然 提交于 2019-12-03 00:15:48
Please help me track down an iOS memory leak. Thanks! I'm using xCode 4.0.1 and I tried to activate NSZombie to track a memory leak, but it doesn't seems to work as before, with xCode 3.x I can't find out where the memory leak is coming from, as Instruments points this out: Leaked Object -> GeneralBlock-32 Address -> 0x4c8600 Size -> 32 Bytes Responsible Library -> libsystem_c.dylib Responsible Frame/Caller -> strup At this point I don't know If I'm using Instruments with NSZombie the right way with xCode 4, as it doesn't show the NSZombie option when I click "i" for more information, under

Understanding the Instrument for memory leak checking - iPhone

被刻印的时光 ゝ 提交于 2019-12-02 21:21:45
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 our code / From which detail we can get to the code where we have allocated the object & forgot to