Skip to content

Commit 8b153ac

Browse files
committed
Update script
1 parent 8ea5288 commit 8b153ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/profiling/profile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
import typer
66

77

8-
def profile(repo: str, memory: bool = False):
8+
def profile(repo: str, memory: bool = False, extra_repos: bool = True):
99
type = "mem" if memory else "cpu"
1010
base = f".profiles/{type}/{repo}"
1111
os.makedirs(base, exist_ok=True)
1212
output = f"{base}/raw.austin"
1313
compressed = f"{base}/compressed.austin"
1414
image = f"{base}/parse.svg"
15-
test = Popen(["pytest", "tests/integration/codemod/test_parse.py", "--durations=100", "-k", repo])
15+
test = Popen(["pytest", "tests/integration/codemod/test_parse.py", "--durations=100", "-k", repo, "--extra-repos=True" if extra_repos else ""])
1616
try:
1717
command = ["sudo", "austin", "-p", str(test.pid), "-o", output]
1818
if memory:

0 commit comments

Comments
 (0)