diff options
author | Simon Glass <sjg@chromium.org> | 2011-12-20 10:39:07 -0800 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2012-01-05 19:19:05 -0800 |
commit | 86e63e0fe2ed12a5e2dcb0c8b3e4b6f074de558f (patch) | |
tree | 8b7ce2cc8524d351c9d647874f6d0ec10d0f6009 /lib | |
parent | a7f64ee81c0b4701a0286be4ea8cd5e0474b5f9c (diff) |
Add bootstage accumulation
This adds a new type of boot timer, which records the time taken by
an operation, rather than marking the instant when it occurred. This
is useful to track the amount of time spent in a repeating activity
during boot.
To use this, call bootstage_start() at the start of the activity, then
bootstage_accum() at the end, to add this segment of time to the total.
You can call them (start first, then accum) as many times as you like.
BUG=chromium-os:22938
TEST=build and boot on Kaen
Change-Id: I3f1b536dc140c91a4a780188f6974dc37780f4f0
Reviewed-on: https://gerrit.chromium.org/gerrit/13370
Commit-Ready: Simon Glass <sjg@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions