summaryrefslogtreecommitdiff
path: root/libcutils/sockets_unix.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2016-11-10 17:43:47 -0800
committerElliott Hughes <enh@google.com>2016-11-12 11:17:40 -0800
commit9605a945f7a497c0307b512b9cd762f2d23973ca (patch)
treed78bab11c11aba3c79c6b66a944699fb591a39dd /libcutils/sockets_unix.cpp
parent8cbc89527cbeb677d24698aca6d5302764db1775 (diff)
init start time tracking.
With this change, init sets a property "init.start" to show the CLOCK_BOOTTIME time at which init itself started, and for each service an "init.svc.<name>.start" property to show the CLOCK_BOOTTIME time at which that service was most recently started. These times can be used by tools like bootstat to track boot time. As part of this change, move init over to std::chrono. Also, rather than make the command-line argument handling more complex, I've switched to using an environment variable for communication between first- and second-stage init, and added another environment variable to pass the start time of the first stage through to the second stage. Bug: http://b/32780225 Test: manual Change-Id: Ia65a623e1866ea688b9a5433d6507926ce301dfe
Diffstat (limited to 'libcutils/sockets_unix.cpp')
0 files changed, 0 insertions, 0 deletions