Bug 751034 part 2 - Add profiler actor when adding the browser actors. r=past
authorMike Hommey <mh+mozilla@glandium.org>
Thu, 13 Sep 2012 14:40:16 +0200
changeset 107598 f11a44846f265dea7c7fb64dd231b58218d7b037
parent 107597 d8921aee4a5deb90e58e50335bbf20858a695bb6
child 107599 f0a944193de7d52a41846f43652658c6896f486e
push id82
push usershu@rfrn.org
push dateFri, 05 Oct 2012 13:20:22 +0000
reviewerspast
bugs751034
milestone18.0a1
Bug 751034 part 2 - Add profiler actor when adding the browser actors. r=past
toolkit/devtools/debugger/server/dbg-server.js
--- a/toolkit/devtools/debugger/server/dbg-server.js
+++ b/toolkit/devtools/debugger/server/dbg-server.js
@@ -167,16 +167,18 @@ var DebuggerServer = {
     loadSubScript.call(this, aURL);
   },
 
   /**
    * Install Firefox-specific actors.
    */
   addBrowserActors: function DH_addBrowserActors() {
     this.addActors("chrome://global/content/devtools/dbg-browser-actors.js");
+    if ("nsIProfiler" in Ci)
+      this.addActors("chrome://global/content/devtools/dbg-profiler-actors.js");
   },
 
   /**
    * Listens on the given port for remote debugger connections.
    *
    * @param aPort int
    *        The port to listen on.
    */