mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:08:12 +00:00
System Monitor: Sort Address column in memory map numerically
This commit is contained in:
parent
a98d960ad4
commit
b5565b478f
1 changed files with 4 additions and 3 deletions
|
@ -70,9 +70,10 @@ ProcessMemoryMapWidget::ProcessMemoryMapWidget()
|
||||||
layout()->set_margins({ 4, 4, 4, 4 });
|
layout()->set_margins({ 4, 4, 4, 4 });
|
||||||
m_table_view = add<GUI::TableView>();
|
m_table_view = add<GUI::TableView>();
|
||||||
Vector<GUI::JsonArrayModel::FieldSpec> pid_vm_fields;
|
Vector<GUI::JsonArrayModel::FieldSpec> pid_vm_fields;
|
||||||
pid_vm_fields.empend("Address", Gfx::TextAlignment::CenterLeft, [](auto& object) {
|
pid_vm_fields.empend(
|
||||||
return String::format("%#x", object.get("address").to_u32());
|
"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("size", "Size", Gfx::TextAlignment::CenterRight);
|
||||||
pid_vm_fields.empend("amount_resident", "Resident", Gfx::TextAlignment::CenterRight);
|
pid_vm_fields.empend("amount_resident", "Resident", Gfx::TextAlignment::CenterRight);
|
||||||
pid_vm_fields.empend("amount_dirty", "Dirty", Gfx::TextAlignment::CenterRight);
|
pid_vm_fields.empend("amount_dirty", "Dirty", Gfx::TextAlignment::CenterRight);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue