Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14840272
D7482.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
839 B
Referenced Files
None
Subscribers
None
D7482.diff
View Options
Index: src/applications/conduit/call/ConduitCall.php
===================================================================
--- src/applications/conduit/call/ConduitCall.php
+++ 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
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 2, 4:53 AM (16 h, 4 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7081648
Default Alt Text
D7482.diff (839 B)
Attached To
Mode
D7482: Record Conduit calls in the service profiler
Attached
Detach File
Event Timeline
Log In to Comment