Sergey Bugaev
8d59b10022
WindowServer: Port threading to LibThread
2019-08-26 11:31:14 +02:00
Robin Burchell
a9d1a86e6e
CProcessStatisticsReader: Be consistent about terminology from the kernel down
2019-07-18 07:23:26 +02:00
Andreas Kling
64d9b43734
WindowServer: Use CProcessStatisticsReader in WSCPUMonitor.
2019-07-10 15:22:44 +02:00
Andreas Kling
27f699ef0c
AK: Rename the common integer typedefs to make it obvious what they are.
...
These types can be picked up by including <AK/Types.h>:
* u8, u16, u32, u64 (unsigned)
* i8, i16, i32, i64 (signed)
2019-07-03 21:20:13 +02:00
Andreas Kling
2bd8118843
Kernel: Change the format of /proc/all to JSON.
...
Update ProcessManager, top and WSCPUMonitor to handle the new format.
Since the kernel is not allowed to use floating-point math, we now compile
the JSON classes in AK without JsonValue::Type::Double support.
To accomodate large unsigned ints, I added a JsonValue::Type::UnsignedInt.
2019-06-29 09:04:45 +02:00
Andreas Kling
8358833bc8
WindowServer: Run clang-format on everything.
2019-06-07 11:47:19 +02:00
Andreas Kling
e74b5bc054
ProcessManager+WindowServer: Do a little less malloc() in CPU monitor code.
2019-04-18 03:37:01 +02:00
Andreas Kling
c4c7f224d5
WindowServer: Use CFile in the CPU monitor code.
2019-04-18 00:12:04 +02:00
Andreas Kling
bc6ac1c2f2
WindowServer: Let the CPU monitor keep /proc/all open between refreshes.
...
Just seek to the beginning on every iteration and start over. This avoids
a bunch of syscalls.
2019-04-15 23:57:31 +02:00
Andreas Kling
94a5e08faf
WindowServer: Rename WSMessage* => WSEvent*.
...
Since I'm on a roll here, I'll just rename WSMessageFoo to WSEventFoo now
that these inherit from CEventFoo anyway.
2019-04-14 05:23:37 +02:00
Andreas Kling
c2093ad994
WindowServer: Move the CPU monitor thingy to its own class.
2019-04-14 04:33:43 +02:00