1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-25 18:25:09 +00:00
serenity/Applications/SystemMonitor
Lenny Maiorani f99d1d3bd7 Vector: Implement find, find_if, find_first_matching in terms of AK::find*
Problem:
- The implementation of `find` is coupled to the implementation of `Vector`.
- `Vector::find` takes the predicate by value which might be expensive.

Solution:
- Decouple the implementation of `find` from `Vector` by using a
  generic `find` algorithm.
- Change the name of `find` with a predicate to `find_if` so that a
  binding reference can be used and the predicate can be forwarded to
  avoid copies.
- Change all the `find(pred)` call sites to use `find_if`.
2021-01-11 19:45:05 +01:00
..
CMakeLists.txt Build: Embed application icons directly in the executables. 2020-12-21 00:12:59 +01:00
DevicesModel.cpp Vector: Implement find, find_if, find_first_matching in terms of AK::find* 2021-01-11 19:45:05 +01:00
DevicesModel.h LibGUI: Move GUI::Model::Role to GUI::ModelRole 2020-08-16 16:44:09 +02:00
GraphWidget.cpp SystemMonitor: Beef up CPU and memory graphs 2021-01-05 10:59:00 +01:00
GraphWidget.h SystemMonitor: Beef up CPU and memory graphs 2021-01-05 10:59:00 +01:00
InterruptsWidget.cpp SystemMonitor: Add Interrupts tab 2020-12-02 12:57:38 +01:00
InterruptsWidget.h SystemMonitor: Add Interrupts tab 2020-12-02 12:57:38 +01:00
main.cpp SystemMonitor: Add args parsing for opening a specific tab 2021-01-09 13:27:23 +01:00
MemoryStatsWidget.cpp SystemMonitor: Beef up CPU and memory graphs 2021-01-05 10:59:00 +01:00
MemoryStatsWidget.h SystemMonitor: Beef up CPU and memory graphs 2021-01-05 10:59:00 +01:00
NetworkStatisticsWidget.cpp SystemMonitor: Use new-style widget size constraints 2020-12-30 01:28:28 +01:00
NetworkStatisticsWidget.h SystemMonitor: Wrap adapters and sockets model into a SortingProxyModel 2020-09-22 19:05:50 +02:00
ProcessFileDescriptorMapWidget.cpp SystemMonitor: Use new format functions. 2020-10-06 20:29:26 +02:00
ProcessFileDescriptorMapWidget.h Meta+Applications: Make clang-format-10 clean 2020-09-25 21:18:17 +02:00
ProcessMemoryMapWidget.cpp Kernel: Merge PurgeableVMObject into AnonymousVMObject 2021-01-01 23:43:44 +01:00
ProcessMemoryMapWidget.h LibGUI: Remove parent parameter to GUI::Widget constructor 2020-02-23 12:27:53 +01:00
ProcessModel.cpp SystemMonitor: Beef up CPU and memory graphs 2021-01-05 10:59:00 +01:00
ProcessModel.h SystemMonitor: Beef up CPU and memory graphs 2021-01-05 10:59:00 +01:00
ProcessUnveiledPathsWidget.cpp SystemMonitor: Use new format functions. 2020-10-06 20:29:26 +02:00
ProcessUnveiledPathsWidget.h Meta+Applications: Make clang-format-10 clean 2020-09-25 21:18:17 +02:00
ThreadStackWidget.cpp SystemMonitor: Use new format functions. 2020-10-06 20:29:26 +02:00
ThreadStackWidget.h SystemMonitor: ProcessStack is now ThreadStack 2020-08-15 13:38:24 +02:00