add image and language update

This commit is contained in:
misrasaurabh1 2025-12-22 17:46:47 -08:00
parent 75095a683d
commit d49ad8f6cd
2 changed files with 4 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 279 KiB

View file

@ -6,9 +6,11 @@ sidebarTitle: "Optimize E2E Workflows"
keywords: ["tracing", "workflow optimization", "replay tests", "end-to-end", "script optimization", "context manager"]
---
Codeflash supports optimizing an entire Python script end-to-end by tracing the script's execution and generating Replay Tests.
Codeflash can optimize 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 functions it called, 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.
Codeflash uses these Replay Tests to optimize the most important functions called in the script, delivering the best performance for your workflow.
![Function Optimization](/images/priority-order.png)
To optimize a script, `python myscript.py`, simply replace `python` with `codeflash optimize` and run the following command: