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() {
27 public function flush() {
32 private final function __construct() {
34 function formatCollapsed() {
36 function aggregateByFunction() {
38 function getEventCount() {
52 function offsetExists( $offset ) {
54 function offsetGet( $offset ) {
56 function offsetSet( $offset, $value ) {
58 function offsetUnset( $offset ) {
63 class ExcimerLogEntry
{
64 private final function __construct() {
66 function getTimestamp() {
68 function getEventCount() {
75 function setEventType( $event_type ) {
77 function setInterval( $interval ) {
79 function setPeriod( $period ) {
81 function setCallback( $callback ) {