Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

PR to run CI pipeline #893

wants to merge 2 commits into from

Conversation

sternj
Copy link
Collaborator

@sternj sternj commented Nov 29, 2024

No description provided.


print(len(accum))

asdf = bytes(2 * 10485767)

Check notice

Code scanning / CodeQL

Unused local variable Note test

Variable asdf is not used.
print(len(accum))

asdf = bytes(2 * 10485767)
some_dead_line = None

Check notice

Code scanning / CodeQL

Unused local variable Note test

Variable some_dead_line is not used.

print(len(accum))

asdf = bytes(2 * 10485767)

Check notice

Code scanning / CodeQL

Unused local variable Note test

Variable asdf is not used.
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

Variable bogus is not used.
bogus = None
print(len(accum))

asdf = bytes(2 * 10485767)

Check notice

Code scanning / CodeQL

Unused local variable Note test

Variable asdf is not used.

print(len(accum))

asdf = bytes(2 * 10485767)

Check notice

Code scanning / CodeQL

Unused local variable Note test

Variable asdf is not used.
import subprocess
import tempfile
import sys
from typing import List

Check notice

Code scanning / CodeQL

Unused import Note test

Import of 'List' is not used.


def get_profile(test_stem, outdir_p, test_dir):
proc = subprocess.run(

Check notice

Code scanning / CodeQL

Unused local variable Note test

Variable proc is not used.
Comment on lines +84 to +87
# 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

This comment appears to contain commented-out code.
Comment on lines +91 to +97
# 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

This comment appears to contain commented-out code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant