From 7b171ed393b179e2b9cebf73019024617bf6a67f Mon Sep 17 00:00:00 2001 From: Peter Kjellerstedt Date: Tue, 21 Jan 2014 16:22:35 +0100 Subject: 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. (From OE-Core rev: c6e88199ddf2c4ae243d42afc403d28ab56f00f0) Signed-off-by: Peter Kjellerstedt Signed-off-by: Richard Purdie --- scripts/pybootchartgui/pybootchartgui/main.py.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts/pybootchartgui/pybootchartgui/main.py.in') 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 -- cgit v1.2.3-54-g00ecf