Add a step function to the profiler to easily switch to another event of the same...
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 10 Nov 2007 23:36:19 +0000 (00:36 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 10 Nov 2007 23:36:19 +0000 (00:36 +0100)
commit41e0835d1792f362e6c1e1289df000a1a9475092
tree3f6fcf1f347e9975a914b7c20f416516e3d3285b
parent1706db6822f7425cc673a348f98e90b74d0194ab
Add a step function to the profiler to easily switch to another event of the same category.

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>
classes/plprofiler.php