From: Francois Fleuret Date: Mon, 5 Dec 2016 10:00:48 +0000 (+0100) Subject: Initial commit. X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=profiler-torch.git;a=commitdiff_plain;h=c5f157246787d3b10e88ccd5a90f434d09d92e49;hp=ac1c4d6fc4926dadc6b69fd17a54419e403530a6 Initial commit. --- diff --git a/README.md b/README.md new file mode 100644 index 0000000..45ca396 --- /dev/null +++ b/README.md @@ -0,0 +1,18 @@ + +This is a simple profiler to estimate processing time per module per function. One should call + + profiler.decorate(model[, functionsToDecorate]) + +before starting the computation. It will replace functions specified in functionsToDecorate by instrumented versions which keep track of computation times. If functionsToDecorate is not provided, it will decorate by default updateOutput and backward. + +When the computation is over. + + profiler.print(model[, nbSamples]) + +will print 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. + +-- +Francois Fleuret +Dec 5th, 2016