summaryrefslogtreecommitdiffstats
path: root/lmkd/Android.bp
diff options
context:
space:
mode:
authorYao Chen <yaochen@google.com>2018-05-02 11:19:27 -0700
committerYao Chen <yaochen@google.com>2018-05-03 16:04:27 -0700
commit389aee111725cc14e57c2d863fd67dbeb625207e (patch)
tree5b6658df85b9804e916ac782947bd37ceb6461f9 /lmkd/Android.bp
parent979931803b5ba3a19db6e2ff3971f8447147fb8e (diff)
downloadsystem_core-389aee111725cc14e57c2d863fd67dbeb625207e.tar.gz
system_core-389aee111725cc14e57c2d863fd67dbeb625207e.tar.bz2
system_core-389aee111725cc14e57c2d863fd67dbeb625207e.zip
Fix the stats log in lmkd
1. let logs be written to statsd directly like all other stats logs. + stats log should not write to logd anymore(b/78239479) 2. fixed the log format + need to embed the elapsed real time in the log 3. fixed the log context reuse problem +reset the log context buffer and internal state before reuse Bug: 78603347 Bug: 78239479 Test: tested with alloc_stress, and saw logs written to statsd performance measurement (memory & cpu): https://paste.googleplex.com/5508158646648832 Change-Id: I345f0eace8ba1687ff480fb88e9abba1d8533f76
Diffstat (limited to 'lmkd/Android.bp')
-rw-r--r--lmkd/Android.bp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lmkd/Android.bp b/lmkd/Android.bp
index 58647f2ff..0474ff58a 100644
--- a/lmkd/Android.bp
+++ b/lmkd/Android.bp
@@ -8,6 +8,7 @@ cc_binary {
],
static_libs: [
"libstatslogc",
+ "libstatssocket",
],
local_include_dirs: ["include"],
cflags: ["-Werror", "-DLMKD_TRACE_KILLS"],
@@ -31,6 +32,7 @@ cc_library_static {
shared_libs: [
"liblog",
],
+ static_libs: ["libstatssocket",],
}
cc_library_static {