5 define( 'EXCIMER_REAL', 0 );
6 define( 'EXCIMER_CPU', 1 );
8 class ExcimerProfiler
{
9 public function __construct() {
11 public function setPeriod( $period ) {
13 public function setEventType( $event_type ) {
15 public function setMaxDepth( $maxDepth ) {
17 public function setFlushCallback( $callback, $max_samples ) {
19 public function clearFlushCallback() {
21 public function start() {
23 public function stop() {
25 public function getLog() : ExcimerLog
{
27 public function flush() {
32 private final function __construct() {
34 function formatCollapsed() {
39 function aggregateByFunction() {
44 function getEventCount() {
58 function offsetExists( $offset ) {
60 function offsetGet( $offset ) {
62 function offsetSet( $offset, $value ) {
64 function offsetUnset( $offset ) {
69 class ExcimerLogEntry
{
70 private final function __construct() {
72 function getTimestamp() {
74 function getEventCount() {
81 function setEventType( $event_type ) {
83 function setInterval( $interval ) {
85 function setPeriod( $period ) {
87 function setCallback( $callback ) {