James Hawkins
756b6a53a7
Revert "bootstat: Handle v1 record files which do not contain file contents."
...
Breaks the darwin-x86 build.
This reverts commit 84fda19c83
.
Change-Id: Ia55b5ba756ec2ba4195f493ea505d05f68a9c37e
2016-03-25 18:21:58 +00:00
James Hawkins
84fda19c83
bootstat: Handle v1 record files which do not contain file contents.
...
Bug: 27836969
Change-Id: I18fcdab7ca32d00af3f8827f42d47868492ed719
2016-03-25 09:34:44 -07:00
James Hawkins
6f28299d0d
bootstat: Track record inconsistencies w/ a debug metric, bootstat_mtime_matches_content.
...
Fixed a file descriptor leak while I was in here.
Bug: 27550578
Change-Id: I8e252e4f5bb3c4e2ae96a1560fbb32ae636722a0
2016-03-22 16:02:01 -07:00
James Hawkins
c627558a48
bootstat: Add a value option to allow recording an associated value for a boot event.
...
This has been useful in debugging, but I could see it being used
practically.
Change-Id: Ied6e23d0f7a1bc39f606b2dba88fea92adc31bda
2016-03-22 11:45:59 -07:00
James Hawkins
c08e996ac8
bootstat: Disambiguate boot time on encrypted devices.
...
This change introduces new metrics to discern boot time on encrypted devices:
* post_decrypt_time_elapsed
* boot_decryption_complete
* boot_complete_post_decrypt
* boot_complete_no_encryption
Bug: 27497357
Change-Id: I8d3a411029bd6a45f80589ff67c408593e133a87
2016-03-11 15:50:39 -08:00
James Hawkins
a347cde386
Merge "bootstat: Add more debug logging metrics to RecordFactoryReset."
2016-03-09 16:34:25 +00:00
James Hawkins
45ead35222
bootstat: Add more strings to the bootreason mapping.
...
Bug: 27555866
Change-Id: Ieebacaa9369a744d0968b3483c4302ed47bdf9f6
2016-03-08 16:42:07 -08:00
James Hawkins
0660b307b8
bootstat: Add more debug logging metrics to RecordFactoryReset.
...
In an effort to track down the source of some wonky data being reported.
Bug: 27550578
Change-Id: I1f08447c0203e7982d1b44bc04b531e96358c223
2016-03-08 16:18:15 -08:00
James Hawkins
c67ef7820f
Merge "bootstat: Gate boot time metrics logging on an encrypted device being decrypted."
2016-03-04 19:30:56 +00:00
James Hawkins
3bf9b147f2
bootstat: Don't log time_since_factory_reset on device reset.
...
The zero value is meaningless and skews the histogram buckets.
Bug: 27477664
Change-Id: Idd641aa3005819905a2ecf664d2a5781dbbff59b
2016-03-03 14:50:24 -08:00
James Hawkins
5e655f02c5
bootstat: Gate boot time metrics logging on an encrypted device being decrypted.
...
This prevents double-counting boot metrics for encrypted devices.
Bug: 27454346
Change-Id: If63dd421e4f91a01b43d730d59896544a26d138a
2016-03-03 14:40:29 -08:00
James Hawkins
53684ea625
bootstat: Record the time since factory reset on init.
...
Bug: 25448351
Change-Id: I71905a598e74f41c18a96d469c7a6ddd5a2e07fb
2016-02-24 11:01:03 -08:00
James Hawkins
500d71566a
bootstat: Record metrics for factory_reset and time_since_factory_reset.
...
Bug: 25448351
Change-Id: I9b3a557317bc256a078f76e2b65d16bc071e4a6a
2016-02-16 16:19:48 -08:00
James Hawkins
6f74c0b843
bootstat: Add a few more bootreasons and rebase the index against index 1.
...
This is necessary to match the mapping in the internal infrastructure.
Bug: 21724738
Change-Id: I292166ff5c0dea7f3d771627120f16af4c56073b
2016-02-13 09:54:35 -08:00
James Hawkins
a4a1a4ac85
bootstat: Add support for logging the boot_reason metric.
...
This value is read from the ro.boot.bootreason system property.
Bug: 21724738
Change-Id: I43bef3d85ba9c8d87669a91da1aa675d9a86e348
2016-02-09 15:32:38 -08:00
James Hawkins
dac84b5a1a
Merge "bootstat: Hook up bootstat to record the boot complete signal and log boot events in the LOCAL_INIT_RC file, bootstat.rc."
2016-01-26 21:30:55 +00:00
James Hawkins
6bff639c19
bootstat: Hook up bootstat to record the boot complete signal and log
...
boot events in the LOCAL_INIT_RC file, bootstat.rc.
This change also creates the /data/misc/bootstat dir during the
filesystem creation block in init.rc.
Bug: 21724738
Change-Id: I2ad6913c0235d5f926c6ef8b3c65d650159c6ed7
2016-01-26 11:23:31 -08:00
Ian Pedowitz
5699ee889a
Removing -std=c++14 from bootstat Android.mk
...
From comments in 7e04be06d1
, this
is not needed.
Change-Id: I427efac8d5e0750ea5f4e77e1582d134d9cae089
2016-01-22 20:33:04 -08:00
Rom Lemarchand
7e04be06d1
bootstat: Use Clang and c++14 standard
...
Change-Id: Ic156eea4d8731e67b26da0a56a7e69b13df659cb
2016-01-22 19:11:20 -08:00
James Hawkins
5cd4bc299b
bootstat: Fix the build on git_mnc-dr1.5-dev-plus-aosp by adding missing
...
C++ includes
Bug: 21724738
Change-Id: I27e1e8d7897302a1f2d1e4d44c226450194f1933
2016-01-22 11:07:51 -08:00
James Hawkins
6d0d12a9d8
bootstat: Followup cleanups from the initial bootstat checkin.
...
* Clarify the README.md that the logs data may be utilized by anyone.
* Fix a whitespace issue.
Bug: 21724738
Change-Id: Id472485f505afb14588ccd645844a3f4a728abc2
2016-01-20 13:17:02 -08:00
James Hawkins
eabe08b55e
bootstat: Fix the base includes to be AOSP-friendly.
...
Change-Id: I625cc55b41f5258addf3bb74bcef42063c565465
Bug: 21724738
2016-01-20 01:28:48 +00:00
James Hawkins
abd73e6179
system/core: Add initial implementation of the bootstat command.
...
The bootstat command enables the measurement and logging of boot time
metrics
for GMS devices.
BUG:21724738
Change-Id: I331456dd38a60fb4ef24a4d5320909dbad30db66
2016-01-19 15:10:38 -08:00