mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Hosted/linux: Add process/cpu info screen to the debug menu.
The new menu is very helpful on RaaA, but also shown in the sim. It shows the process cpu usage, process' time stats (user,sys,real) and the cpu frequency stats. It uses a thread to sample the data, however the thread is not created until the menu is visited for the first time. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31364 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f53c04b766
commit
287454de2e
5 changed files with 367 additions and 4 deletions
|
@ -7,13 +7,19 @@
|
|||
# $Id$
|
||||
#
|
||||
|
||||
# this is a glibc compatibility hack to provide a get_nprocs() replacement.
|
||||
# The NDK ships cpu-features.c which has a compatible function android_getCpuCount()
|
||||
CPUFEAT = /home/kugel/share/android-ndk-r6/sources/android/cpufeatures
|
||||
INCLUDES += -I$(CPUFEAT)
|
||||
OTHER_SRC += $(CPUFEAT)/cpu-features.c
|
||||
$(BUILDDIR)/cpu-features.o: $(CPUFEAT)/cpu-features.c
|
||||
$(call PRINTS,CC $(subst $(ANDROID_NDK_PATH)/,,$<))$(CC) -o $@ -c $^ \
|
||||
$(GCCOPTS) -Wno-unused
|
||||
|
||||
.SECONDEXPANSION: # $$(JAVA_OBJ) is not populated until after this
|
||||
.SECONDEXPANSION: # $$(OBJ) is not populated until after this
|
||||
.PHONY: apk classes clean dex dirs libs jar
|
||||
|
||||
$(BUILDDIR)/$(BINARY): $$(OBJ) $(VOICESPEEXLIB) $(FIRMLIB) $(SKINLIB)
|
||||
$(call PRINTS,LD $(BINARY))$(CC) -o $@ $^ $(LDOPTS) $(GLOBAL_LDOPTS)
|
||||
|
||||
PACKAGE=org.rockbox
|
||||
PACKAGE_PATH=org/rockbox
|
||||
ANDROID_DIR=$(ROOTDIR)/android
|
||||
|
@ -103,6 +109,10 @@ dex: $(DEX)
|
|||
|
||||
classes: $(R_OBJ) $(JAVA_OBJ)
|
||||
|
||||
|
||||
$(BUILDDIR)/$(BINARY): $$(OBJ) $(VOICESPEEXLIB) $(FIRMLIB) $(SKINLIB) $(BUILDDIR)/cpu-features.o
|
||||
$(call PRINTS,LD $(BINARY))$(CC) -o $@ $^ $(LDOPTS) $(GLOBAL_LDOPTS)
|
||||
|
||||
$(BINLIB_DIR)/$(BINARY): $(BUILDDIR)/$(BINARY)
|
||||
$(call PRINTS,CP $(BINARY))cp $^ $@
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue