Arquivos
hhvm/hphp/system/classes/XhprofFrame.php
T
Paul Tarjan 8eaa77f319 rejigger systemlib
I've always been a bit sad about having all classes in the same file to govern inclusion order. And the filenames didn't match the class names.

Instead, lets not rely on whatever order `find` returns, and instead hard-code the ordering of the system lib. I grouped the files by what extension they came from.
2013-06-03 23:54:26 -07:00

14 linhas
246 B
PHP

<?php
/**
* Helps application inserting an artificial frame in xhprof's reporting.
*/
class XhprofFrame {
public function __construct($name) {
xhprof_frame_begin($name);
}
public function __destruct() {
xhprof_frame_end();
}
}