summaryrefslogtreecommitdiffstats
path: root/scripts/pybootchartgui/pybootchartgui/main.py.in
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2014-01-21 16:22:35 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-01-23 10:17:36 +0000
commit7b171ed393b179e2b9cebf73019024617bf6a67f (patch)
tree7689506a26d5fe92ba96fda97d779e5a0cabfbc9 /scripts/pybootchartgui/pybootchartgui/main.py.in
parent57c93e35074da2de5a66001b24a31cd40a9b2ca7 (diff)
downloadpoky-7b171ed393b179e2b9cebf73019024617bf6a67f.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. (From OE-Core rev: c6e88199ddf2c4ae243d42afc403d28ab56f00f0) 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.in4
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():
65# "To create a single annotation when any one of a set of processes is started, use commas to separate the names") 65# "To create a single annotation when any one of a set of processes is started, use commas to separate the names")
66# parser.add_option("--annotate-file", dest="annotate_file", metavar="FILENAME", default=None, 66# parser.add_option("--annotate-file", dest="annotate_file", metavar="FILENAME", default=None,
67# help="filename to write annotation points to") 67# help="filename to write annotation points to")
68 parser.add_option("-T", "--full-time", action="store_true", dest="full_time", default=False,
69 help="display the full time regardless of which processes are currently shown")
68 return parser 70 return parser
69 71
70class Writer: 72class Writer:
@@ -153,7 +155,7 @@ def main(argv=None):
153 finally: 155 finally:
154 f.close() 156 f.close()
155 filename = _get_filename(options.output) 157 filename = _get_filename(options.output)
156 res_list = parsing.split_res(res, options.num) 158 res_list = parsing.split_res(res, options)
157 n = 1 159 n = 1
158 width = len(str(len(res_list))) 160 width = len(str(len(res_list)))
159 s = "_%%0%dd." % width 161 s = "_%%0%dd." % width