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
trace_optimize=subparsers.add_parser("optimize", help="Trace and optimize a Python project.")
27
+
27
28
fromcodeflash.tracerimportmainastracer_main
28
29
29
30
trace_optimize.set_defaults(func=tracer_main)
30
31
32
+
trace_optimize.add_argument(
33
+
"--max-function-count",
34
+
type=int,
35
+
default=100,
36
+
help="The maximum number of times to trace a single function. More calls to a function will not be traced. Default is 100.",
37
+
)
38
+
trace_optimize.add_argument(
39
+
"--timeout",
40
+
type=int,
41
+
help="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.",
42
+
)
43
+
trace_optimize.add_argument(
44
+
"--output",
45
+
type=str,
46
+
default="codeflash.trace",
47
+
help="The file to save the trace to. Default is codeflash.trace.",
48
+
)
49
+
trace_optimize.add_argument(
50
+
"--config-file-path",
51
+
type=str,
52
+
help="The path to the pyproject.toml file which stores the Codeflash config. This is auto-discovered by default.",
53
+
)
54
+
31
55
parser.add_argument("--file", help="Try to optimize only this file")
32
56
parser.add_argument("--function", help="Try to optimize only this function within the given file path")
0 commit comments