Skip to content

Commit 052b7e7

Browse files
Add performance improvements and update README for v1.2.0
- Pre-fetch and cache function metadata (inspect calls) at decoration time. - Use code object identity comparison in line-by-line trace function. - Implement buffered logging for shared logs to reduce I/O overhead. - Handle trace 'return' event for accurate last-line profiling. - Optimize string building in HTML exports using list joins. - Delay expensive string conversions for arguments and return values. - Minimize redundant time.strftime calls. - Update README.md with v1.2.0 changelog. Co-authored-by: Infinitode <107624055+Infinitode@users.noreply.github.com>
1 parent 68fc92c commit 052b7e7

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@
77

88
An open-source Python library for identifying bottlenecks in code. It includes function profiling, data exports, logging, and line-by-line profiling for more granular control.
99

10+
## Changelog (v.1.2.0):
11+
- Significant performance improvements for both function and line-by-line profiling.
12+
- Cached function metadata at decoration time to reduce overhead during execution.
13+
- Optimized line-by-line tracing using code object identity comparison.
14+
- Implemented buffered logging for shared logs to minimize frequent file I/O.
15+
- Improved trace accuracy by properly capturing the final line's execution time.
16+
- Refactored export logic for more efficient report generation.
17+
1018
## Changelog (v.1.1.0):
1119
- Added support for 2 new export formats: `yaml` and `toml`.
1220
- Exports now include more information: peak memory usage, timestamp, arguments, return value, filepath, line number, and docstring.

0 commit comments

Comments
 (0)