Skip to content

Commit 5b68d6c

Browse files
Merge pull request #2 from Infinitode/performance-improvements-2593247129860680153
Performance improvements for function and line-by-line profiling
2 parents ac50599 + 052b7e7 commit 5b68d6c

2 files changed

Lines changed: 182 additions & 147 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)