Thanks for Gareth Help,
Now , I've build Xserver , and install it
successful

When I run glxgears,
it print out glx_init_prof, and glx_fini_prof.
But, how to produce gmon.out ??

I had tried to run xc/lib/GL/makeprofile.sh,
but print out some error message .... Is there
still any step to do for profiling ??

Sorry, I can't find some documents about it detail,
I only found Keith Whitwell post on this maillist
when 02/16/2000, and it seems out of date.


  Thanks

      junkers



On Mon, 4 Feb 2002, Gareth Hughes wrote:

> > Hello, Every body:
> >      
> >      Do any know how to build Xserver and DRI that can see profiling
> >  data through  gprof?? I've see there is an option in host.def(in )
> >  DRI cvs):
> > 
> > /* To do profiling of the dynamically loaded 'xyz_dri.so' object, turn
> >  * this on.
> >  * Use 'xc/lib/GL/makeprofile.sh' to make it work.
> >  */
> > /* #define GlxSoProf YES */
> > 
> > #ifdef GlxSoProf
> > #  undef DefaultCCOptions
> > #  define DefaultCCOptions -ansi GccWarningOptions -pipe -g -p
> > #endif
> > 
> >    but if I enable #define GlxSoProf YES, then try to build Xserver
> >  (after make lowpc.o, highpc.o by hand).When I start Xserver 
> > , it cause
> >  unsolved symbol and core dump.
> > 
> > Symbol mcount from modules /usr/X11R6/lib/modules/fonts/libbitmap.a is
> > unresolved!
> > 
> >    Do any one has ever try this??  Do any one can tell me how to prof
> > xxx_dri.so ??
> 
> You can only build what's inside xc/lib/GL with GlxSoProf set to YES.
> What you'll need to do is build the tree as usual, then do the
> following:
> 
>       <edit host.def to set GlxSoProf>
>       cd xc/lib/GL
>       make <insert command to clean everying -- clobber???>
>       make Makefile
>       make Makefiles
>       make
>       make install
> 
> Keith Whitwell can correct me if I'm wrong (it's been a while since I've
> done this).  I think there's some documentation about this somewhere...
> 
> -- Gareth
> 


_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to