Before: After:
PlProfiler::start("Machin", "truc"); PlProfiler::start("Machin", "truc");
do_truc(); do_truc();
PlProfiler::stop("Machin");
PlProfiler::start("Machin", "bidule"); PlProfiler::step("Machin", "bidule");
do_bidule(); do_bidule();
PlProfiler::stop("Machin"); PlProfiler::stop("Machin);
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
return true;
}
+ static public function step($name, $info = "action")
+ {
+ PlProfiler::stop($name);
+ PlProfiler::start($name, $info);
+ }
+
static public function stop($name)
{
global $globals;