Skip to content

Commit 3017ccf

Browse files
committed
100 max function calls before flushing to disk instead of 1000
1 parent 6c1a369 commit 3017ccf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

codeflash/benchmarking/codeflash_trace.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ def wrapper(*args, **kwargs):
160160
overhead_time, None, None)
161161
)
162162
return result
163-
# Flush to database every 1000 calls
164-
if len(self.function_calls_data) > 1000:
163+
# Flush to database every 100 calls
164+
if len(self.function_calls_data) > 100:
165165
self.write_function_timings()
166166

167167
# Add to the list of function calls with pickled args, to be used for replay tests

codeflash/picklepatch/pickle_placeholder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class PicklePlaceholder:
77
"""A placeholder for an object that couldn't be pickled.
88
99
When unpickled, any attempt to access attributes or call methods on this
10-
placeholder will raise an informative exception.
10+
placeholder will raise a PicklePlaceholderAccessError.
1111
"""
1212

1313
def __init__(self, obj_type, obj_str, error_msg, path=None):

0 commit comments

Comments
 (0)