Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!news.cs.indiana.edu!arizona.edu!arizona!slm From: slm@cs.arizona.edu (Sandy Miller) Newsgroups: comp.windows.x Subject: using gprof with an X application Keywords: gprof Message-ID: <1851@optima.cs.arizona.edu> Date: 12 Apr 91 23:56:16 GMT Sender: news@cs.arizona.edu Reply-To: slm@cs.arizona.edu (Sandy Miller) Organization: U of Arizona, CS Dept, Tucson Lines: 16 I have a program which links in the X libraries and creates windows, etc. using the Athena widgets and using X11R4. My "boss" would like me to run it with gprof to discover what is so slow (the X stuff, or the underlying algorithm). Unfortunately, when I try to compile and link with -pg or -p, I get the following error: ld: _DYNAMIC bootstrapping not available: use -Bstatic But when I add -Bstatic to the link arguments, I get the funcitons _XShapeQueryExtension and _XShapeCombineMask as undefined. Has anyone been able to compile X window programs with gprof or prof and been successful. If so, could you let me in on the secret? ;-) Thanks a million, -sandy