Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Unified Diff: README

Issue 5265008: Add new bootstat_get_last command (Closed) Base URL: http://git.chromium.org/git/bootstat.git@master
Patch Set: Rename bootstat_last to bootstat_get_last Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | bootstat_get_last » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: README
diff --git a/README b/README
index 787e5f0ebf405ce2c0d56eb7007b6e1cab822da1..a14c9921d8d7303925b38291bfdc43f175a72cd0 100644
--- a/README
+++ b/README
@@ -6,8 +6,8 @@ This is the Chromium OS 'bootstat' utility. The utility is used
to generate timestamps and other performance statistics during
system boot.
-==== Functional specification
-Usage:
+==== Command specifications
+'bootstat' command usage:
bootstat <event-name>
Summary: The command gathers and records the contents of
@@ -15,6 +15,26 @@ Summary: The command gathers and records the contents of
not the boot partition), and associates the data with the passed
in <event-name>.
+----
+'bootstat_get_last' command usage:
+ bootstat_get_last <event-name> [ <stat> ... ]
+
+Summary: Print on standard output the value of selected statistics
+recorded when a specified event occurred. These are the available
+statistics:
+ time: Total time since kernel startup at the time of the event.
+ read-sectors: Total sectors read from any partition of the boot
+ device since kernel startup.
+ write-sectors: Total sectors written to any partition of the
+ boot device since kernel startup.
+
+If multiple statistics requested, they are reported in order, one
+per line. If no statistics are listed on the command line, the
+default is to report 'time'.
+
+If an event has occurred more than once since kernel startup, only
+the statistics from the last occurrence are reported.
+
==== API specification
The C and C++ API is defined in "bootstat.h". See that header for
specification details.
« no previous file with comments | « no previous file | bootstat_get_last » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698