[comp.windows.x] profiling programs

kochhar@endor.harvard.edu (Sandeep Kochhar) (07/20/89)

Hi!
I have a program that uses the Xlib, Xt and Xaw;  I was trying
to profile the program and compiled everything with "cc -g -p ..."

When I tried running the program, it hung in select(); dbx showed the following
trace:
	select() at 0x4c298
	yp_match() at 0x4e554
	yp_match() at 0x4e408
	usingypmap() at 0x4d40c
	gethostent() at 0x49b28
	sethostent() at 0x496c8
	gethostbyname() at 0x49510
	_XConnectDisplay() at 0x262fc
	XOpenDisplay() at 0x2a644
	XtOpenDisplay() at 0xf6d4
	XtInitialize() at 0x13700
	main(argc = 1, argv = 0xf7fffb3c), line 551 in "cliptst.c"

Recompiling without the "-p" flag made it work fine again.

Any pointers??  Thanks in advance.




Sandeep Kochhar
(617) 495-9515              mail: kochhar@harvard.harvard.edu
Harvard University                kochhar@harvard.csnet
33 Oxford st,                     kochhar@harvard.uucp
Cambridge, Ma 02138               kochhar@harvard.bitnet

"If you didn't get this message, please let me know."