Skip to content

Commit

Permalink
added Telemetry (close HaxeFoundation#2535)
Browse files Browse the repository at this point in the history
  • Loading branch information
ncannasse committed Feb 19, 2015
1 parent cd38ec7 commit 30d319e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions std/flash/utils/Telemetry.hx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package flash.utils;

@:require(flash11_4) @:native("flash.profiler.Telemetry") extern class Telemetry extends flash.events.EventDispatcher {
static var connected(default,null) : Bool;
static var spanMarker(default,null) : Float;
static function registerCommandHandler(commandName : String, handler : Dynamic) : Bool;
static function unregisterCommandHandler(commandName : String) : Bool;
static function sendMetric(metric : String, value : Dynamic) : Void;
static function sendSpanMetric(metric : String, startMarker : Float) : Void;
}

0 comments on commit 30d319e

Please sign in to comment.