-
-
Notifications
You must be signed in to change notification settings - Fork 399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PR to run CI pipeline #893
base: master
Are you sure you want to change the base?
Conversation
|
||
print(len(accum)) | ||
|
||
asdf = bytes(2 * 10485767) |
Check notice
Code scanning / CodeQL
Unused local variable Note test
print(len(accum)) | ||
|
||
asdf = bytes(2 * 10485767) | ||
some_dead_line = None |
Check notice
Code scanning / CodeQL
Unused local variable Note test
|
||
print(len(accum)) | ||
|
||
asdf = bytes(2 * 10485767) |
Check notice
Code scanning / CodeQL
Unused local variable Note test
accum = bytes() | ||
for i in range(31): | ||
accum += bytes(2 * 10485767) # 2x the allocation sampling window | ||
bogus = None |
Check notice
Code scanning / CodeQL
Unused local variable Note test
bogus = None | ||
print(len(accum)) | ||
|
||
asdf = bytes(2 * 10485767) |
Check notice
Code scanning / CodeQL
Unused local variable Note test
|
||
print(len(accum)) | ||
|
||
asdf = bytes(2 * 10485767) |
Check notice
Code scanning / CodeQL
Unused local variable Note test
import subprocess | ||
import tempfile | ||
import sys | ||
from typing import List |
Check notice
Code scanning / CodeQL
Unused import Note test
|
||
|
||
def get_profile(test_stem, outdir_p, test_dir): | ||
proc = subprocess.run( |
Check notice
Code scanning / CodeQL
Unused local variable Note test
# for stem, profile in [one_alloc, two_on_one_line, line_after_final_alloc]: | ||
# line = get_line(profile, LOOP_ALLOC_LINENO) | ||
# if not line.n_mallocs == N_LOOPS: | ||
# errors.append(f"Expected {N_LOOPS} distinct lines on {stem}, got {line.n_mallocs} on line {LOOP_ALLOC_LINENO}") |
Check notice
Code scanning / CodeQL
Commented-out code Note test
# if not bt_line.n_mallocs < N_LOOPS: | ||
# errors.append(f"{bt_stem} makes smaller allocations than the allocation sampling window, so fewer than {N_LOOPS} allocations on {LOOP_ALLOC_LINENO} should be reported. Got {bt_line.n_mallocs} mallocs") | ||
|
||
# for stem, profile in [one_alloc, two_on_one_line, below_threshold, line_after_final_alloc]: | ||
# line = get_line(profile, OUT_OF_LOOP_ALLOC_LINENO) | ||
# if not line.n_mallocs == 1: | ||
# errors.append(f'Line {OUT_OF_LOOP_ALLOC_LINENO} in {stem} makes a large allocation, so it should be reported.') |
Check notice
Code scanning / CodeQL
Commented-out code Note test
No description provided.