1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-22 14:52:40 +01:00

Update arcanist to use PhutilServiceProfiler.

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
This commit is contained in:
epriestley 2011-05-16 16:07:10 -07:00
parent 3edd525f83
commit ade681e0db

View file

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