blob: f5b3d2ad0e4ec74713d2b306b6dacb39c564b867 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/usr/bin/env python
import sys
from pybootchartgui import main
from pybootchartgui import parsing
if __name__ == '__main__':
argv = sys.argv[1:]
parser = main._mk_options_parser()
options, args = parser.parse_args(argv)
writer = main._mk_writer(options)
res = parsing.parse(writer, args, options.prune, options.crop_after, options.annotate)
duration = float(res[3].duration) / 100
print res[0]['title']
print "uname:", res[0]['system.uname']
print "release:", res[0]['system.release']
print "CPU:", res[0]['system.cpu']
print "kernel options:", res[0]['system.kernel.options']
print "time:", duration
|