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

CustomWaterfall: add min functionality #3057

Merged
merged 3 commits into from
Jul 15, 2024

Conversation

jspurlin
Copy link
Contributor

Prior to this PR users could only set a max time to filter on when creating custom waterfalls. This meant that custom waterfalls always started at t=0 even if what you cared about didn't start until the t=5s mark

This PR adds the ability to optionally specify a min time to filter on in addition to setting a max and requests to filter on.

I verified that the custom filter scales correctly in app parts (Requests, CUP Utilization, Bandwidth, Browser Main Thread, and Long Tasks)

For example, if I care about the 5-10s range of the waterfall this is what it looks like

Before

image

After

image

This is a fix for Add ability to specify min/start time for custom waterfalls #3042

@jspurlin
Copy link
Contributor Author

@pmeenan / @vibaldem FYI, this PR is for #3042

@arthesh
Copy link

arthesh commented Apr 19, 2024

Tagging @mjkozicki , @claud-io , would appreciate if you could review this PR and provide feedback.

@pmeenan pmeenan requested review from pmeenan and mjkozicki April 19, 2024 21:21
Copy link
Contributor

@pmeenan pmeenan left a comment

Choose a reason for hiding this comment

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

LGTM.

Minimum time feels a bit off and Start seems more appropriate but given that the end is called Maximum it is appropriate to keep it aligned.

Thanks for doing this, it's been a long-standing request and I've been dreading going through the scaling code. The change looks nice and clean.

@jspurlin
Copy link
Contributor Author

@mjkozicki ...PING... Can you review (and merge if things look good)?

@jspurlin
Copy link
Contributor Author

@mjkozicki @claud-io ...PING, PING... Can you review (and merge if things look good)?

@claud-io
Copy link
Contributor

Hello @jspurlin we are testing it, will let you know once is done. Thanks

Copy link
Contributor

@claud-io claud-io left a comment

Choose a reason for hiding this comment

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

@jspurlin seems page sometimes break when min >= max or with neg numbers, can you please add check for those cases? thanks

@jspurlin
Copy link
Contributor Author

jspurlin commented Jun 4, 2024

@jspurlin seems page sometimes break when min >= max or with neg numbers, can you please add check for those cases? thanks

@claud-io Done. Also, I made sure to only use min if it was strictly < max, min === max isn't really valid. Making sure min > 0 was already being checked

@jspurlin jspurlin requested a review from claud-io June 4, 2024 20:53
@claud-io
Copy link
Contributor

claud-io commented Jun 5, 2024

@jspurlin thanks, going to start testing it

www/waterfall.inc Outdated Show resolved Hide resolved
Copy link
Contributor

@lbartoli79 lbartoli79 left a comment

Choose a reason for hiding this comment

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

We should not draw vertical lines on first column

image

Handle the case where max is not provided. Also make sure not to show page_events  < min_ms
@jspurlin
Copy link
Contributor Author

jspurlin commented Jun 10, 2024

We should not draw vertical lines on first column

image

@lbartoli79 Done. I've made sure to account for the case where min is provided but max is not and not to draw vertical lines < min_ms

@jspurlin jspurlin requested a review from lbartoli79 June 10, 2024 16:26
@jspurlin
Copy link
Contributor Author

jspurlin commented Jul 9, 2024

...PING...

@claud-io and @lbartoli79

@claud-io claud-io merged commit 7512a4f into catchpoint:master Jul 15, 2024
@claud-io claud-io mentioned this pull request Jul 15, 2024
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.

5 participants