This is a simple profiler to estimate processing time per module per function.
+It seems to work okay, but there was no heavy testing so far. See test-profiler.lua for a short example.
+
### profiler.decorate(model, [functionsToDecorate]) ###
This function should be called before starting the computation.
It also resets the accumulated timings to zero.
-### profiler.print(model, [nbSamples]) ###
-
-Prints the measured processing times. If nbSamples is provided, the time per samples will also be printed.
-
-It seems to work okay, but there was no heavy testing so far.
+### profiler.print(model, [nbSamples], [totalTime]) ###
---
-Francois Fleuret
-Dec 5th, 2016
+Prints the measured processing times. If nbSamples is provided, the time per samples will also be printed. If totalTime is provided, the percentages will also be printed.