instruments

How to log all methods used in iOS app

别说谁变了你拦得住时间么 提交于 2019-11-26 14:06:16
I'm taking over the development of an iPad app for a client. There's a substantial amount of work that's already been done and I'm trying to piece together how the whole thing is designed to run. One of the things I'd like to do is log which methods get called when the app runs. I've seen a custom DTrace script that's meant to log all methods from startup, but when I run it in Instruments I get no results. What's the best way of logging the methods? Brad Larson Inspired by tc's answer to a similar question here , I put together a debug breakpoint action that will log out the class and method

How to profile memory usage & performance with Instruments?

懵懂的女人 提交于 2019-11-26 12:35:20
问题 Of all the Instruments Trace Templates, I love using: Zombies to detect where an object is getting over-released, great for debugging EXEC_BAD_ACCESS errors. Leaks to detect memory leaks. Core Animation w Color Blended Layers to detect frame rate & translucent subviews, great for smoothing up UITableView scrolling. I always hear people saying to profile my app\'s memory usage & performance. Why should I profile memory usage & performance? My app runs fine. How do I do it? I\'ve used

Trying to read a Xcode Instruments .trace file. What is the file format of a .trace file?

天涯浪子 提交于 2019-11-26 12:29:42
问题 I am writing an automated profiling system, to profile different GPU intensive screens in my App. I have been trying to use \'XCode Instruments\' for this, with the \'OpenGL ES Driver\' instrument that captures the gpu usage data. My automated system runs Xcode Instruments from the command line which runs the App, profiles and captures the data, and writes the data to a \".trace\" file. I now want to be able to open the trace file, and read the trace data using my automated profiling system,

What does the Tiler Utilization statistic mean in the iPhone OpenGL ES instrument?

左心房为你撑大大i 提交于 2019-11-26 10:31:57
问题 I have been trying to perform some OpenGL ES performance optimizations in an attempt to boost the number of triangles per second that I\'m able to render in my iPhone application, but I\'ve hit a brick wall. I\'ve tried converting my OpenGL ES data types from fixed to floating point (per Apple\'s recommendation), interleaving my vertex buffer objects, and minimizing changes in drawing state, but none of these changes have made a difference in rendering speed. No matter what, I can\'t seem to

Missing symbol names when profiling IPhone application with Instruments

早过忘川 提交于 2019-11-26 09:18:21
问题 I am compiling an IPhone application via command line (so no XCode options involved) and I am unable to get my symbol names to show when profiling with Instruments. I have tried several flags such as -gdawrf-2 and -g without any success. I have also tried using dsymutils to generate a .dSYM file but i have no clue how I\'m supposed to use it so that failed aswell. Any help will be greatly appreciated! 回答1: I Changed my project settings to not include the dSYM file while building: Changing it

Instruments Allocations track alloc and dealloc of objects of user defined classes

天大地大妈咪最大 提交于 2019-11-26 06:55:44
问题 Is it possible to track the allocation and deallocation of my Objective-C objects? For instance if I have a class Book, I want to track all the allocations and deallocations of the objects of Book type. I can track all the default SKD classes, such as UIViewController, UIWindow, UIView, NSDictionary and all that, but I want to track also the objects that are created from my defined classes. 回答1: You can use the Allocations instrument to track the lifecycle of your objects. If you use the

Can the UI Automation instrument be run from the command line?

亡梦爱人 提交于 2019-11-26 03:50:35
问题 Is there a way to open the UIAutomation instrument through the terminal? Will it be possible to write an AppleScript to open Apple\'s UIAutomation tool and load the application to be tested? Can you please tell me is there any way through scripting or through the command line we can open UIAutomation and select the app to be tested, as well as select the test script? 回答1: instruments -t /Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/\ PlugIns/AutomationInstrument.bundle

How to log all methods used in iOS app

北城余情 提交于 2019-11-26 03:48:29
问题 I\'m taking over the development of an iPad app for a client. There\'s a substantial amount of work that\'s already been done and I\'m trying to piece together how the whole thing is designed to run. One of the things I\'d like to do is log which methods get called when the app runs. I\'ve seen a custom DTrace script that\'s meant to log all methods from startup, but when I run it in Instruments I get no results. What\'s the best way of logging the methods? 回答1: Inspired by tc's answer to a