diff options
| author | Mark Salyzyn <salyzyn@google.com> | 2015-08-31 15:53:41 -0700 |
|---|---|---|
| committer | Mark Salyzyn <salyzyn@google.com> | 2015-10-29 14:23:42 -0700 |
| commit | 4cbed02e440dc400668fbdfb8ce4a710e5caebe5 (patch) | |
| tree | 7f218ca9930c7e4eb90952a4c2be09ac6be6a200 /include | |
| parent | 4d18ae9301029271ddd86f4b311c97a130ad5044 (diff) | |
| download | core-4cbed02e440dc400668fbdfb8ce4a710e5caebe5.tar.gz core-4cbed02e440dc400668fbdfb8ce4a710e5caebe5.tar.bz2 core-4cbed02e440dc400668fbdfb8ce4a710e5caebe5.zip | |
liblog: logcat: add epoch and monotonic format modifiers
- '-v epoch' prints seconds since Jan 1 1970
- '-v monotonic' print cpu seconds since start of device
- '-T sssss.mmm...' as alternate tail time format
NB: monotonic is a best estimate and may be out by a few ms
given the synchronization source clue accuracy.
Bug: 23668800
Change-Id: Ieb924b6d3817669c7e53beb9c970fb626eaad460
Diffstat (limited to 'include')
| -rw-r--r-- | include/log/logprint.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/log/logprint.h b/include/log/logprint.h index 26b1ee5a1..204b3f224 100644 --- a/include/log/logprint.h +++ b/include/log/logprint.h @@ -42,6 +42,8 @@ typedef enum { FORMAT_MODIFIER_PRINTABLE, /* converts non-printable to printable escapes */ FORMAT_MODIFIER_YEAR, /* Adds year to date */ FORMAT_MODIFIER_ZONE, /* Adds zone to date */ + FORMAT_MODIFIER_EPOCH, /* Print time as seconds since Jan 1 1970 */ + FORMAT_MODIFIER_MONOTONIC, /* Print cpu time as seconds since start */ } AndroidLogPrintFormat; typedef struct AndroidLogFormat_t AndroidLogFormat; |
