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

Adds a memtrackable mixin for use in benchmarking. #8

Merged
merged 5 commits into from
Nov 21, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Made tests install memray.
mmcdermott committed Nov 20, 2024
commit 14e28eae3f0a1ab5c6e7a58b45622197366f86a9
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@ jobs:

- name: Install packages
run: |
pip install -e .[tests]
pip install -e .[tests,memtrackable]

#----------------------------------------------
# run test suite

Unchanged files with check annotations Beta

subprocess.run(memray_stats_cmd, shell=True, check=True, capture_output=True)
try:
return json.loads(memray_stats_fp.read_text())
except Exception as e:
raise ValueError(f"Failed to parse memray stats file at {memray_stats_fp}") from e

Check warning on line 50 in src/mixins/memtrackable.py

Codecov / codecov/patch

src/mixins/memtrackable.py#L49-L50

Added lines #L49 - L50 were not covered by tests
def __init__(self, *args, **kwargs):
self._mem_stats = kwargs.get("_mem_stats", defaultdict(list))