diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2014-01-21 16:22:35 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-01-22 07:26:30 +0000 |
commit | c6e88199ddf2c4ae243d42afc403d28ab56f00f0 (patch) | |
tree | 925b746fdae20a480935071a98c6c975c334aae4 /scripts/pybootchartgui/pybootchartgui/main.py.in | |
parent | 45565b24651ab502ae49dc49261dc3ad5634191f (diff) | |
download | openembedded-core-contrib-c6e88199ddf2c4ae243d42afc403d28ab56f00f0.tar.gz |
pybootchartgui: Add option -T to allways use the full time
When --full-time (or -T) is used, the graph allways shows the full
time regardless of which processes are currently shown. This is
especially useful in combinationm with the -s flag when outputting to
multiple files.
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/pybootchartgui/pybootchartgui/main.py.in')
-rw-r--r-- | scripts/pybootchartgui/pybootchartgui/main.py.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/pybootchartgui/pybootchartgui/main.py.in b/scripts/pybootchartgui/pybootchartgui/main.py.in index e9d2c74f1e..21bb0be3a7 100644 --- a/scripts/pybootchartgui/pybootchartgui/main.py.in +++ b/scripts/pybootchartgui/pybootchartgui/main.py.in @@ -65,6 +65,8 @@ def _mk_options_parser(): # "To create a single annotation when any one of a set of processes is started, use commas to separate the names") # parser.add_option("--annotate-file", dest="annotate_file", metavar="FILENAME", default=None, # help="filename to write annotation points to") + parser.add_option("-T", "--full-time", action="store_true", dest="full_time", default=False, + help="display the full time regardless of which processes are currently shown") return parser class Writer: @@ -153,7 +155,7 @@ def main(argv=None): finally: f.close() filename = _get_filename(options.output) - res_list = parsing.split_res(res, options.num) + res_list = parsing.split_res(res, options) n = 1 width = len(str(len(res_list))) s = "_%%0%dd." % width |