mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-02 09:18:52 +00:00
System Monitor: Sort Address column in memory map numerically
This commit is contained in:
parent
a98d960ad4
commit
b5565b478f
Notes:
sideshowbarker
2024-07-19 04:43:39 +09:00
Author: https://github.com/nico
Commit: b5565b478f
Pull-request: https://github.com/SerenityOS/serenity/pull/2830
1 changed files with 4 additions and 3 deletions
|
@ -70,9 +70,10 @@ ProcessMemoryMapWidget::ProcessMemoryMapWidget()
|
|||
layout()->set_margins({ 4, 4, 4, 4 });
|
||||
m_table_view = add<GUI::TableView>();
|
||||
Vector<GUI::JsonArrayModel::FieldSpec> pid_vm_fields;
|
||||
pid_vm_fields.empend("Address", Gfx::TextAlignment::CenterLeft, [](auto& object) {
|
||||
return String::format("%#x", object.get("address").to_u32());
|
||||
});
|
||||
pid_vm_fields.empend(
|
||||
"Address", Gfx::TextAlignment::CenterLeft,
|
||||
[](auto& object) { return String::format("%#x", object.get("address").to_u32()); },
|
||||
[](auto& object) { return object.get("address").to_u32(); });
|
||||
pid_vm_fields.empend("size", "Size", Gfx::TextAlignment::CenterRight);
|
||||
pid_vm_fields.empend("amount_resident", "Resident", Gfx::TextAlignment::CenterRight);
|
||||
pid_vm_fields.empend("amount_dirty", "Dirty", Gfx::TextAlignment::CenterRight);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue