You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/optimizing-with-codeflash/trace-and-optimize.mdx
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ Codeflash script optimizer can be used in three ways:
61
61
```
62
62
63
63
The above command should suffice in most situations.
64
-
To customize the trace file location you can specify it like `codeflash optimize -o trace_file_path.trace`. Otherwise, it defaults to `codeflash.trace` in the current working directory.
64
+
To customize the trace file location you can specify it like `codeflash optimize -o trace_file_path.sqlite3`. Otherwise, it defaults to `codeflash.sqlite3` in the current working directory.
65
65
66
66
2.**Trace and optimize as two separate steps**
67
67
@@ -70,7 +70,7 @@ Codeflash script optimizer can be used in three ways:
This will create a replay test file. To optimize with the replay test, run the
@@ -89,7 +89,7 @@ Codeflash script optimizer can be used in three ways:
89
89
```python
90
90
from codeflash.tracer import Tracer
91
91
92
-
with Tracer(output="codeflash.trace"):
92
+
with Tracer():
93
93
model.predict() # Your code here
94
94
```
95
95
@@ -106,6 +106,6 @@ Codeflash script optimizer can be used in three ways:
106
106
-`disable`: If set to `True`, the tracer will not trace the code. Default is `False`.
107
107
-`max_function_count`: The maximum number of times to trace a single function. More calls to a function will not be traced. Default is 100.
108
108
-`timeout`: The maximum time in seconds to trace the entire workflow. Default is indefinite. This is useful while tracing really long workflows, to not wait indefinitely.
109
-
-`output`: The file to save the trace to. Default is `codeflash.trace`.
109
+
Note: The trace file location is automatically determined and saved as a `.sqlite3` file.
110
110
-`config_file_path`: The path to the `pyproject.toml` file which stores the Codeflash config. This is auto-discovered by default.
111
111
You can also disable the tracer in the code by setting the `disable=True` option in the `Tracer` constructor.
0 commit comments