Skip to content

Commit ea4e2de

Browse files
Merge branch 'main' into add-one-more-exception-guard
2 parents 3fd0acd + d3bd858 commit ea4e2de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/optimizing-with-codeflash/trace-and-optimize.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
sidebar_position: 4
33
---
4-
# Optimize Workflows End-to-End.
4+
# Optimize Workflows End-to-End
55

66
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.
77

@@ -11,7 +11,7 @@ To optimize a script, `python myscript.py`, replace `python` with `codeflash opt
1111
codeflash optimize myscript.py
1212
```
1313

14-
To optimize code within pytest tests that you could normally run like `python -m pytest tests/`, use this command:
14+
To optimize code called by pytest tests that you could normally run like `python -m pytest tests/`, use this command:
1515

1616
```bash
1717
codeflash optimize -m pytest tests/

0 commit comments

Comments
 (0)