'PhutilLintEngine' => 'lint/engine/PhutilLintEngine.php',
'PhutilUnitTestEngine' => 'unit/engine/PhutilUnitTestEngine.php',
'PhutilUnitTestEngineTestCase' => 'unit/engine/__tests__/PhutilUnitTestEngineTestCase.php',
+ 'TimerEventType' => 'events/constant/TimerEventType.php',
'UnitTestableArcanistLintEngine' => 'lint/engine/UnitTestableArcanistLintEngine.php',
),
'function' =>
'PhutilLintEngine' => 'ArcanistLintEngine',
'PhutilUnitTestEngine' => 'ArcanistBaseUnitTestEngine',
'PhutilUnitTestEngineTestCase' => 'ArcanistTestCase',
+ 'TimerEventType' => 'PhutilEventType',
'UnitTestableArcanistLintEngine' => 'ArcanistLintEngine',
),
));
if ($paths) {
$linter->willLintPaths($paths);
+ $profiler = PhutilServiceProfiler::getInstance();
foreach ($paths as $path) {
$linter->willLintPath($path);
- $linter->lintPath($path);
+ $call_id = $profiler->beginServiceCall(array(
+ 'type' => 'lint',
+ 'linter' => get_class($linter),
+ 'path' => $path,
+ ));
+ try {
+ $linter->lintPath($path);
+ } catch (Exception $ex) {
+ $profiler->endServiceCall($call_id, array());
+ throw $ex;
+ }
+ $profiler->endServiceCall($call_id, array());
if ($linter->didStopAllLinters()) {
$this->stopped[$path] = $linter_name;
}