From 30e8e5356b6ddb63eb6ef7495ee79d39d8be8b11 Mon Sep 17 00:00:00 2001 From: sh92 Date: Mon, 19 Sep 2016 23:44:20 +0900 Subject: [PATCH] Fix docs about stats option --- README.md | 2 +- docs/TIPS.md | 2 +- src/core/stats.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9332675e9..b07d6add4 100644 --- a/README.md +++ b/README.md @@ -121,7 +121,7 @@ Pyston-specific flags:
-v
Increase verbosity by 1
-
-s
+
-T
Print out the internal stats at exit.
-n
diff --git a/docs/TIPS.md b/docs/TIPS.md index 2788a0d88..394e75f1c 100644 --- a/docs/TIPS.md +++ b/docs/TIPS.md @@ -54,7 +54,7 @@ Pyston's primary reason _raison d'ĂȘtre_ is to have better performance than CPyt ### Counters & timers -We have a number of counters and timers that were manually written and inserted into the program. To display the results of a run, use the `-s` flag. The result of timer counters is displayed in microseconds. +We have a number of counters and timers that were manually written and inserted into the program. To display the results of a run, use the `-T` flag. The result of timer counters is displayed in microseconds. There's two types of timers in the code. The first are `StatCounter`s. They are just counters where we log the time elapsed manually, measured using a `Timer`. The second are `STAT_TIMER`s, which pause the parent `STAT_TIMER` when they are nested. diff --git a/src/core/stats.h b/src/core/stats.h index 00380d399..15f87d5fd 100644 --- a/src/core/stats.h +++ b/src/core/stats.h @@ -88,7 +88,7 @@ struct Stats { // // The current convention for stat names is underscore_case, such as `num_cxa_throw`, // though at some point we'd like to move to a period-delimited convention. -// (Run `./pyston -s` to see the list of current stats we log.) +// (Run `./pyston -T` to see the list of current stats we log.) // For single stats, usually `num_foo` is a decent name. If there are many stats in a // single category, you can drop the `num_`. // If a stat name is a prefix of another, the event it is counting should be a superset.