Skip to main content
Inspiring
November 17, 2011
Question

Any native extension for checking memory and cpu/gpu usage of ios and android?

  • November 17, 2011
  • 1 reply
  • 1090 views

I need to be able to see how much memory/cpu/gpu an app uses while running for ios and android.

This topic has been closed for replies.

1 reply

TenchyMyoAuthor
Inspiring
November 17, 2011

Hmm, maybe it can be done with code already included in flash and adobe air, it seems... donno.. found stuff like:

freeMemory

property

freeMemory:Number  [read-only]

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 10.1, AIR 2

The amount of memory (in bytes) that is allocated to Adobe® Flash® Player or Adobe® AIR® and that is not in use. This unused portion of allocated memory (System.totalMemory) fluctuates as garbage collection takes place. Use this property to monitor garbage collection. 

Implementation

    public static function get freeMemory():Number

Related API Elements

donno how to use it...

TenchyMyoAuthor
Inspiring
November 17, 2011

Ok, got the memory part

trace(System.privateMemory / 1024);

cpu/gpu can't prolly be done without extensions... we'll see...