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

Closed
wants to merge 2 commits into from
Closed

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.

test/line_attribution_tests/line_after_final_alloc.py Dismissed Show dismissed Hide dismissed
test/line_attribution_tests/line_after_final_alloc.py Dismissed Show dismissed Hide dismissed
test/line_attribution_tests/loop_below_threshold.py Dismissed Show dismissed Hide dismissed
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.
test/line_attribution_tests/loop_with_multiple_lines.py Dismissed Show dismissed Hide dismissed
test/line_attribution_tests/loop_with_two_allocs.py Dismissed Show dismissed Hide dismissed
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.
test/smoketest_line_invalidation.py Dismissed Show dismissed Hide dismissed
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.

2 participants