Best way to detect the memory usage etc. on a mobile device for debugging?

Hello

What is the best way, during development, to detect the use of memory and other while the application is running on the device?

So you can test it and see if something is the cause in the wild. I do an iOS/Android device so I want to try on fast and slow both phones and I have a script which ' add on ' memory usage as long as the user continues. I would like for this monitor (app, or the debugger) to see what is happening.

Any ideas?

Thank you

Hello!

My debugger favorite, by far, is "Debbuger Monster".

Easy to use and very powerful!

Go > http://demonsterdebugger.com/

Tags: Adobe AIR

Similar Questions

  • Best way to detect the select event list?

    Hello

    I have a ListField where I get many elements of the list. Whenever we choose any item in the list, I would like to immediately detect which line is selected with its data. What is the event to be perfect to achieve this goal? I tried, 'invokeAction', but is not detected when any list item is selected in the listview.

    Thank you.

    I prefer this and then adding a listener to changes to the ListField.  In the FieldChangeListener, you must use "getSelectedIndex".

    SerializableAttribute public class ClickableListField extends {ListField

    protected boolean navigationClick (int status, int time) {}
    this.fieldChangeNotify (3);
    Returns true;
    }

    protected boolean touchEvent (TouchEvent message) {}
    If click process changed field
    If (message.getEvent () == TouchEvent.CLICK) {}
    this.fieldChangeNotify (3);
    Returns true;
    }
    Return super.touchEvent (message);
    }

    }

  • Monitoring the memory usage on iOS using the Stats class

    I was check memory usage on an application I'm developing for iOS using Stats class https://github.com/mrdoob/Hi-ReS-Stats ( http://help.adobe.com/en_US/as3/mobile/WS4bebcd66a74275c3-315cd077124319488fd-7fff.html#WS 948100b6829bd5a61637f0a412623fd0543-8000).

    I added the class Stats to my project and redeployed and, Ouch, reported in Stats memory usage ramp upward (quite slowly) even when there is nothing going on in the application (just displaying a loaded bitmap).

    To try to find the question, I created a project with a test class that extends Sprite with just this single call in the constructor: -.

    addChild (New Stats());

    I have deployed to the device to check that he didn't swallow all of memory.

    But I was surprised to observe the use of the memory to crawl upward and upward (to 5) before kicking in some garbage and takes memory down. I left it running and then he slipped once again more than 7.5 this time before being deported back down to just below 3.

    So 2 questions that I would be grateful any feedback/comments/thoughts on related: -.

    1 is this normal (i.e. memory creeping up when there is nothing else than to the Stats in the project)?

    2 - What is the best way to monitor the memory usage in an application? Good enough stats - is Stats itself causing the memory usage?

    All the best guys!

    See also thread (http://forums.adobe.com/message/4280020#4280020)

    My conclusions are:-

    -If you run an application and let idle, use memory slips gradually upward (probably in memory is used to perform the Calc/refresh the display, etc.)

    -Periodic garbage collection occurs and memory is brought back down

    -This cycle could be more than 5 min.

    Work with your real application and memory will increase and be published much more quickly/regularly.

    -It's probably worth making an initial check running on your desktop computer to smooth out all the initial problems

  • What is the best way to detect this text is part of the ContainerControllers without scrolling?

    Hello.

    Question

    What is the best way to detect that the text typed by the user (or added programmatically) exceeds the available space container and find where the truncated part begins? There are others (as described below) highlights the easy way to detect or to prohibit controllers to receive more characters that can be displayed in the area of publication given?

    My attempt partially (Simplified)

    For example, lets say I have a textflow editable with joints two instances of ContainerController.


    var flow:TextFlow = createSomeFlowFromGivenString(sampleText),
        firstController = new ContainerController(firstSprite, 100, 30),
        lastController = new ContainerController(secondSprite, 600, 30);
    
    
    flow.interactionManager = new EditManager(new UndoManager());
    flow.flowComposer.addController(firstController);
    flow.flowComposer.addController(lastController);
    
    flow.flowComposer.updateAllControllers();
    

    Vertical scroll policy enabled I can compare the height of the composition in the last controller with the height of the content:

    var bounds:Rectangle = lastController.getContentBounds(),
        overflow:Boolean =  lastController.compositionHeight < bounds.height;
    
    trace('Content does not fit into given area?', overflow)
    
    

    But when I change of vertical scroll policy off (lastController.verticalScrollPolicy = ScrollPolicy.OFF)-Unfortunately this does not work anymore... (In my case scroll must be disabled, since the text boxes can have only one line with narrow width)

    Use cases

    I want to create the form to fill out. Field can have one or more lines. A field could start in the middle of the page, continue in the following line, where it spreads throughout the page and put an end to the third line - long quarter of the width of the page. Text typed by the user may not exceed given the region since it could cover some static text that is located just after in below field.

    Something like ascii image below:

    --------------------------------------------
    |                <PAGE>                    |
    |                                          |
    |                                          |
    |                                          |
    |               [Field starts here........ |  
    | ........................................ |
    | ........................................ |
    | Ends here..]                             |
    |                                          |
    |                                          |
    | [Another field] xxxx  xxxx xxxxxxxx x xx |
    | xxxxxxxxxxxxxxxxxxx                      |
    |                                          |
    |                              [One more.. |
    | .....]                                   |
    |                                          |
    |                                          |
    |                                          |
    |                                          |
    |                                          |
    |                                          |
    |                                          |
    |                                          |
    --------------------------------------------
    

    Info:

     [......]  <-- form fields starts with '[' character, and ends with ']'
     xxx       <-- sample, static text
     | and _   <-- page borders
    

    If you want to detect the overflow in the final container, there is another thread discussed before.

    http://forums.Adobe.com/thread/795264

    You can detect it with lastContainerController.absoluteStart + lastContainerController.textLength «»<>

  • Best way to discover the top N

    Hi all

    Sorry to ask a question on Friday. I've had this issue for some time now, what is the best way to discover the first N?

    For example, how do you know top 10 Web hosts that have the highest use of CPU for a certain period of time.

    One way to do is to create a WCF application that returns topN HostCPUs order to use/period/average. When the interval is small, like the last hour, it works, but if I increase the time range from 1 day, the request will expire after 60 seconds. We have 500 + guests on this FMS. Not only we want to watch the hot servers right now, but also want to watch the hot servers say yesterday, or last month.

    Another way is to use groovy code below, when I use retrieveLatestValue to get the current value, it's fast, but if I replace it with retrieveAggregate and make the time range for the previous 24 hours, it takes a few minutes to run.

    #! HostCPUs # .getTopologyObjects (extinguish) {a, b->

    go = server. DataService.retrieveLatestValue (a 'use'). value?. AVG

    If (goes == null)

    go = 0

    VB = server. DataService.retrieveLatestValue (b, 'use'). value?. AVG

    If (vb is nothing)

    VB = 0

    VA - vb > 0? 0: 1

    } .subList (0, 10)

    Then, of course, these are not very effective. Is there a better way to get this top N list I'm looking for?

    Thank you

    Xiaoning

    Here is an example of the batch api to query the memory of the virtual machine, and then I take action on a specific period of time.

    import com.quest.nitro.service.sl.interfaces.data.IDataService;

    import com.quest.nitro.service.sl.interfaces.data.ObservationQuery;

    import com.quest.nitro.model.topology.TopologyObject;

    import com.quest.nitro.service.sl.ServiceLocatorFactory;

    Import org.apache.log4j.Logger;

    def LOG = Logger.getLogger ("batch.query.test");

    topologyObjects = new HashSet (#!) VMWVirtualMachineMemory # .topologyObjects);

    Log.info ("topology objects querying ${topologyObjects.size ()}...");

    endTime = System.currentTimeMillis ();

    startTime = endTime - (4 * 60 * 60 * 1000 L);

    IDataService dataSvc is ServiceLocatorFactory.getLocator () .getDataService ();.

    Query ObservationQuery = dataSvc.createObservationQuery ();

    query.setStartTime (startTime);

    query.setEndTime (endTime);

    Query.include (topologyObjects, "active");

    Query.include (topologyObjects, "affected");

    Query.include (topologyObjects, "zero");

    result = dataSvc.performQuery (query);

    long term = System.currentTimeMillis () - endTime;

    Log.info ("request completed in ${duration} ms.");

  • What is the best way to move the data from the app and Server data structures?

    Hi guys,.

    I developed my application locally with Apex 4.2 and Oracle 11 g XE on Windows 7. Not far away, it is time to move the application to a server Oracle Apex. I guess that Exim is the way to go app. But what about the APA tables and data (tables/as 'customer' and 'account' created specially for the application)? I've been using a modeling tool, so I can run a DDL script to create the database server data structures. What is the best way to move the application data on the server? Is it possible to move the structures and data in a single process?

    Thank you
    Kim

    There is probably another way to get here, but in Developer SQL, on the navigation tree, expand objects until your table, right-click, and then click EXPORT... you will see all the options. It is a tedious process and it sucks IMO, but yes, it works. This is zero especially because 1) it's a table at a time, 2) If your data model is robust and has constraints and sequences and triggers, then you will need to disable all for the insert and we hope you can re-enable constraints, etc. without hitch (good luck, unless you have only a handful of tables)

    I prefer to use the oracle EXP command-line to export an entire schema, then the server target, I use IMP to import the schema. In this way, it is almost true. This makes the dirty life if you develop multiple applications in a single schema, and I felt pain - however - it is much easier to drop the tables and other objects is to create them! (thus, even if the process of EXP/IMP moved more than you wanted to "move".. blow everything you don't want on the target after the fact...)

    You can use method datapump oracle too.

    If not, what can be done, IF you have access to both servers of your instance of SQL developer (or if you can tnsping both already from the command line, you can use SQL * MORE), is to run a script that will identify the objects of your applications apex (usually by the prefix for the names of objects, such as % EBA_PROJ_ etc.) and do all the manual work for you. I've created a script that does just that so that I can pass data from dev to prod servers on a dblink. It is difficult because of the order that must be executed to disable constraints and then turn it back on and of course, more complicated if don't always precede you ALL your "objects demand '... (tables, views, triggers, sequences, functions, procs, indexes, etc.)

  • Best way to extend the partition?

    Do you have a Server 2003 P2V to new hardware.  I used Acronis to clone the server cold, created a new virtual machine, restored to the virtual machine with Acronis, configured with VMWare Converter and then add the VMWare tools, etc.  Everything seems to be fine, except the food not extend the partition.

    I put a partition of 100 GB for the virtual machine, but restoring recreated the original score of 68 GB and another 'unallocated' 31 GB.

    What is the best way to extend the partition, so we can use all of the 100 GB?

    Thank you for your time.

    If a C: partition, you can use extpart, but a c partition: no, you can use the construction in the diskpart tool and extend. With one exception: If you have multiple partitions on a single HARD disk, you will need to use VMware Converter.

  • Best way to adjust the lighting in the video clips

    Is there a 'best' way to adjust the lighting conditions in a video clip?  I have a clip with terrible lighting conditions and can not remove the scenario.

    While I don't expect a perfect solution, I hope that there are approaches better than those I serve.  If the recommendations include third-party plugins, I would appreciate hearing about them, as well.

    I have been using the corrector, gamma and luminance correction filters.  Adjustments of corrector gamma in higher values, but seems to only work by discrete steps.  So, if the gamma should be entered upwards or downwards in a clip, there is a very visible and sometimes jarring visual effect.  The luma corrector seems to only be able to increase the brightness level (thanks to a combination of all the variables of 5 or 6, including brightness, gain, gamma, etc.) before the clip appears washed out.

    Thank you

    Steve

    All the CC and grading should begin with 'levels '.

    You could then enter the 3 - Way Color Correction.

    You can also watch a more powerful CC such as 2 Colorista

  • What is the best way to place the image (with legend) in a book?

    I am preparing a model for an encyclopedia project, the encyclopedia will be in addition to 10000 pages, so what is the best way to place the images (Photos, graphic illustration,... etc) with a legend?

    The problem that when I change the text; the image does not move with it, and when I place it in the text, it is difficult to control text flow.

    Please help

    I think so, but it can be a little weird, if the position of the anchor is on the second page of a two page spread. Really, I jumped in to suggest the image and the legend of consolidation before anchoring.

  • Need help: best way to exchange the Ipads?

    Dear all,

    Need help a genre:

    I use Ipad Air2 and my father is using retina Ipad Mini... I gifted him before 2 years...!

    We thought to share the Ipads because he loved the biggest... Can someone guide what is the best way to swap the parameters of the iPad?

    It is by taking backup and restore from Icloud? There will be data loss? or anything else that needs attention (something that he needed to be reconfigured)?

    Any help is very appreciated!

    Make a backup of each individual iPad. Use your own accounts: How to back up your device using iCloud or iTunes - Apple Support

    Import your photos from each iPad: import pictures and videos from your iPad, iPhone or iPod touch to your computer - Apple Support

    Then do it on every iPad: what to do before you sell or give away your iPhone, iPad or iPod touch - Apple Support

    Then restore the backup in your 'new' ipads: restore your device from an iCloud or iTunes backup - Apple Support

    If the ipads have the same size of storage with the same iOS version, it should work fine. -AJ

  • How to check the memory usage of cash L2?

    How can I check if my processor uses cash L2 memory?
    How to activate it?
    How to know how much it is?
    My laptop is satellite MX30-113.

    Hello

    Unfortunately I can't tell you much, but I found an interesting tool for editing memory. He called the Elcor V3.3. If you wish, you can see all the features of the tool. Maybe it will give you more information on the memory usage.

  • best way to clear the cache on an iMac 2011 - el capitan

    best way to clear the cache on an iMac 2011 - el capitan

    The best way is not for everyone. Clear the caches unnecessarily makes your computer run more slowly while they are rebuilt. Did you have a specific problem that you thought that clearing cache can solve? If so, post on the real problem.

  • What is the best way to use the Y50-70 battery please?

    I bought the laptop y50-70

    but I want to know what is the best method to use the battery.

    and the best way to recharge.

    NOTE *.

    IAM always use the cable and I gave the battery except a few times.

    Thank you very much..

    Best way to use the battery, if your laptop should ALWAYS be connected in-

    Go to eat energy Lenovo - should be a RED icon in the system tray - and choose the mode for a better health of the battery (or battery Protection or health of battery optimized mode).

    I don't know what the energy Manager version you have, but the option must seem similar. What it does is, it will keep your battery charged ONLY up to 60 percent and will increase its service life.

  • Photon: Best way to snap the back cover in place?

    What is the best way to put the cover back on? What sequence I use, it seems that one of the plastic snaps is not committed.

    There are instructions inside the battery cover. You start at the bottom and work your way up to the left and the right. That being said, check the clips on your lid and make sure that one of them is not folded. This happened to me the first day I bought the phone. I had to get a new one from the Sprint Store. Do not force the clip if it is wrong. I think that's how mine has folded.

  • Best way to charge the battery

    Can someone tell me which is the best way to increase the autonomy?

    Is it a good idea to let the battery charge even after it displays 100%?

    Hi Matt,

    Please take a look at battery care discussions in this son...

    http://forums.Lenovo.com/T5/idea-Windows-based-tablets-and/how-to-protect-the-Yoga-13-battery/TD-p/1...

    http://forums.Lenovo.com/T5/IdeaPad-Y-U-V-Z-and-P-series/Z500-how-to-stop-using-battery-when-plugged...

    Zehn

Maybe you are looking for

  • force itunes game

    How can I force scan to match itunes? There is no option in the Store menu ---- What happens if I add new music to my library?I say iTunes Match to scan? No iTunes game will be automatically analyze of new content, so you don't have to. But you can f

  • Re: Satellite A205-S5000 - restore to out of box

    I have a Satellite A205-S5000 & I want to restore it to out of box. I can see the "Toshiba System Volume" when I try to create a restore point, but I can't my machine to go to do the restore. Any advice will be greatly appreciated.Thanks Dave1958

  • How to clean the fans of my Satellite A100

    Hi, I have a problem with my A100.He is always overheating and heat real. I think there is a lot of dust inside.Now, I want to know what is the best way to get this dust on my laptop... Is it possible to open the suitcase, so I could clean it up? A f

  • Y at - it a site of troubleshooting I can refer for Officejet Pro 6830

    I was wondering is there any site that I can refer to see the solution to the problem seen to 6830. BKC Although I work for HP, I am speaking for myself, not HP.

  • Pavilion dv2700tv: memory upgrade

    BTW, my Pavilion dv2700tv processor is core 2 duo Intel 9300 2.5 mhz, 6 MB of L2 cache. Can I place DDR2 DDR3 memory? Thank you Pogostyx