]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Update arcanist to use PhutilServiceProfiler.
authorepriestley <git@epriestley.com>
Mon, 16 May 2011 23:07:10 +0000 (16:07 -0700)
committerepriestley <git@epriestley.com>
Tue, 17 May 2011 00:09:54 +0000 (17:09 -0700)
Summary:
Switch to the new PhutilServiceProfiler API.

Test Plan:
Ran "arc" with "--trace", got mostly reasonable output. I'll clean up conduit
output in a followup.

Reviewed By: aran
Reviewers: aran, jungejason, tuomaspelkonen
CC: aran
Differential Revision: 292

scripts/arcanist.php

index c9031ecb95e31ab0b9d2129109f5c65f6fff857d..7eb37be33d5b39c2f781182569343423e9484c51 100755 (executable)
@@ -65,7 +65,7 @@ $args = array_values($args);
 try {
 
   if ($config_trace_mode) {
-    ExecFuture::pushEchoMode(true);
+    PhutilServiceProfiler::installEchoListener();
   }
 
   if (!$args) {
@@ -168,7 +168,6 @@ try {
         "Specify the Conduit URI for the host Differential is running on.");
     }
     $conduit = new ConduitClient($conduit_uri);
-    $conduit->setTraceMode($config_trace_mode);
     $workflow->setConduit($conduit);
 
     $hosts_config = idx($user_config, 'hosts', array());