Page MenuHomePhabricator

excimer2trace.php

Authored By
Krinkle
Jan 23 2023, 10:25 PM
Size
585 B
Referenced Files
None
Subscribers
None

excimer2trace.php

<?php
$profiler = new ExcimerProfiler;
$profiler->setPeriod( 0.001 ); // every 1ms
$profiler->setEventType( EXCIMER_CPU );
$profiler->start();
register_shutdown_function( function () use ( $profiler ) {
$profiler->stop();
file_put_contents('trace.log', $profiler->getLog()->formatCollapsed() );
} );
KrinkleMac in ~/Development/less.php
$ docker run -it --rm --entrypoint /bin/bash --volume $PWD:$PWD docker-registry.wikimedia.org/releng/php81:0.2.0
nobody:/less.php# php -d auto_prepend_file=excimer2trace.php bin/lessc test/Fixtures/bootstrap-3.2/less/bootstrap.less out.css

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
10425904
Default Alt Text
excimer2trace.php (585 B)

Event Timeline