From b51b6a967aa0081bd1391cc509cd5f9cd07af36d Mon Sep 17 00:00:00 2001 From: Saurabh Misra Date: Fri, 4 Jul 2025 13:28:04 -0700 Subject: [PATCH] small doc fix --- docs/docs/optimizing-with-codeflash/trace-and-optimize.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/optimizing-with-codeflash/trace-and-optimize.md b/docs/docs/optimizing-with-codeflash/trace-and-optimize.md index dd0ab203f..c5ca213fb 100644 --- a/docs/docs/optimizing-with-codeflash/trace-and-optimize.md +++ b/docs/docs/optimizing-with-codeflash/trace-and-optimize.md @@ -1,7 +1,7 @@ --- sidebar_position: 4 --- -# Optimize Workflows End-to-End. +# Optimize Workflows End-to-End Codeflash supports optimizing an entire Python script end-to-end by tracing the script's execution and generating Replay Tests. Tracing follows the execution of a script, profiles it and captures inputs to all called functions, allowing them to be replayed during optimization. Codeflash uses these Replay Tests to optimize all functions called in the script, starting from the most important ones. @@ -11,7 +11,7 @@ To optimize a script, `python myscript.py`, replace `python` with `codeflash opt codeflash optimize myscript.py ``` -To optimize code within pytest tests that you could normally run like `python -m pytest tests/`, use this command: +To optimize code called by pytest tests that you could normally run like `python -m pytest tests/`, use this command: ```bash codeflash optimize -m pytest tests/