Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15396183
D19221.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D19221.diff
View Options
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 {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 17, 12:33 PM (5 d, 21 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7706382
Default Alt Text
D19221.diff (2 KB)
Attached To
Mode
D19221: In "Analyze Query Plans" mode, collect service call stack traces in DarkConsole
Attached
Detach File
Event Timeline
Log In to Comment