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 <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Peter Kjellerstedt
2014-01-21 16:22:35 +01:00
committed by Richard Purdie
parent 57c93e3507
commit 7b171ed393
3 changed files with 20 additions and 5 deletions

View File

@@ -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