Skip to content

Commit 44cdd92

Browse files
authored
windows fix of memory profiler (#14987)
when enabling memory profiler, use a directory name compatible with windows' filesystems
1 parent e1064fa commit 44cdd92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chia/util/profiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def analyze_slot_range(profile_dir: pathlib.Path, first: int, last: int):
158158

159159

160160
async def mem_profile_task(root_path: pathlib.Path, service: str, log: logging.Logger) -> None:
161-
profile_dir = path_from_root(root_path, f"memory-profile-{service}") / datetime.now().strftime("%Y-%m-%d_%H:%M:%S")
161+
profile_dir = path_from_root(root_path, f"memory-profile-{service}") / datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
162162
log.info("Starting memory profiler. saving to %s" % profile_dir)
163163
profile_dir.mkdir(parents=True, exist_ok=True)
164164

0 commit comments

Comments
 (0)