@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<?php
2
3final class PhabricatorXHProfApplication extends PhabricatorApplication {
4
5 public function getBaseURI() {
6 return '/xhprof/';
7 }
8
9 public function getName() {
10 return pht('XHProf');
11 }
12
13 public function getShortDescription() {
14 return pht('PHP Profiling Tool');
15 }
16
17 public function getIcon() {
18 return 'fa-stethoscope';
19 }
20
21 public function getTitleGlyph() {
22 return "\xE2\x98\x84";
23 }
24
25 public function getApplicationGroup() {
26 return self::GROUP_DEVELOPER;
27 }
28
29 public function getRoutes() {
30 return array(
31 '/xhprof/' => array(
32 '' => 'PhabricatorXHProfSampleListController',
33 'list/(?P<view>[^/]+)/' => 'PhabricatorXHProfSampleListController',
34 'profile/(?P<phid>[^/]+)/' => 'PhabricatorXHProfProfileController',
35 'import/drop/' => 'PhabricatorXHProfDropController',
36 ),
37 );
38 }
39
40}