From eea0f43b80da9c01f9dc70f6cb096199586069ff Mon Sep 17 00:00:00 2001 From: Torsten Dreyer Date: Tue, 15 Sep 2015 18:06:19 +0200 Subject: [PATCH] Phi: expose profiler-start/profiler-stop commands --- Phi/lib/fgcommand.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Phi/lib/fgcommand.js b/Phi/lib/fgcommand.js index 14b638aa9..213af5563 100644 --- a/Phi/lib/fgcommand.js +++ b/Phi/lib/fgcommand.js @@ -170,6 +170,14 @@ this.sendCommand("clear-metar", this.oneArg("path", path)); }, + profilerStart : function(filename) { + this.sendCommand("profiler-start", filename ? this.oneArg("filename", filename) : null ); + }, + + profilerStop : function() { + this.sendCommand("profiler-stop"); + }, + // not really commands, but very useful to get/set a single properties // value getPropertyValue : function(path, callback, context) {