Closed ghost closed 14 years ago
How interesting :-) Any chance you can attach your bootchart .tar.gz ? it sounds like there were no samples in taskstats.log; I guess we should handle that more sensibly - but the real question is: why were there no samples ? :-)
Wops, my bad ;)
Yep - no taskstat samples at all: most odd. I've committed a fix that will exit earlier when there are no samples. Of course, why there are none - I have no idea :-) Did you get a full boot chart in the end, or not ?
I've get something like this: http://wstaw.org/w/70e/ No dump in /tmp.
While trying to render a chart I get something like this:
[~] pybootchartgui -i No path given, trying /var/log/bootchart.tgz parsing '/var/log/bootchart.tgz' parsing 'header' parsing 'dmesg' parsing 'cmdline2.log' parsing 'proc_diskstats.log' parsing 'proc_stat.log' parsing 'taskstats.log'
Traceback (most recent call last): File "/usr/bin/pybootchartgui", line 23, in
sys.exit(main())
File "/usr/lib/python2.6/site-packages/pybootchartgui/main.py", line 114, in main
options.crop_after, options.annotate)
File "/usr/lib/python2.6/site-packages/pybootchartgui/parsing.py", line 537, in parse
state = parse_paths(writer, ParserState(), paths)
File "/usr/lib/python2.6/site-packages/pybootchartgui/parsing.py", line 457, in parse_paths
state = _do_parse(writer, state, name, tf.extractfile(name))
File "/usr/lib/python2.6/site-packages/pybootchartgui/parsing.py", line 414, in _do_parse
state.ps_stats = _parse_taskstats_log(writer, file)
File "/usr/lib/python2.6/site-packages/pybootchartgui/parsing.py", line 184, in _parse_taskstats_log
avgSampleLength = (ltime - startTime)/(len(timed_blocks)-1)
ZeroDivisionError: integer division or modulo by zero ``
I've tested on 2 kernels (one with initrd, one without), always the same. Running Arch Linux and Python 2.6.5.