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

[Proton] Add warning in Proton viewer about negative byte values #4495

Merged
merged 4 commits into from
Aug 10, 2024

Conversation

CRobeck
Copy link
Contributor

@CRobeck CRobeck commented Aug 9, 2024

No description provided.

@CRobeck CRobeck requested a review from ptillet as a code owner August 9, 2024 16:53
@CRobeck CRobeck changed the title [Proton] Add warning in Proton view about negative byte values [Proton] Add warning in Proton viewer about negative byte values Aug 9, 2024
@CRobeck CRobeck force-pushed the proton-negative-byte-warning branch from 5ec6eaa to 2af8559 Compare August 9, 2024 17:00
@CRobeck
Copy link
Contributor Author

CRobeck commented Aug 9, 2024

@antiagainst @Jokeren

@CRobeck CRobeck force-pushed the proton-negative-byte-warning branch from 2af8559 to d86ef74 Compare August 9, 2024 20:05
@@ -187,6 +187,11 @@ def parse(metrics, filename, include, exclude, threshold, depth, format):
# TODO: generalize to support multiple metrics, not just the first one
gf = filter_frames(gf, include, exclude, threshold, metrics[0])
print(gf.tree(metric_column=metrics, expand_name=True, depth=depth, render_header=False))
if (f"bytes (inc)" in metrics):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. It could be just "bytes (inc)" right?
  2. No ( and ).
  3. Can you move the new code into a function? Maybe in the future we could have warnings for other metrics as well

Copy link
Contributor Author

@CRobeck CRobeck Aug 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't get what 2 was but I don't think we should remove the ( and ) around the entire if statement.



def emitWarnings(gf, metrics):
if ("bytes (inc)" in metrics):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why cannot we make it if "bytes (inc)" in metrics:?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK. Updated.

@CRobeck CRobeck force-pushed the proton-negative-byte-warning branch from 85525cf to 2336fb6 Compare August 9, 2024 23:16
@Jokeren Jokeren merged commit 23bf0e0 into triton-lang:main Aug 10, 2024
6 checks passed
@CRobeck CRobeck deleted the proton-negative-byte-warning branch August 23, 2024 14:14
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