Also several enhancements to C decl parser.
There may be ambiguities.
Fixes the error "error: default argument for parameter of type '_CGLPixelFormatAttribute' has type 'int'".
Thanks to Brian Paul for spotting this.
This will note the time that each traced call required, and will dump this information during the replay, giving a basic idea of where CPU time was spent in the GL. Signed-off-by: José Fonseca <firstname.lastname@example.org>
To do this, we take advantage of the new Arg struct to save, for each arg, whether it was parsed after an ENTER event or after a LEAVE event.
It does pretty much the same as trace_writer_model.
This adds the functionality to read in a trace and create a new "trimmed" trace as the output. There's not yet any functionality for selecting pieces to trim out, so the implementation is currently just a trace copier, (which is also the name of the new supporting class).