Changeset View
Changeset View
Standalone View
Standalone View
src/future/Future.php
| Show First 20 Lines • Show All 109 Lines • ▼ Show 20 Lines | private function startServiceProfiler() { | ||||
| // available. | // available. | ||||
| if (!class_exists('PhutilServiceProfiler')) { | if (!class_exists('PhutilServiceProfiler')) { | ||||
| return; | return; | ||||
| } | } | ||||
| $params = $this->getServiceProfilerStartParameters(); | $params = $this->getServiceProfilerStartParameters(); | ||||
| if ($params === null) { | |||||
| return; | |||||
| } | |||||
| $profiler = PhutilServiceProfiler::getInstance(); | $profiler = PhutilServiceProfiler::getInstance(); | ||||
| $call_id = $profiler->beginServiceCall($params); | $call_id = $profiler->beginServiceCall($params); | ||||
| $this->serviceProfilerCallID = $call_id; | $this->serviceProfilerCallID = $call_id; | ||||
| } | } | ||||
| private function endServiceProfiler() { | private function endServiceProfiler() { | ||||
| $call_id = $this->serviceProfilerCallID; | $call_id = $this->serviceProfilerCallID; | ||||
| ▲ Show 20 Lines • Show All 128 Lines • Show Last 20 Lines | |||||