Thanks, Thomas. I'm pretty busy at the moment. I'll try to integrate the tracer in the next week or so though.

I'm thinking I'll probably make a new Mesa/progs/tools/trace/ directory for this.

-Brian


Thomas Sondergaard wrote:
Hi Brian,

Brian Paul wrote:

1. Update the comments to include your name in the Authors list.
2. Maybe include an option to omit the date/hostname/process ID from the output. Also, add a semicolon at the end of the line so that a trace can be copied and pasted into a C program for testing/debugging (I realize pointer-valued functions won't work). 3. Make a short README file (txt or html) that I can include in the docs that explains how to build/use the tracer.



Here's a fully compilable version of gltrace, with the changes requested. Specifically, I have added myself to the authors list, added the trailing semicolon, removed the hostname/pid from the log entries and made timestamps optional. The package also includes a makefile, a readme and a shell script wrapper for using gltrace.so.

The attached files should be extracted to (MESADIR)/src/mesa/glapi. I understand that the files will need to go somewhere else, I just don't know where :-)

I haven't made the changes Ian Romanick suggested yet, I have only documented the shortcomings in the readme.

The attached archive has the following contents.

-rwxrwxr-x ts/ts          2663 2006-05-23 10:46:40 gltrace
-rw-rw-r-- ts/ts          6219 2006-05-22 17:52:51 gltrace.py
-rw-rw-r-- ts/ts          5391 2006-05-22 17:33:28 gltrace_support.cc
-rw-rw-r-- ts/ts          2027 2006-05-22 17:22:40 gltrace_support.h
-rw-rw-r-- ts/ts           230 2006-05-21 16:38:04 Makefile.gltrace
-rw-rw-r-- ts/ts           680 2006-05-23 10:43:07 README.gltrace

To build and test:

cd (MESADIR)/src/mesa/glapi
tar xvfz PATH_TO/gltrace.tgz
make -f Makefile.gltrace
(edit the gltrace shell script and set GLTRACE_SO to the correct absolute path)
./gltrace # to see usage
./gltrace -cet -l gl.log glxgears # with timestamps log calls and errors to gl.log

Looking forward to your comments.

Thomas



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to