@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Record Conduit calls in the service profiler

Summary: This puts Conduit calls into the "Services" tab. They aren't always real service calls, but I think they're big enough to belong there and be useful.

Test Plan: Viewed "Services" tab, saw conduit calls.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Differential Revision: https://secure.phabricator.com/D7482

+19
+19
src/applications/conduit/call/ConduitCall.php
··· 79 79 } 80 80 81 81 public function execute() { 82 + $profiler = PhutilServiceProfiler::getInstance(); 83 + $call_id = $profiler->beginServiceCall( 84 + array( 85 + 'type' => 'conduit', 86 + 'method' => $this->method, 87 + )); 88 + 89 + try { 90 + $result = $this->executeMethod(); 91 + } catch (Exception $ex) { 92 + $profiler->endServiceCall($call_id, array()); 93 + throw $ex; 94 + } 95 + 96 + $profiler->endServiceCall($call_id, array()); 97 + return $result; 98 + } 99 + 100 + private function executeMethod() { 82 101 $user = $this->getUser(); 83 102 if (!$user) { 84 103 $user = new PhabricatorUser();