xcode-instruments

Slow load time for custom UIView in Swift

大兔子大兔子 提交于 2020-01-05 09:35:19
问题 Background In order to make a text view that scrolls horizontally for vertical Mongolian script, I made a custom UIView subclass. The class takes a UITextView , puts it in a UIView , rotates and flips that view, and then puts that view in a parent UIView . The purpose for the rotation and flipping is so that the text will be vertical and so that line wrapping will work right. The purpose of sticking everything in a parent UIView is so that Auto layout will work in a storyboard. (See more

Slow load time for custom UIView in Swift

烈酒焚心 提交于 2020-01-05 09:34:14
问题 Background In order to make a text view that scrolls horizontally for vertical Mongolian script, I made a custom UIView subclass. The class takes a UITextView , puts it in a UIView , rotates and flips that view, and then puts that view in a parent UIView . The purpose for the rotation and flipping is so that the text will be vertical and so that line wrapping will work right. The purpose of sticking everything in a parent UIView is so that Auto layout will work in a storyboard. (See more

How to resolve dyld and localtime leaks when profiling a project?

时光总嘲笑我的痴心妄想 提交于 2020-01-04 03:23:12
问题 I am profiling my source. I see some allocations that are still alive at exit when I run valgrind . Here is the summary: $ valgrind --track-origins=yes --show-reachable=yes --leak-check=full $BINARY ... ==20235== LEAK SUMMARY: ==20235== definitely lost: 0 bytes in 0 blocks ==20235== indirectly lost: 0 bytes in 0 blocks ==20235== possibly lost: 0 bytes in 0 blocks ==20235== still reachable: 20,228 bytes in 37 blocks ==20235== suppressed: 0 bytes in 0 blocks ==20235== The responsible libraries

new in using XCode Instruments to interpret memory warning for iPhone development, guidance needed

亡梦爱人 提交于 2019-12-25 05:01:30
问题 I am working on an iPhone game which receives memory warning that I am not experienced enough to interpret. I have been watching some iTunesU tutorial but I am still not very good at this.. I have received various memory leaks whilst running my game and I wanted to understand how to interpret the stack trace show in Instruments properly. I attach a screenshot of the ObjectAllocation instrument output . Even when I zoom filter I don't manage to filter the data in the ObjectSummary . The peaks

How to export .trace file to a csv file in macOS sierra

萝らか妹 提交于 2019-12-24 09:47:49
问题 I have a .trace file created using the time profiling in the instruments.app I was trying to convert the trace into a csv file using the Export Data option but that was disabled in the instruments app in my macOS Sierra Is there any other way I can convert the trace into a .csv file? like via command line or any other tool? 回答1: If the Export Data menu item is disabled, it means that particular instrument does not support exporting to a CSV file. Instruments has many instruments. Some of them

how to find and fix the cause of the crash

倾然丶 夕夏残阳落幕 提交于 2019-12-24 08:57:04
问题 I submited an app to the app store and it was rejected due to: "We found that your app crashed on iPhone 5 running iOS 6.1.2, which is not in compliance with the App Store Review Guidelines. Your app crashed when we: when the user taps to sign into the app, a crash is produced. This occurred when your app was used: On Wi-Fi On cellular network Your app may encounter this issue if it is using too much memory. To learn more about iOS memory usage and how to track memory usage and leaks, please

What does the DTMobileIS mean for?

一世执手 提交于 2019-12-23 06:57:14
问题 When I used Instruments tool to monitor my memory usage, I found a process named DTMobileIS use about 40% of real memory, and then there were not enough memory for my app so it crashed. I am curious about this DTMobileIS means for. Does anyone know about it? Edit: It seems like DT is the prefix of Debug Tool . And according to this link, IS sounds like the abbreviation of Instruments . 回答1: DTMobileIS- which I believe is the Mobile Instruments Data Server that provides info to instruments

How to start/stop Instruments (Time Profiler) programatically?

两盒软妹~` 提交于 2019-12-23 02:29:07
问题 Is there any way to start/stop Instruments profiling programmatically ? I need to profile just a specific section of my OS X code in a reliable way but I can't seem to find any documentation for Instruments which might tell me how I might do this. With CHUD/Shark there was a programming API and a command line tool to support this but I don't see the equivalent for Instruments anywhere ? FWIW I found some old forum posts from around 2009 bemoaning the lack of Instruments functionality in this

Xcode Instruments unable to take snapshots of leaks when running on device

拜拜、爱过 提交于 2019-12-22 03:16:18
问题 Recently I have not been able to test for leaks with Instruments when running apps on a device. Instruments will attempt to take a snapshot but the status will freeze at "Analyzing Process". At first I thought it was just taking it's time but I have waited over 20 minutes for it and had no luck. It does still work fine on the simulator though. So far I have tried: - Using other devices with different ios versions - Restarting all devices - Updating Xcode to latest version - Running a number

Run Xcode Instruments on device with a ios keyboard extension

匆匆过客 提交于 2019-12-21 21:27:23
问题 I'm developing a custom keyboard but it's very slow and sometimes it's crashing. Because I'm not sure where it comes from, I'd like to Time Profiler with Instruments . But when I select MyIphone > Keyboard Extension (target), I get: Target failed to run or Waiting for x.x.x.Keyboard Please take appropriate action to initiate the launch of 'x.x.x.Keyboard.' Is it even possible to use Instruments with an app extension? If yes, how should I proceed? 回答1: I can't use Instruments to analyze my