Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

IsseW
Copy link
Member

@IsseW IsseW commented Sep 1, 2025

Related

To help debug what is going on in #11049

What

Adds a header to the memory panel where different cache types can display UI.

Screenshot 2025-09-01 at 18 25 51

Still TODO

Implement the ui for the various caches.

@IsseW IsseW marked this pull request as draft September 1, 2025 16:27
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Hi! Thanks for opening this pull request.

Because this is your first time contributing to this repository, make sure you've read our Contributor Guide and Code of Conduct.

Copy link

github-actions bot commented Sep 1, 2025

Web viewer built successfully. If applicable, you should also test it:

  • I have tested the web viewer
Result Commit Link Manifest
515b0d4 https://rerun.io/viewer/pr/11055 +nightly +main

Note: This comment is updated whenever you push a commit.

Copy link
Member

@Wumpf Wumpf left a comment

Choose a reason for hiding this comment

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

nice, great start!

for separation of ui code from the rest of the logic I'd really like to keep the ui code out of the caches though. I realize that makes it a bit harder to do flexible reports (like "number of meshes") but that way we can also look at accumulated memory from caches.
I.e. I'm thinking we could report something back like

struct CacheMemoryReport {
    bytes_cpu: usize,
    bytes_gpu: Option<usize>,
    /// helpful doc string that explains with this is
    detailed_properties: BTreeMap<String, String>, 
}

and then build a ui from that generically 🤔 . What do you think?

(edit: that's replacing then ofc the existing bytes_used)

@IsseW
Copy link
Member Author

IsseW commented Sep 2, 2025

or separation of ui code from the rest of the logic I'd really like to keep the ui code out of the caches though.

That makes sense, could also achieve the separation by having a secondary trait for it. But I think a unified UI for it would be good because there was some code-duplication between the different ui implementations.

@IsseW IsseW added ui concerns graphical user interface 📺 re_viewer affects re_viewer itself 📊 analytics telemetry analytics include in changelog and removed 📊 analytics telemetry analytics labels Sep 2, 2025
@Wumpf Wumpf marked this pull request as ready for review September 2, 2025 15:14
@IsseW IsseW merged commit 0ee7101 into main Sep 2, 2025
68 of 69 checks passed
@IsseW IsseW deleted the isse/caches-debug-ui branch September 2, 2025 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
include in changelog 📺 re_viewer affects re_viewer itself ui concerns graphical user interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants