X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=README.md;h=0e8bd5f0f339504a11ae02a0d902e0c549bc4474;hb=7c5787015c28b2c551bbd1016512fcb8baf5d3e8;hp=2bb3011ee342309d6aa2c9ff1075eaa63ac96499;hpb=4ed0c97b543f69caac452b7775a5ca57d017637a;p=profiler-torch.git diff --git a/README.md b/README.md index 2bb3011..0e8bd5f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,12 @@ 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. @@ -9,12 +15,8 @@ It replaces functions specified in functionsToDecorate by instrumented versions 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. +### profiler.print(model, [nbSamples], [totalTime]) ### -It seems to work okay, but there was no heavy testing so far. +Prints the measured processing times. If nbSamples is provided, the time per samples will also be printed. If totalTime is not provided, the total at the top is used. --- -Francois Fleuret -Dec 5th, 2016 +Non-Containers are hilighted with a '*' or in red.