Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 86175456 authored by Glenn Kasten's avatar Glenn Kasten Committed by Android (Google) Code Review
Browse files

Merge "Build libcpustats for host"

parents cb8f3673 caaf5eef
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -11,3 +11,15 @@ LOCAL_MODULE := libcpustats
LOCAL_CFLAGS := -Werror -Wall

include $(BUILD_STATIC_LIBRARY)

include $(CLEAR_VARS)

LOCAL_SRC_FILES :=     \
        CentralTendencyStatistics.cpp \
        ThreadCpuUsage.cpp

LOCAL_MODULE := libcpustats

LOCAL_CFLAGS := -std=gnu++11 -Werror -Wall

include $(BUILD_HOST_STATIC_LIBRARY)
+5 −0
Original line number Diff line number Diff line
@@ -26,6 +26,11 @@

#include <cpustats/ThreadCpuUsage.h>

// implemented by host, but not declared in <string.h> as FreeBSD does
extern "C" {
    extern size_t strlcpy(char *dst, const char *src, size_t dstsize);
}

namespace android {

bool ThreadCpuUsage::setEnabled(bool isEnabled)