Api

extern class flash.sampler.ApiAvailable in flash static inline function clearSamples() : Void static inline function getGetterInvocationCount( obj : Dynamic, qname : QName ) : Float static inline function getInvocationCount( obj : Dynamic, qname : QName ) : Float static inline function getLexicalScopes( fun : Dynamic ) : Array<Dynamic> static inline function getMasterString( s : String ) : String static inline function getMemberNames( obj : Dynamic, ?instanceNames : Bool ) : Dynamic<QName> static inline function getSampleCount() : Float static inline function getSamples() : Array<Sample> static inline function getSavedThis( fun : Dynamic ) : Dynamic static inline function getSetterInvocationCount( obj : Dynamic, qname : QName ) : Float static inline function getSize( obj : Dynamic ) : Float static inline function isGetterSetter( obj : Dynamic, qname : QName ) : Bool static inline function pauseSampling() : Void static inline function sampleInternalAllocs( b : Bool ) : Void static inline function setSamplerCallback( callb : Dynamic ) : Void static inline function startSampling() : Void static inline function stopSampling() : Void
version #16133, modified 2013-02-24 23:47:42 by api
1 comment
  • Asger Ottar Alstrup
    Nov 24, 2008 at 12:16

    This getSamples() API is not useful in Haxe, it seems. There seems to be no way to inspect the resulting type. This is very unfortunate, because this is the best way to find memory leaks in Flash applications.