Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F29603471
raw.txt
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
Krinkle
Jun 18 2019, 7:51 PM
2019-06-18 19:51:45 (UTC+0)
Size
971 B
Referenced Files
None
Subscribers
None
raw.txt
View Options
diff --git a/maintenance/generateLocalAutoload.php b/maintenance/generateLocalAutoload.php
index 19b7ee5a87..dca2574429 100644
--- a/maintenance/generateLocalAutoload.php
+++ b/maintenance/generateLocalAutoload.php
@@ -7,6 +7,8 @@ if ( PHP_SAPI != 'cli' && PHP_SAPI != 'phpdbg' ) {
require_once __DIR__ . '/../includes/AutoLoader.php';
require_once __DIR__ . '/../includes/utils/AutoloadGenerator.php';
+tideways_enable( TIDEWAYS_FLAGS_CPU | TIDEWAYS_FLAGS_MEMORY | TIDEWAYS_FLAGS_NO_BUILTINS );
+
// Mediawiki installation directory
$base = dirname( __DIR__ );
@@ -20,3 +22,12 @@ file_put_contents(
$fileinfo['filename'],
$generator->getAutoload( 'maintenance/generateLocalAutoload.php' )
);
+
+
+$data = tideways_disable();
+$mapped = array_map(function ($entry) { return $entry['wt']; }, $data);
+arsort($mapped);
+foreach($mapped as $method => $wt) {
+ echo "* $method (wt: " . number_format(floor($wt / 1000)) . " ms; ct: {$data[$method]['ct']})\n";
+}
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
7653250
Default Alt Text
raw.txt (971 B)
Attached To
Mode
P8629 Instrument generateLocalAutoload.php for T225730
Attached
Detach File
Event Timeline
Log In to Comment