Skip to content

Releases: JoaoBrlt/simple-profile

v1.1.2

15 Dec 17:46
Compare
Choose a tag to compare

Changelog:

  • Handle recursive functions properly with a single log message per top-level call.
  • Trigger garbage collection before measuring memory usage to get more accurate measurements.

v1.1.1

14 Dec 22:21
Compare
Choose a tag to compare

Changelog:

  • Fix time and memory unit conversion (invalid unit scales).
  • Automatically select the most suitable units by default.
  • Add a enable_gc argument to enable garbage collection during time measurements.
  • Add a GitHub Actions workflow to validate the package build on every modification.

v1.1.0

13 Dec 02:32
Compare
Choose a tag to compare

Changelog:

  • Restructure the package to improve maintainability.
  • Rename the default decorator back to @simple_profile() to avoid conflicts.
  • Change the default time unit to nanoseconds.
  • Change the default memory unit to bytes.
  • Add precision, time_precision and memory_precision arguments to set the precision of log values.
  • Add print_args and print_result arguments to log the functions arguments and result.
  • Add a separator argument to change the separator to use between log values.
  • Rename time_unit and memory_unit arguments to unit when possible to improve readability.
  • Document the package.

v1.0.2

13 Dec 02:23
Compare
Choose a tag to compare

Changelog:

  • Change the default time unit to milliseconds.
  • Change the default memory unit to megabytes.

v1.0.1

13 Dec 02:22
Compare
Choose a tag to compare

Changelog:

  • Change the name of the default decorator to @profile().

v1.0.0

13 Dec 02:21
Compare
Choose a tag to compare

Initial version of the package.