Network graph improvements
This combines #492, #483, #484, and #473 and also fixes #532 by adding the ability to change between graph durations without losing the data (it's sampled at each interval). Also added is some graphical animations when the X or Y scale changes. (it might be necessary to make this optional on lower performing hardware, such as the raspberry pi).
One more feature is that the graph will start on the smallest duration, and automatically increase the graph duration once the graph is filled.
Some examples can be seen in my comment at https://github.com/bitcoin-core/gui/pull/539#issuecomment-1031852315
I'm expecting there may be issues with my coding style, so I'll create this PR as a draft at this stage.
What's the rationale for combining those PRs in this one?
On Thu, Feb 24, 2022 at 10:11 PM Rebroad @.***> wrote:
This combines #492 https://github.com/bitcoin-core/gui/pull/492, #483 https://github.com/bitcoin-core/gui/pull/483, #484 https://github.com/bitcoin-core/gui/pull/484, and #473 https://github.com/bitcoin-core/gui/pull/473 and also adds the ability to change between graph durations without losing the data (it's sampled at each interval). Also added is some graphical animations when the X or Y scale changes. (it might be necessary to make this optional on lower performing hardware, such as the raspberry pi).
Some examples can be seen in my comment at #539 (comment) https://github.com/bitcoin-core/gui/pull/539#issuecomment-1031852315
I'm expecting there may be issues with my coding style, so I'll create this PR as a draft at this stage.
You can view, comment on, or merge this pull request online at:
https://github.com/bitcoin-core/gui/pull/559 Commit Summary
- b2596f6 https://github.com/bitcoin-core/gui/pull/559/commits/b2596f64cfd53bae74011bc46333d36ed8e89ef0 Network Graph - Create y_value function
- 3626896 https://github.com/bitcoin-core/gui/pull/559/commits/3626896862a07f9c6b872c7b6f25207c3375e9c3 Add formatBytesps function
- 160ca84 https://github.com/bitcoin-core/gui/pull/559/commits/160ca84173add82937bae37a63d9ab6998920dc3 Show ToolTip on Network Traffic graph
- 2966636 https://github.com/bitcoin-core/gui/pull/559/commits/29666368dcb3b0fb8eaf86c2a1ebddf2be41de47 Don't clear graph when changing interval
- d7bdb90 https://github.com/bitcoin-core/gui/pull/559/commits/d7bdb90096c20c3787709e9f255c9f9ea508b81f Enable non-linear network traffic graph
- 6e6593b https://github.com/bitcoin-core/gui/pull/559/commits/6e6593b5cfc79f40a1cf5cc86333ecbc6347bbae Improve formatBytes in GUI
- 48f28cd https://github.com/bitcoin-core/gui/pull/559/commits/48f28cd3be8bbd4a359965b780d651ebbbe7ddb6 Don't lose ToolTip when toggling network graph
- 3d282b5 https://github.com/bitcoin-core/gui/pull/559/commits/3d282b5ba04f7df3d7fa41eb6ff7cdfa2332e0b5 Make Network Graph sample multiple ranges
File Changes
(9 files https://github.com/bitcoin-core/gui/pull/559/files)
- M src/qt/forms/debugwindow.ui https://github.com/bitcoin-core/gui/pull/559/files#diff-a24601363160c5ffd048f45a763e702c988b067f96e48a816c36f855f9820826 (24)
- M src/qt/guiutil.cpp https://github.com/bitcoin-core/gui/pull/559/files#diff-f2c7d602216ecc4b5d3980a81ebc57d56fb77ff0af5dd5dccdc3c06dba0a9ba6 (42)
- M src/qt/guiutil.h https://github.com/bitcoin-core/gui/pull/559/files#diff-86e079f53ae0a450c42ec1d282a458154002b99d5802b9c1f7396e209c67bdfa (1)
- M src/qt/rpcconsole.cpp https://github.com/bitcoin-core/gui/pull/559/files#diff-cec3a0a10196329610d46fbd0e01ce6496e5ae9e23c057d8012d48c2f0d3b5c9 (60)
- M src/qt/rpcconsole.h https://github.com/bitcoin-core/gui/pull/559/files#diff-705816d5b96cf914550883ee758d33d6edde14609e727aaac8e8cf49488c1262 (6)
- M src/qt/trafficgraphwidget.cpp https://github.com/bitcoin-core/gui/pull/559/files#diff-da38549cd85e0c422891b8ef1eb3cc33e76f0b80d15ca63aa7ad6f065c8ba694 (328)
- M src/qt/trafficgraphwidget.h https://github.com/bitcoin-core/gui/pull/559/files#diff-dd7e45c2151493e2e81cd39dd62733aa73c01928a518b83023a95fc23f0f986a (39)
- M src/util/time.cpp https://github.com/bitcoin-core/gui/pull/559/files#diff-74feac260a1487011d7e2126bfebad979cd1ce83114f67b757511d9f3eb58b86 (11)
- M src/util/time.h https://github.com/bitcoin-core/gui/pull/559/files#diff-5e3737e32cc88e35709e8dc031417044edc21e77481865bb51f57a8e24dd1b0e (1)
Patch Links:
- https://github.com/bitcoin-core/gui/pull/559.patch
- https://github.com/bitcoin-core/gui/pull/559.diff
— Reply to this email directly, view it on GitHub https://github.com/bitcoin-core/gui/pull/559, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMRS4W3BURANHIF5WEZW3NLU42NIFANCNFSM5PIP6G4Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you are subscribed to this thread.Message ID: @.***>
What's the rationale for combining those PRs in this one?
Because they are difficult to separate - given they each kinda tread on the toes of the others, I thought better to PR the whole foot rather than the individual toes. e.g. more than one feature uses the y_value() function, the tool-tip change and the linear/non-linear change both need an extra commit to be able work together.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Conflicts
Reviewers, this pull request conflicts with the following ones:
- #540 (network graph - show/hide panels based on window width/height by RandyMcMillan)
- #483 (Make network graph slider easier to use by rebroad)
- #473 (Enable a non-linear network traffic option (click to toggle between linear and non-linear) by rebroad)
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
This was a bad idea. If there wasn't enough developer time to review your scattered PRs, a larger combined PR shall only have larger reviewing problems. I'd suggest choosing one of your small PRs and to pay for reviews. Get it definitely NACKed or ACKed and merged, then repeat with a different PR. Choose PR order wisely. Good luck!
On Thu, Feb 24, 2022 at 10:34 PM Rebroad @.***> wrote:
What's the rationale for combining those PRs in this one?
Because they are difficult to separate - given they each kinda tread on the toes of the others, I thought better to PR the whole foot rather than the individual toes. e.g. more than one feature uses the y_value() function, the tool-tip change and the linear/non-linear change both need an extra commit to be able work together.
— Reply to this email directly, view it on GitHub https://github.com/bitcoin-core/gui/pull/559#issuecomment-1050287182, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMRS4W3MP43PNFYLTSFJKMDU42P55ANCNFSM5PIP6G4Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you commented.Message ID: @.***>
🐙 This pull request conflicts with the target branch and needs rebase.
Want to unsubscribe from rebase notifications on this pull request? Just convert this pull request to a "draft".