-
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 function16 files
Added traced bubble sort functions and class methodsIntroduced multithreaded sorter using traced bubble sortAdded computation and pairwise products with sorter callAdded traced process and sort function variantNew module for managing benchmark trace data via SQLiteIntroduced codeflash_trace decorator implementationAdded transformer to instrument functions with codeflash_traceAdded a pytest plugin to integrate Codeflash benchmark tracingNew script to run benchmark tests and record trace dataAdded replay test generation from captured benchmark trace dataAdded function to trigger benchmark tracing via subprocessAdded utilities to process and display benchmark timing dataEnhanced static method detection for functions to optimizeUpdated explanation to include benchmark details informationIntegrated benchmark timing and replay test data into optimizationEnhanced optimizer to run benchmarks and generate replay tests9 files
Added benchmark tests for traced bubble sort functionalityAdded benchmark tests for process and sort traced functionsAdded multithread benchmark test for sorter functionAdded additional tests for bubble sort trace decoratorAdded replay and benchmark tests for process and sort functionsAdded tests for codeflash_trace decorator functionalityAdded tests for AST-based instrumentation of codeflash_trace decoratorAdded tests to validate benchmark trace and replay test generationUpdated unit test discovery to handle benchmark test exclusion2 files
Extended CLI arguments to support benchmark optionsIntegrated benchmarks-root into configuration parser10 files