-
Notifications
You must be signed in to change notification settings - Fork 373
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
Improvements to memory measurements and reporting #2069
Conversation
@@ -1366,6 +1366,37 @@ fn memory_use_label_ui(ui: &mut egui::Ui, gpu_resource_stats: &WgpuResourcePoolS | |||
format_number(gpu_resource_stats.num_textures), | |||
format_number(gpu_resource_stats.num_buffers), | |||
)); | |||
} else { |
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.
We should also consider adding a fallback on the RSS, as found by bytes_resident()
in crates/re_memory/src/memory_use.rs
. Then we would never need to suggest the AccountingAllocator
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.
Btw, Arc-blroth/memory-stats#2 is fixed, so we should be able to get the RSS on Linux too (please check!)
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.
We now have fallbacks for all cases; but I still recommend setting up an AccountingAllocator because RSS is, as always, completely off the mark
AccountingAllocator
Co-authored-by: Emil Ernerfeldt <[email protected]>
Co-authored-by: Emil Ernerfeldt <[email protected]>
Co-authored-by: Emil Ernerfeldt <[email protected]>
* guide users towards AccountingAllocator * web support * Update crates/re_viewer/src/app.rs Co-authored-by: Emil Ernerfeldt <[email protected]> * update memory-stats to 1.1 and always use statm * improvements, fallbacks and all sorts of fun * Update crates/re_viewer/src/app.rs Co-authored-by: Emil Ernerfeldt <[email protected]> * Update crates/re_viewer/src/app.rs Co-authored-by: Emil Ernerfeldt <[email protected]> * Update crates/re_viewer/src/app.rs Co-authored-by: Emil Ernerfeldt <[email protected]> * typo in suggestion --------- Co-authored-by: Emil Ernerfeldt <[email protected]>
Fixes #2041
AccountingAllocator
available:Fallback to
RSS
:Fallback to placeholder: