Skip to content

Releases: ancestor-mithril/timed-decorator

1.5.2

24 Sep 11:35
Compare
Choose a tag to compare

What's Changed

  • Timed decorator can now operate with torch.jit.ScriptFunctions in #7.

Full Changelog: 1.5.1...1.5.2

1.5.1

08 May 08:49
Compare
Choose a tag to compare

What's Changed

  • Added parameter to disable created decorator in #6.

Full Changelog: 1.5.0...1.5.1

1.5.0

02 May 19:40
99ed19c
Compare
Choose a tag to compare

What's Changed

  • Changing behavior of out parameter by in #5.
    • Previous behavior: if out is passed to the decorator, the elapsed time is stored in the dict using the fully qualified name as key.
    • New behavior: if out is passed to the decorator, the number of function calls, the elapsed time and the "own time" is stored using the fully qualified name as key.

Full Changelog: 1.4.0...1.5.0

1.4.0

01 May 09:04
18056f2
Compare
Choose a tag to compare

What's Changed

New parameter for using the fully qualified name of the function

  • The fully qualified name of the function (__qualname__) is used for logging when use_qualname is enabled.
  • The out parameter now uses the function's fully qualified name as key.

Added new facility for registering timed decorators and using the same decorator throughout the codebase

  • This allows creating a complicated timer which is also able to accumulate elapsed times from all the measured functions. It can be easily manipulated to create code statistics.

Full Changelog: 1.3.0...1.4.0

1.3.0

29 Apr 10:42
749266d
Compare
Choose a tag to compare

What's Changed

Diversified measuring and printing options.

  • Changed behavior when printing elapsed time
    • Previous behavior: elapsed time is either printed to stdout, written to file or to logger.
    • Current behavior: printing, logging and writing are not mutually exclusive anymore. Each is controlled by its own parameter.
  • Added new parameter for returning elapsed time in addition to the function's return value.
  • Updated classifiers in pyproject.toml.
  • Improved test speed.

Full Changelog: 1.2.2...1.3.0

1.2.2

27 Apr 18:24
4125870
Compare
Choose a tag to compare

What's Changed

  • Added option to write execution time to a dict.
  • Added option to disable garbage collection during function execution.

Full Changelog: 1.2.0...1.2.2

1.2.0

26 Apr 18:35
5cb12ec
Compare
Choose a tag to compare

Added new logging options.
Measurements can be logged to a file or to a logger using the python logging facilities.

Full Changelog: 1.1.1...1.2.0

First release

25 Apr 15:34
98e88e4
Compare
Choose a tag to compare