- Notifications
You must be signed in to change notification settings - Fork 22
Codeflash trace decorator #59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
# Conflicts: # codeflash/optimization/optimizer.py # codeflash/tracer.py # codeflash/verification/test_results.py # codeflash/verification/verification_utils.py # pyproject.toml
# Conflicts: # codeflash/tracer.py
…ods, class methods, init. basic instrumentation logic for codeflash_trace done.
PR Reviewer Guide 🔍(Review updated until commit 77f43a5)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
# Conflicts: # codeflash/discovery/pytest_new_process_discovery.py
…codeflash --benchmark
…s flaky github actions test, as sometimes the machines allocated are different)
… its flaky with github action machines
PR Type
Enhancement, Tests
Description
Added codeflash_trace decorator for function instrumentation.
Introduced benchmark tracing with SQLite storage and replay tests.
Integrated a pytest plugin and CLI/config support for benchmarking.
Enhanced the optimizer pipeline to use benchmark and replay timing data.
Changes walkthrough 📝
1 files
Normalize return statement in bubble sort function
16 files
Added traced bubble sort functions and class methods
Introduced multithreaded sorter using traced bubble sort
Added computation and pairwise products with sorter call
Added traced process and sort function variant
New module for managing benchmark trace data via SQLite
Introduced codeflash_trace decorator implementation
Added transformer to instrument functions with codeflash_trace
Added a pytest plugin to integrate Codeflash benchmark tracing
New script to run benchmark tests and record trace data
Added replay test generation from captured benchmark trace data
Added function to trigger benchmark tracing via subprocess
Added utilities to process and display benchmark timing data
Enhanced static method detection for functions to optimize
Updated explanation to include benchmark details information
Integrated benchmark timing and replay test data into optimization
Enhanced optimizer to run benchmarks and generate replay tests
9 files
Added benchmark tests for traced bubble sort functionality
Added benchmark tests for process and sort traced functions
Added multithread benchmark test for sorter function
Added additional tests for bubble sort trace decorator
Added replay and benchmark tests for process and sort functions
Added tests for codeflash_trace decorator functionality
Added tests for AST-based instrumentation of codeflash_trace decorator
Added tests to validate benchmark trace and replay test generation
Updated unit test discovery to handle benchmark test exclusion
2 files
Extended CLI arguments to support benchmark options
Integrated benchmarks-root into configuration parser
10 files