summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Salyzyn2016-11-10 12:24:44 -0600
committerMark Salyzyn2017-04-14 14:54:25 -0500
commit5768d3d9769c37ede68efa2f7df98bb146881e62 (patch)
tree98f4809e437fc5231a0341b7728e10cd615901e0 /liblog/event.logtags
parent46186a7238973c4f60ffcf1af0e2bee737bef63d (diff)
downloadplatform-system-core-5768d3d9769c37ede68efa2f7df98bb146881e62.tar.gz
platform-system-core-5768d3d9769c37ede68efa2f7df98bb146881e62.tar.xz
platform-system-core-5768d3d9769c37ede68efa2f7df98bb146881e62.zip
liblog: logprint supports number of seconds time event field
Add s to report time in seconds. The time could be a period, duration or monotonic, expanded to seconds, minutes, hours and days. gTest has to acquire a dynamic tag allocation as there are no users of this feature yet. Looking to the future, audio media logging has binary content similar to the binary events structures Android logging uses and they have a definition of a duration field in their internal binary logging, so may be of use when we unify the logs. Test: gTest logcat-unit-tests --gtest_filter=*.descriptive Bug: 31456426 Change-Id: I262c03775983b3bc7b1b00227ce2bb2b0f357bec
Diffstat (limited to 'liblog/event.logtags')
-rw-r--r--liblog/event.logtags1
1 files changed, 1 insertions, 0 deletions
diff --git a/liblog/event.logtags b/liblog/event.logtags
index 301e8858d..0a3b6501b 100644
--- a/liblog/event.logtags
+++ b/liblog/event.logtags
@@ -29,6 +29,7 @@
29# 4: Number of allocations 29# 4: Number of allocations
30# 5: Id 30# 5: Id
31# 6: Percent 31# 6: Percent
32# s: Number of seconds (monotonic time)
32# Default value for data of type int/long is 2 (bytes). 33# Default value for data of type int/long is 2 (bytes).
33# 34#
34# TODO: generate ".java" and ".h" files with integer constants from this file. 35# TODO: generate ".java" and ".h" files with integer constants from this file.