From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11084 invoked by alias); 31 Dec 2006 22:08:23 -0000 Received: (qmail 11075 invoked by uid 22791); 31 Dec 2006 22:08:22 -0000 X-Spam-Check-By: sourceware.org Received: from nitzan.inter.net.il (HELO nitzan.inter.net.il) (192.114.186.20) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 31 Dec 2006 22:08:17 +0000 Received: from HOME-C4E4A596F7 (IGLD-84-229-218-43.inter.net.il [84.229.218.43]) by nitzan.inter.net.il (MOS 3.7.3a-GA) with ESMTP id FPN79236 (AUTH halo1); Mon, 1 Jan 2007 00:08:13 +0200 (IST) Date: Sun, 31 Dec 2006 22:08:00 -0000 Message-Id: From: Eli Zaretskii To: Vladimir Prus CC: mark.kettenis@xs4all.nl, gdb-patches@sources.redhat.com In-reply-to: <200612311920.48710.ghost@cs.msu.su> (message from Vladimir Prus on Sun, 31 Dec 2006 19:20:48 +0300) Subject: Re: [PATCH] MI: new timing command Reply-to: Eli Zaretskii References: <17814.10139.269708.848818@kahikatea.snap.net.nz> <200612311609.kBVG9Fgh022431@brahms.sibelius.xs4all.nl> <200612311920.48710.ghost@cs.msu.su> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-12/txt/msg00426.txt.bz2 > From: Vladimir Prus > Date: Sun, 31 Dec 2006 19:20:48 +0300 > Cc: gdb-patches@sources.redhat.com > > On Sunday 31 December 2006 19:09, Mark Kettenis wrote: > > > > Is this important? This timing is entirely for diagnostic purposes, > > > so why try to make it work on every possible platform. We need to document > > > that -enable-timing may fail, and that's it. > > > > The point is to use get_run_time() from -liberty and never worry about > > portability again. > > And lose user/system/elapse time distinction? You don't have to lose it. How about if we use getrusage directly if it's available, else the libiberty replacement? That way, everybody will be as happy as they can expect, I think. > For me, having all those times > on Linux is more valuable than having any time at all on Windows. You are not the only user of GDB. There's no reason to gratuitously confine features to the only platform that you are interested in. Please remember that getrusage is not even portable enough on Posix platforms. > No because Windows is not important, but because I doubt there are > any plantform specific MI slowdowns. I'm sure you are wrong.