Page MenuHomePhabricator

D7482.diff

diff --git a/src/applications/conduit/call/ConduitCall.php b/src/applications/conduit/call/ConduitCall.php
--- a/src/applications/conduit/call/ConduitCall.php
+++ b/src/applications/conduit/call/ConduitCall.php
@@ -79,6 +79,25 @@
}
public function execute() {
+ $profiler = PhutilServiceProfiler::getInstance();
+ $call_id = $profiler->beginServiceCall(
+ array(
+ 'type' => 'conduit',
+ 'method' => $this->method,
+ ));
+
+ try {
+ $result = $this->executeMethod();
+ } catch (Exception $ex) {
+ $profiler->endServiceCall($call_id, array());
+ throw $ex;
+ }
+
+ $profiler->endServiceCall($call_id, array());
+ return $result;
+ }
+
+ private function executeMethod() {
$user = $this->getUser();
if (!$user) {
$user = new PhabricatorUser();

File Metadata

Mime Type
text/x-diff
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/67/3l/b4vni4fknfdhoefo
Default Alt Text
D7482.diff (830 B)

Event Timeline