From tanner at real-time.com Mon Jul 7 12:23:01 2003 From: tanner at real-time.com (Bob Tanner) Date: Mon Jan 17 14:29:05 2005 Subject: [TCLUG-DEVEL] QThread vs select(2) Message-ID: <200307071219.01689@Twin.Cities.Linux.Users.Group-www.mn-linux.org> If you select(2) in a QThread and select(2) causes the process to sleep waiting for an event on the fd, does the entire QT application sleep (ie all threads) or just the thread that the select(2) was invoked? My simple program seems to demonstrate the entire program sleeps. If that is the case how do you keep your gui lively yet wait for some sort of async IO even? -- Bob Tanner | Phone : (952)943-8700 http://www.mn-linux.org, Minnesota, Linux | Fax : (952)943-8500 Key fingerprint = AB15 0BDF BCDE 4369 5B42 1973 7CF1 A709 2CC1 B288 _______________________________________________ tclug-devel mailing list tclug-devel@mn-linux.org https://mailman.real-time.com/mailman/listinfo/tclug-devel From aravind at ece.umn.edu Wed Jul 9 16:24:02 2003 From: aravind at ece.umn.edu (Aravindan Raghuveer) Date: Mon Jan 17 14:29:05 2005 Subject: [TCLUG-DEVEL] Performance Analysis Tools Message-ID: Hello, I am developing a multithreaded application and I need to analyse the performance of the same. [Need to know how much time is being spent in each function call etc] Does anybody know of a good way to do this. Thanks in advance, Regards, -Aravind. Aravindan Raghuveer Graduate Student Department of Electrical and Computer Engineering University of Minnesota Minneapolis, MN _______________________________________________ tclug-devel mailing list tclug-devel@mn-linux.org https://mailman.real-time.com/mailman/listinfo/tclug-devel From dieman at ringworld.org Wed Jul 9 16:40:02 2003 From: dieman at ringworld.org (Scott Dier - dieman) Date: Mon Jan 17 14:29:06 2005 Subject: [TCLUG-DEVEL] Re: Performance Analysis Tools In-Reply-To: Message-ID: What language are you working in and with what sort of tools at the moment? On Wed, 9 Jul 2003, Aravindan Raghuveer wrote: > Hello, > > I am developing a multithreaded application and I need to analyse > the performance of the same. [Need to know how much time is > being spent in each function call etc] Does anybody know of a good > way to do this. > > Thanks in advance, > > Regards, > > -Aravind. > > Aravindan Raghuveer > Graduate Student > Department of Electrical and Computer Engineering > University of Minnesota > Minneapolis, MN > > _______________________________________________ > tclug-devel mailing list > tclug-devel@mn-linux.org > https://mailman.real-time.com/mailman/listinfo/tclug-devel > > -- Scott Dier KC0OBS http://www.ringworld.org/ _______________________________________________ tclug-devel mailing list tclug-devel@mn-linux.org https://mailman.real-time.com/mailman/listinfo/tclug-devel From tanner at real-time.com Wed Jul 9 16:49:01 2003 From: tanner at real-time.com (tanner@real-time.com) Date: Mon Jan 17 14:29:06 2005 Subject: [TCLUG-DEVEL] Performance Analysis Tools In-Reply-To: ; from aravind@ece.umn.edu on Wed, Jul 09, 2003 at 04:20:09PM -0500 References: Message-ID: <20030709164730.X10257@real-time.com> Quoting Aravindan Raghuveer (aravind@ece.umn.edu): > Hello, > > I am developing a multithreaded application and I need to analyse > the performance of the same. [Need to know how much time is > being spent in each function call etc] Does anybody know of a good > way to do this. > > Thanks in advance, I think valgrind (and one of it's frontends will work). -- Bob Tanner | Phone : (952)943-8700 http://www.mn-linux.org, Minnesota, Linux | Fax : (952)943-8500 Key fingerprint = AB15 0BDF BCDE 4369 5B42 1973 7CF1 A709 2CC1 B288 _______________________________________________ tclug-devel mailing list tclug-devel@mn-linux.org https://mailman.real-time.com/mailman/listinfo/tclug-devel From aravind at ece.umn.edu Wed Jul 9 16:56:01 2003 From: aravind at ece.umn.edu (Aravindan Raghuveer) Date: Mon Jan 17 14:29:06 2005 Subject: [TCLUG-DEVEL] Re: Performance Analysis Tools In-Reply-To: References: Message-ID: Hi, Thanks for the response. I use gcc-3.2.2 and the SDL and Gtk libraries. gdb to do some debugging. Thats about it. Regards, -Aravind. On Wed, 9 Jul 2003, Scott Dier - dieman wrote: > What language are you working in and with what sort of tools at the > moment? > > On Wed, 9 Jul 2003, Aravindan Raghuveer wrote: > > > Hello, > > > > I am developing a multithreaded application and I need to analyse > > the performance of the same. [Need to know how much time is > > being spent in each function call etc] Does anybody know of a good > > way to do this. > > > > Thanks in advance, > > > > Regards, > > > > -Aravind. > > > > Aravindan Raghuveer > > Graduate Student > > Department of Electrical and Computer Engineering > > University of Minnesota > > Minneapolis, MN > > > > _______________________________________________ > > tclug-devel mailing list > > tclug-devel@mn-linux.org > > https://mailman.real-time.com/mailman/listinfo/tclug-devel > > > > > > -- > Scott Dier KC0OBS http://www.ringworld.org/ > > Aravindan Raghuveer Graduate Student Department of Electrical and Computer Engineering University of Minnesota Minneapolis, MN _______________________________________________ tclug-devel mailing list tclug-devel@mn-linux.org https://mailman.real-time.com/mailman/listinfo/tclug-devel From mbresnah at visi.com Wed Jul 9 18:46:00 2003 From: mbresnah at visi.com (Mike Bresnahan) Date: Mon Jan 17 14:29:06 2005 Subject: [TCLUG-DEVEL] Performance Analysis Tools In-Reply-To: References: Message-ID: <200307091844.13004.mbresnah@visi.com> On Wednesday 09 July 2003 16:20, Aravindan Raghuveer wrote: > I am developing a multithreaded application and I need to analyse > the performance of the same. [Need to know how much time is > being spent in each function call etc] Does anybody know of a good > way to do this. Here's a few choices. gprof - see your man pages (Open Source) Valgrind - http://developer.kde.org/~sewardj (Open Source) Rational Quantify - http://www.rational.com (Commercial) I know Intel has a profiler also, but I dunno if it is supported on Linux. Mike _______________________________________________ tclug-devel mailing list tclug-devel@mn-linux.org https://mailman.real-time.com/mailman/listinfo/tclug-devel From eh at constantdata.com Sun Jul 13 19:45:02 2003 From: eh at constantdata.com (A. A. El Haddi) Date: Mon Jan 17 14:29:06 2005 Subject: [TCLUG-DEVEL] Performance Analysis Tools In-Reply-To: Message-ID: A free one is prof/gprof. Compile with -p or -pg for gcc. Combine this with a static complexity analysis to get a good feel. MT apps are a bit tricky to profile if your functions are called by the different threads and these threads have different paths. --elhaddi On Wed, 9 Jul 2003, Aravindan Raghuveer wrote: > Hello, > > I am developing a multithreaded application and I need to analyse > the performance of the same. [Need to know how much time is > being spent in each function call etc] Does anybody know of a good > way to do this. > > Thanks in advance, > > Regards, > > -Aravind. > > Aravindan Raghuveer > Graduate Student > Department of Electrical and Computer Engineering > University of Minnesota > Minneapolis, MN > > _______________________________________________ > tclug-devel mailing list > tclug-devel@mn-linux.org > https://mailman.real-time.com/mailman/listinfo/tclug-devel > -- _______________________________________________ tclug-devel mailing list tclug-devel@mn-linux.org https://mailman.real-time.com/mailman/listinfo/tclug-devel From tanner at real-time.com Tue Jul 22 11:23:01 2003 From: tanner at real-time.com (Bob Tanner) Date: Mon Jan 17 14:29:06 2005 Subject: [TCLUG-DEVEL] $PATH in X vs cli? Message-ID: <200307221122.16739@Twin.Cities.Linux.Users.Group-www.mn-linux.org> When I log into boxA via cli, I get this: PATH=/staff/tanner/bin:/usr/libexec/ccache/bin:/usr/libexec/distcc/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin But when I log in via X PATH=/usr/libexec/ccache/bin:/usr/libexec/distcc/bin:/usr/libexec/ccache/bin:/usr/libexec/distcc/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/bin:/sbin:/usr/sbin:/usr/java/j2sdk1.4.1//bin Where in the X login sequence does it [re]set the PATH? -- Bob Tanner | Phone : (952)943-8700 http://www.mn-linux.org, Minnesota, Linux | Fax : (952)943-8500 Key fingerprint = AB15 0BDF BCDE 4369 5B42 1973 7CF1 A709 2CC1 B288 _______________________________________________ tclug-devel mailing list tclug-devel@mn-linux.org https://mailman.real-time.com/mailman/listinfo/tclug-devel From dieman at ringworld.org Tue Jul 22 11:50:01 2003 From: dieman at ringworld.org (Scott Dier - dieman) Date: Mon Jan 17 14:29:06 2005 Subject: [TCLUG-DEVEL] Re: $PATH in X vs cli? In-Reply-To: <200307221122.16739@Twin.Cities.Linux.Users.Group-www.mn-linux.org> Message-ID: Depends. Might be pam (pam_env), might be /etc/X11/Xsession, might be the chosen session in /etc/gdm/Sessions ... On Tue, 22 Jul 2003, Bob Tanner wrote: > When I log into boxA via cli, I get this: > > PATH=/staff/tanner/bin:/usr/libexec/ccache/bin:/usr/libexec/distcc/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin > > But when I log in via X > > PATH=/usr/libexec/ccache/bin:/usr/libexec/distcc/bin:/usr/libexec/ccache/bin:/usr/libexec/distcc/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/bin:/sbin:/usr/sbin:/usr/java/j2sdk1.4.1//bin > > Where in the X login sequence does it [re]set the PATH? > > -- Scott Dier KC0OBS http://www.ringworld.org/ _______________________________________________ tclug-devel mailing list tclug-devel@mn-linux.org https://mailman.real-time.com/mailman/listinfo/tclug-devel