GpuStats: separate stats module as a separate library
Bug: 141392969 Test: build, flash and boot, adb shell cmd gpu vkjson Change-Id: If88e84c65cf6c0ee8a9c4daa8fe6807db5e1e32d
This commit is contained in:
parent
a433f5d64e
commit
baaef8871c
5 changed files with 28 additions and 8 deletions
|
@ -20,6 +20,7 @@ cc_defaults {
|
|||
"libbase",
|
||||
"libbinder",
|
||||
"libcutils",
|
||||
"libgfxstats",
|
||||
"libgraphicsenv",
|
||||
"liblog",
|
||||
"libutils",
|
||||
|
@ -52,7 +53,6 @@ filegroup {
|
|||
name: "libgpuservice_sources",
|
||||
srcs: [
|
||||
"GpuService.cpp",
|
||||
"gpustats/GpuStats.cpp"
|
||||
],
|
||||
}
|
||||
|
||||
|
|
|
@ -24,14 +24,13 @@
|
|||
#include <binder/Parcel.h>
|
||||
#include <binder/PermissionCache.h>
|
||||
#include <cutils/properties.h>
|
||||
#include <gpustats/GpuStats.h>
|
||||
#include <private/android_filesystem_config.h>
|
||||
#include <utils/String8.h>
|
||||
#include <utils/Trace.h>
|
||||
|
||||
#include <vkjson.h>
|
||||
|
||||
#include "gpustats/GpuStats.h"
|
||||
|
||||
namespace android {
|
||||
|
||||
using base::StringAppendF;
|
||||
|
|
21
services/gpuservice/gpustats/Android.bp
Normal file
21
services/gpuservice/gpustats/Android.bp
Normal file
|
@ -0,0 +1,21 @@
|
|||
cc_library_shared {
|
||||
name: "libgfxstats",
|
||||
srcs: [
|
||||
"GpuStats.cpp",
|
||||
],
|
||||
shared_libs: [
|
||||
"libcutils",
|
||||
"libgraphicsenv",
|
||||
"liblog",
|
||||
"libutils",
|
||||
],
|
||||
export_include_dirs: ["include"],
|
||||
cppflags: [
|
||||
"-Wall",
|
||||
"-Werror",
|
||||
"-Wformat",
|
||||
"-Wthread-safety",
|
||||
"-Wunused",
|
||||
"-Wunreachable-code",
|
||||
],
|
||||
}
|
|
@ -17,7 +17,7 @@
|
|||
#define LOG_TAG "GpuStats"
|
||||
#define ATRACE_TAG ATRACE_TAG_GRAPHICS
|
||||
|
||||
#include "GpuStats.h"
|
||||
#include <gpustats/GpuStats.h>
|
||||
|
||||
#include <cutils/properties.h>
|
||||
#include <log/log.h>
|
||||
|
|
|
@ -16,15 +16,15 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <mutex>
|
||||
#include <unordered_map>
|
||||
#include <vector>
|
||||
|
||||
#include <graphicsenv/GpuStatsInfo.h>
|
||||
#include <graphicsenv/GraphicsEnv.h>
|
||||
#include <utils/String16.h>
|
||||
#include <utils/Vector.h>
|
||||
|
||||
#include <mutex>
|
||||
#include <unordered_map>
|
||||
#include <vector>
|
||||
|
||||
namespace android {
|
||||
|
||||
class GpuStats {
|
Loading…
Reference in a new issue