X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=README.md;h=0e851f4f919f7826c751125dd1e5c964d6a7d2d3;hb=f59950ed20a2d471c59e2c23bc41b50111a54cd6;hp=24cf063fb475adb527cdc91200b41bef27c6e7a5;hpb=77fb30ba6143770ed71e68d89bde96c82ae8f1a0;p=profiler-torch.git diff --git a/README.md b/README.md index 24cf063..0e851f4 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,10 @@ 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.color ### + +This is a Boolean flag to state if the printing should be done in color. It is true by default. + ### profiler.decorate(model, [functionsToDecorate]) ### This function should be called before starting the computation. @@ -11,6 +15,8 @@ It replaces functions specified in functionsToDecorate by instrumented versions It also resets the accumulated timings to zero. -### profiler.print(model, [nbSamples]) ### +### profiler.print(model, [nbSamples], [totalTime]) ### + +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. -Prints the measured processing times. If nbSamples is provided, the time per samples will also be printed. +Non-Containers are hilighted with a '*' or in red.