Hi Karl, when you say "you need to download the sources from
bootchart.org." to you mean anything other than doing "apt-get install
bootchart"?
Can you explain the reason for the General setup you mentioned?
I'm wondering if there is incompatibility between my bootchart.tgz and
the bootchart tool. Can you speak to compatibility concerns -
versions...
I did apt-get install bootchart on my unbuntu system, a different
system than where I build android (restriction on my build server
blocked this). Here the output which shows the error:
$ bootchart bootchart.tgz
/usr/lib/pymodules/python2.6/gtk-2.0/gtk/__init__.py:57: GtkWarning:
could not open display
warnings.warn(str(e), _gtk.Warning)
parsing 'bootchart.tgz'
parsing 'header'
parsing 'proc_stat.log'
parsing 'proc_ps.log'
warning: no parent for pid '2' with ppid '0'
parsing 'proc_diskstats.log'
parsing 'kernel_pacct'
merged 0 logger processes
pruned 63 process, 0 exploders, 2 threads, and 0 runs
False
Traceback (most recent call last):
File "/usr/bin/bootchart", line 23, in <module>
sys.exit(main())
File "/usr/lib/pymodules/python2.6/pybootchartgui/main.py", line
137, in main
render()
File "/usr/lib/pymodules/python2.6/pybootchartgui/main.py", line
128, in render
batch.render(writer, res, options, filename)
File "/usr/lib/pymodules/python2.6/pybootchartgui/batch.py", line
41, in render
draw.render(ctx, options, *res)
File "/usr/lib/pymodules/python2.6/pybootchartgui/draw.py", line
282, in render
draw_chart(ctx, IO_COLOR, True, chart_rect, [(sample.time,
sample.util) for sample in disk_stats], proc_tree)
File "/usr/lib/pymodules/python2.6/pybootchartgui/draw.py", line
201, in draw_chart
yscale = float(chart_bounds[3]) / max(y for (x,y) in data)
ZeroDivisionError: float division
Thanks
yladsr
On May 9, 1:12 am, Karl <[email protected]> wrote:
> Hi,
>
> It looked like you are facing parse ps_log error, so please check your
> kernel menuconfig to see if below are enable.
> -> General setup
> -> BSD Process Accounting
> -> BSD Process Accounting version 3 file formate
>
> Meanwhile, you need to download the sources frombootchart.org follow
> the instructions in /system/core/init/README.BOOTCHART
>
> BR,
> Karl
>
> On May 3, 2:16 am, jagan <[email protected]> wrote:
>
>
>
> > Hi All,
>
> > I working onbootcharton GB.
>
> > In host:
> > I am installbootcharton my ubuntu-10.10
> > as apt-get installbootchart
>
> > In target:
> > I am able to create thebootchart.tgz,
> > but while i am extracting i got the following error like
>
> > parsing 'Documents/bootchart.tgz'
> > parsing 'header'
> > parsing 'kernel_pacct'
> > parsing 'proc_diskstats.log'
> > parsing 'proc_ps.log'
> > Traceback (most recent call last):
> > File "/usr/bin/bootchart", line 23, in <module>
> > sys.exit(main())
> > File "/usr/lib/pymodules/python2.6/pybootchartgui/main.py", line
> > 111, in main
> > options.crop_after, options.annotate)
> > File "/usr/lib/pymodules/python2.6/pybootchartgui/parsing.py", line
> > 248, in parse
> > state = parse_paths(writer, ParserState(), paths)
> > File "/usr/lib/pymodules/python2.6/pybootchartgui/parsing.py", line
> > 237, in parse_paths
> > state = _do_parse(writer, state, name, tf.extractfile(name))
> > File "/usr/lib/pymodules/python2.6/pybootchartgui/parsing.py", line
> > 201, in _do_parse
> > state.ps_stats = _parse_proc_ps_log(writer, file)
> > File "/usr/lib/pymodules/python2.6/pybootchartgui/parsing.py", line
> > 76, in _parse_proc_ps_log
> > offset = [index for index, token in enumerate(tokens[1:]) if
> > token[-1] == ')'][0]
> > IndexError: list index out of range
>
> > Can any one give me the pointers to solve this issue.
>
> > Regards,
> > Jagan- Hide quoted text -
>
> - Show quoted text -
--
unsubscribe: [email protected]
website: http://groups.google.com/group/android-kernel