gcode-mirror / xdebugtoolkit

Automatically exported from code.google.com/p/xdebugtoolkit
0 stars 0 forks source link

Add parsing of appended xdebug cg files #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Add parsing of appended xdebug cg files.
Currently the cg parser will fail if meet one.

http://www.xdebug.org/docs/all_settings#profiler_append

Original issue reported on code.google.com by Alexey.K...@gmail.com on 16 Nov 2008 at 3:51

Attachments:

GoogleCodeExporter commented 9 years ago
I think this is the same issue. The error I am getting is:
Traceback (most recent call last):
  File "cg2dot.py", line 25, in <module>
    tree = XdebugCachegrindTreeBuilder(xdebug_parser).get_tree()
  File "/home/yuval/software/xdebugtoolkit/reader.py", line 108, in get_tree
    body_obj = self.parser.get_body()
  File "/home/yuval/software/xdebugtoolkit/cgparser.py", line 293, in get_body
    header = self.get_header()
  File "/home/yuval/software/xdebugtoolkit/cgparser.py", line 280, in get_header
    raise Exception(line_no, line, token)
Exception: (2, '==== NEW PROFILING FILE 
==============================================\n', None)

bumping.

Original comment by yha...@gmail.com on 13 May 2009 at 6:25

GoogleCodeExporter commented 9 years ago
Hello yhager,

After weighting consumptions of adding this sort of parsing and it's conflicts 
with
other features, I decided to make at first another simple tool for splitting 
appended
files into regular ones, that you will be able to process using cg2dot. This 
tool
will be ready in a few days.

Original comment by Alexey.K...@gmail.com on 3 Jun 2009 at 9:51

GoogleCodeExporter commented 9 years ago
r75

This simple tool can be executed like
{{{
./cgsplit.py path/to/file.cg [...]
}}}

It will split the files into enumerated ones like file.0.cg, file.1.cg, etc in 
the
current directory.

In my case with tth.cg the command looks this way:
{{{
./cgsplit.py fixtures/tth.cg; ./cg2dot.py tth.*.cg | ./xdot.py -
}}}

Hope this helps you.

Original comment by Alexey.K...@gmail.com on 4 Jun 2009 at 3:03

GoogleCodeExporter commented 9 years ago

Original comment by Alexey.K...@gmail.com on 5 Jun 2009 at 10:00