- * ';
- * }
- *
- * $benchmark->run(100, 'foo', 'test');
- * $result = $benchmark->get();
- * ?>
- *
- *
- * Example 2
- *
- *
- * ';
- * }
- * }
- *
- * $benchmark->run(100, 'myclass::foo', 'test');
- * $result = $benchmark->get();
- * ?>
- *
- *
- * Example 3
- *
- *
- * ';
- * }
- * }
- *
- * $o = new MyClass();
- *
- * $benchmark->run(100, 'o->foo', 'test');
- * $result = $benchmark->get();
- * ?>
- *
- *
- * @author Sebastian Bergmann
+ * ';
+ * }
+ *
+ * $benchmark->run(100, 'foo', 'test');
+ * $result = $benchmark->get();
+ * ?>
+ *
+ *
+ * Example 2
+ *
+ *
+ * ';
+ * }
+ * }
+ *
+ * $benchmark->run(100, 'myclass::foo', 'test');
+ * $result = $benchmark->get();
+ * ?>
+ *
+ *
+ * Example 3
+ *
+ *
+ * ';
+ * }
+ * }
+ *
+ * $o = new MyClass();
+ *
+ * $benchmark->run(100, 'o->foo', 'test');
+ * $result = $benchmark->get();
+ * ?>
+ *
+ *
+ * @author Sebastian Bergmann
- * enterSection('myFunction');
- * //do something
- * $profiler->leaveSection('myFunction');
- * return;
- * }
- *
- * //do something
- * myFunction();
- * //do more
- * ?>
- *
- *
- * Example 2: Manual profiling start, stop, and output.
- *
- *
- * enterSection('myFunction');
- * //do something
- * $profiler->leaveSection('myFunction');
- * return;
- * }
- *
- * $profiler->start();
- * //do something
- * myFunction();
- * //do more
- * $profiler->stop();
- * $profiler->display();
- * ?>
- *
- *
- * @author Matthias Englert total ex. time | '. - 'netto ex. time | '. - '#calls | % | '. - 'calls | callers | ||
$name | {$values['time']} | {$values['netto_time']} | {$values['num_calls']} | "; - if (is_numeric($values['percentage'])) { - $out .= "{$values['percentage']}% | \n"; - } else { - $out .= "{$values['percentage']} | \n"; - } - $out .= "$calls_str | $callers_str |
+ * enterSection('myFunction');
+ * //do something
+ * $profiler->leaveSection('myFunction');
+ * return;
+ * }
+ *
+ * //do something
+ * myFunction();
+ * //do more
+ * ?>
+ *
+ *
+ * Example 2: Manual profiling start, stop, and output.
+ *
+ *
+ * enterSection('myFunction');
+ * //do something
+ * $profiler->leaveSection('myFunction');
+ * return;
+ * }
+ *
+ * $profiler->start();
+ * //do something
+ * myFunction();
+ * //do more
+ * $profiler->stop();
+ * $profiler->display();
+ * ?>
+ *
+ *
+ * @author Matthias Englert total ex. time | '. + 'netto ex. time | '. + '#calls | % | '. + 'calls | callers | ||
$name | {$values['time']} | {$values['netto_time']} | {$values['num_calls']} | "; + if (is_numeric($values['percentage'])) { + $out .= "{$values['percentage']}% | \n"; + } else { + $out .= "{$values['percentage']} | \n"; + } + $out .= "$calls_str | $callers_str |
- * setMarker('Marker 1');
- * ?>
- *
- *
- * Example 2: Manual profiling start, stop, and output.
- *
- *
- * start();
- * $timer->setMarker('Marker 1');
- * $timer->stop();
- *
- * $timer->display(); // to output html formated
- * // AND/OR :
- * $profiling = $timer->getProfiling(); // get the profiler info as an associative array
- * ?>
- *
- *
- * @author Sebastian Bergmann time index | ex time | % | '. - ($showTotal ? - 'elapsed | % | ' - : '')."|
" . $v['name'] . - " | " . $v['time'] . - " | " . $v['diff'] . - " | " . number_format($perc, 2, '.', '') . - "% | ". - ($showTotal ? - "" . $v['total'] . - " | " . - number_format($tperc, 2, '.', '') . - "% | " : ''). - "
total | - | ${total} | 100.00% | ".($showTotal ? "- | - | " : "")."
+ * setMarker('Marker 1');
+ * ?>
+ *
+ *
+ * Example 2: Manual profiling start, stop, and output.
+ *
+ *
+ * start();
+ * $timer->setMarker('Marker 1');
+ * $timer->stop();
+ *
+ * $timer->display(); // to output html formated
+ * // AND/OR :
+ * $profiling = $timer->getProfiling(); // get the profiler info as an associative array
+ * ?>
+ *
+ *
+ * @author Sebastian Bergmann time index | ex time | % | '. + ($showTotal ? + 'elapsed | % | ' + : '')."|
" . $v['name'] . + " | " . $v['time'] . + " | " . $v['diff'] . + " | " . number_format($perc, 2, '.', '') . + "% | ". + ($showTotal ? + "" . $v['total'] . + " | " . + number_format($tperc, 2, '.', '') . + "% | " : ''). + "
total | - | ${total} | 100.00% | ".($showTotal ? "- | - | " : "")."