summaryrefslogtreecommitdiff
path: root/Userland/Makefile
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-02-04 10:28:12 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-02-04 10:28:12 +0100
commitc0cffe1134bc286d24199813726e7b929f414b67 (patch)
tree3fc42e0e95abed37324a1e13362679015f539868 /Userland/Makefile
parent642e2447c99db6e10b625d9899336c7fea8d59ec (diff)
downloadserenity-c0cffe1134bc286d24199813726e7b929f414b67.zip
Add a /bin/top program for process table monitoring.
It automagically computes %CPU usage based on the number of times a process has been scheduled between samples. The colonel task is used as idle timer. This is pretty cool. :^)
Diffstat (limited to 'Userland/Makefile')
-rw-r--r--Userland/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Userland/Makefile b/Userland/Makefile
index 863f658741..990a8b09b3 100644
--- a/Userland/Makefile
+++ b/Userland/Makefile
@@ -26,6 +26,7 @@ OBJS = \
rmdir.o \
dmesg.o \
chmod.o \
+ top.o \
rm.o
APPS = \
@@ -57,6 +58,7 @@ APPS = \
rmdir \
dmesg \
chmod \
+ top \
rm
ARCH_FLAGS =
@@ -164,6 +166,9 @@ rmdir: rmdir.o
chmod: chmod.o
$(LD) -o $@ $(LDFLAGS) $< ../LibC/LibC.a
+top: top.o
+ $(LD) -o $@ $(LDFLAGS) $< ../LibC/LibC.a
+
.cpp.o:
@echo "CXX $<"; $(CXX) $(CXXFLAGS) -o $@ -c $<