Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Add memray plugin #2875
base: master
Are you sure you want to change the base?
Add memray plugin #2875
Changes from all commits
a9e6213
08562b6
d3a5b3c
2917fea
5e8f035
c9b903c
509ee63
77fcfdd
7744e45
7ed2420
45d9094
fab1c57
4b24228
4b4b371
c9fa064
8e67334
00f13ca
55350c6
d08cc59
14d5af0
53037b3
7b1c0bc
ed5cdaf
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To make it obvious that this is a directory for memray files:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With
pathlib
:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be completely sure we are using the memray that is installed in the current python environment:
It's unfortunate, that they do not document their Python API for writing reports, and only document using the CLI. So I'm okay with using the CLI from here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not actionable for this PR I wish there was a way to ensure that
enable_deck=True
when usingmemray_profiling
. Otherwise, we just add overhead without any reports.@eapolinario @pingsutw What do you think of making
deck_fields=None
and setenable_decks=True
?https://github.com/flyteorg/flytekit/blob/master/flytekit/core/task.py#L203-L210