diff --git a/resources/celerity/map.php b/resources/celerity/map.php --- a/resources/celerity/map.php +++ b/resources/celerity/map.php @@ -23,7 +23,7 @@ 'rsrc/audio/basic/tap.mp3' => 'fc2fd796', 'rsrc/audio/basic/ting.mp3' => '17660001', 'rsrc/css/aphront/aphront-bars.css' => '231ac33c', - 'rsrc/css/aphront/dark-console.css' => 'f7b071f1', + 'rsrc/css/aphront/dark-console.css' => '0e14e8f6', 'rsrc/css/aphront/dialog-view.css' => '6bfc244b', 'rsrc/css/aphront/list-filter-view.css' => '5d6f0526', 'rsrc/css/aphront/multi-column.css' => '84cc6640', @@ -518,7 +518,7 @@ 'symbols' => array( 'almanac-css' => 'dbb9b3af', 'aphront-bars' => '231ac33c', - 'aphront-dark-console-css' => 'f7b071f1', + 'aphront-dark-console-css' => '0e14e8f6', 'aphront-dialog-view-css' => '6bfc244b', 'aphront-list-filter-view-css' => '5d6f0526', 'aphront-multi-column-view-css' => '84cc6640', diff --git a/src/applications/console/plugin/DarkConsoleServicesPlugin.php b/src/applications/console/plugin/DarkConsoleServicesPlugin.php --- a/src/applications/console/plugin/DarkConsoleServicesPlugin.php +++ b/src/applications/console/plugin/DarkConsoleServicesPlugin.php @@ -29,6 +29,18 @@ return false; } + public function didStartup() { + $should_analyze = self::isQueryAnalyzerRequested(); + + if ($should_analyze) { + PhutilServiceProfiler::getInstance() + ->setCollectStackTraces(true); + } + + return null; + } + + /** * @phutil-external-symbol class PhabricatorStartup */ @@ -266,6 +278,16 @@ $info, $analysis, ); + + if ($row['trace']) { + $rows[] = array( + null, + null, + null, + $row['trace'], + null, + ); + } } $table = new AphrontTableView($rows); @@ -274,7 +296,7 @@ null, 'n', 'n', - 'wide', + 'wide prewrap', '', )); $table->setHeaders( diff --git a/webroot/rsrc/css/aphront/dark-console.css b/webroot/rsrc/css/aphront/dark-console.css --- a/webroot/rsrc/css/aphront/dark-console.css +++ b/webroot/rsrc/css/aphront/dark-console.css @@ -104,6 +104,7 @@ font-size: 11px; background: #333333; color: #ffffff; + border-bottom: 0px; } .dark-console .aphront-table-view td { @@ -210,10 +211,10 @@ } .dark-console-panel-request-log-separator { - background-color: #e8e8e8; - border-bottom: 1px solid #b7b7b7; - border-top: 1px solid #b7b7b7; - height: 2px; + background-color: #e8e8e8; + border-bottom: 1px solid #b7b7b7; + border-top: 1px solid #b7b7b7; + height: 2px; } .dark-console-panel-ErrorLog {