instruments

import tuneup.js file not found

做~自己de王妃 提交于 2019-12-02 05:49:12
Using the Xcode iOS Instruments UI Automation tuneup.js javascript library https://github.com/alexvollmer/tuneup_js . I'm having challenges understanding the current working diretory of my launched instrument. I have not been able to make a relative path to the tuneup/tuneup.js script. The destination of the relative path is of course "tuneup/tuneup.js". But what is the starting point? Here's the code: // This works: #import "/Users/mikes/Documents/Full/Path/To/File/Tests/tuneup/tuneup.js" // These do not work: //#import "tuneup/tuneup.js" //#import "Tests/tuneup/tuneup.js" // // See https:/

iOS/UI Automation: UIAActionSheet does not have possibilities to manipulate with buttons

戏子无情 提交于 2019-12-02 03:22:14
My question is related to UI Automation template from XCode's Instruments tool. How does UI Automation support UIActionSheet testing? I know that there is a UIAActionSheet element and I was able to obtain it in my application. But I do not know how to get and manipulate with buttons from the action sheet. UI Automation does not provide any elements for these buttons. The UI Automation documentation does not have any info on the matter either. See the link below. It looks like this control does not use UIButton class for the buttons and renders them in some specific way. Could you give me some

MPMediaItemPropertyArtwork causes crash (weird issue)

南楼画角 提交于 2019-12-02 02:06:10
问题 allocations before running 'extra loop' The code: // loading items to the array, there are no memory warnings after this is completed. The first allocations screenshot is after this code and before extra loop code. NSMutableArray *albumCovers = [[NSMutableArray alloc] init]; for (MPMediaQuery *query in queries) { NSArray *allCollections = [query collections]; for (MPMediaItemCollection *collection in allCollections) { MPMediaItemArtwork *value = [collection.representativeItem valueForProperty

How to clear abandoned memory that doesn't point to own code?

我是研究僧i 提交于 2019-12-02 02:02:50
It seems that my app is abandoning memory since the persistent memory of recorded heapshots don't fall to zero and the heap continue to grow when the same set of operations are continuously repeated: To find out the problems, many people suggest Bill's site that is not useful for me since I am using ARC, whereas he points to reference issues. I then followed Apple docs and watched some videos relating to abandoned memory from the WWDCs. They all say that instruments will help to point to the line of code that might cause the problems. So I reviewed every single object but didn't see anything

iPhone: Time Profile Instrument

≡放荡痞女 提交于 2019-12-02 01:54:56
Has any body good tutorial or description how to use Time Profile Instrument ? All that I found is http://blancer.com/tutorials/flex/78335/apple-profiling-tools-shark-is-out-instruments-is-in/ and http://mobile.tutsplus.com/tutorials/iphone/ios-sdk-time-profiling-with-instruments/ I understod that I should use "show obj - C only" option. But what about flags ? How to use them ? How to create them ? thanks.. You create flags by pressing command + down after you have drug the dotted line to the area you want to flag. 来源: https://stackoverflow.com/questions/9263783/iphone-time-profile-instrument

iPhone: Time Profile Instrument

浪尽此生 提交于 2019-12-02 01:36:47
问题 Has any body good tutorial or description how to use Time Profile Instrument ? All that I found is http://blancer.com/tutorials/flex/78335/apple-profiling-tools-shark-is-out-instruments-is-in/ and http://mobile.tutsplus.com/tutorials/iphone/ios-sdk-time-profiling-with-instruments/ I understod that I should use "show obj - C only" option. But what about flags ? How to use them ? How to create them ? thanks.. 回答1: You create flags by pressing command + down after you have drug the dotted line

MPMediaItemPropertyArtwork causes crash (weird issue)

a 夏天 提交于 2019-12-01 23:54:39
allocations before running 'extra loop' The code: // loading items to the array, there are no memory warnings after this is completed. The first allocations screenshot is after this code and before extra loop code. NSMutableArray *albumCovers = [[NSMutableArray alloc] init]; for (MPMediaQuery *query in queries) { NSArray *allCollections = [query collections]; for (MPMediaItemCollection *collection in allCollections) { MPMediaItemArtwork *value = [collection.representativeItem valueForProperty:MPMediaItemPropertyArtwork]; UIImage *image = [value imageWithSize:CGSizeMake(100, 100)]; if (image) {

How to use UIAutomation to select image from UIImagePickerController

 ̄綄美尐妖づ 提交于 2019-12-01 17:49:30
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 "Moments", which means we are in the photo picker, but the second line gets no error - but does not

Xcode Instruments 8.3 Display Settings button missing

爷,独闯天下 提交于 2019-12-01 16:54:04
In the latest version of Instruments 8.3 the display settings button has been removed and replaced by the File->Record settings dialog. When using the allocation tools I now can no longer activate Automatic Snapshotting, because the option is gone from the right panel and the record options dialog is only showing the value for the allocation tool but not for the vm tracker. Record options dialog Does anybody know where the option has been moved to? Many thanks Many of the display settings have been moved to the bottom of the trace document window. To answer your question about automatic

Memory profiling doesn't work with Xcode 9

南笙酒味 提交于 2019-12-01 16:20:50
I am using the latest version of Xcode 9 and macOS 10.13. When I try to make a memory graph from the current state of my application, it shows an empty screen that says No Selection . I also tried to profile and work with Instruments, but it did not allow me to run due to a permission error. Target failed to run. Permission to debug [app name] was denied. I am aware of these threads and tried the suggestions available in them, but they didn't seem to work : Reddit - Has instruments stopped working for you in Xcode 9 due to a permission denied error? Is there a workaround for this? Apple