Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: ghost@cs.msu.su
Cc: mark.kettenis@xs4all.nl, gdb-patches@sources.redhat.com
Subject: Re: [PATCH] MI: new timing command
Date: Sun, 31 Dec 2006 16:09:00 -0000	[thread overview]
Message-ID: <200612311609.kBVG9Fgh022431@brahms.sibelius.xs4all.nl> (raw)
In-Reply-To: <E1H12lf-0002Zf-GT@zigzag.lvk.cs.msu.su> (message from Vladimir 	Prus on Sun, 31 Dec 2006 18:37:58 +0300)

> X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on 
> 	zigzag.lvk.cs.msu.su
> X-Spam-Level: 
> X-Spam-Status: No, score=-4.4 required=5.5 tests=ALL_TRUSTED,BAYES_00 
> 	autolearn=ham version=3.1.7
> From: Vladimir Prus <ghost@cs.msu.su>
> Date: Sun, 31 Dec 2006 18:37:58 +0300
> X-XS4ALL-DNSBL-Checked: mxdrop37.xs4all.nl checked 158.250.17.23 against DNS blacklists
> X-Virus-Scanned: by XS4ALL Virus Scanner
> X-XS4ALL-Spam-Score: 0.0 () DK_POLICY_SIGNSOME,UNPARSEABLE_RELAY
> X-XS4ALL-Spam: NO
> Envelope-To: mark.kettenis@xs4all.nl
> X-UIDL: 1167579527._smtp.mxdrop37.60237,S=2952
> 
> Mark Kettenis wrote:
> 
> >> Date: Sun, 31 Dec 2006 10:15:27 -0500
> >> From: Daniel Jacobowitz <drow@false.org>
> >> 
> >> On Sun, Dec 31, 2006 at 08:42:12PM +1300, Nick Roberts wrote:
> >> > Daniel Jacobowitz writes:
> >> >  > In that case you can copy the necessary guards from that file.
> >> >  > However, it does more than just getrusage - it also supports
> >> >  > platforms with times() but without getrusage, which IIRC includes
> >> >  > Windows, so it might be better to use it.
> >> > 
> >> > But as a last resort it returns elapsed time which would be wrong.
> >> 
> >> You keep saying this but I don't see why.  Why is it wrong?  On every
> >> platform where we can do it, we'll print usage; on platforms where we
> >> can't do it, the odds are pretty good that the OS isn't aggressively
> >> scheduling other tasks in while we're running, so wall time is pretty
> >> close to right.
> > 
> > I agree completely.
> 
> 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.


  reply	other threads:[~2006-12-31 16:09 UTC|newest]

Thread overview: 57+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-30  8:52 Nick Roberts
2006-12-30 12:09 ` Vladimir Prus
2006-12-30 16:10   ` Eli Zaretskii
2006-12-31  3:26     ` Nick Roberts
2006-12-31  4:26       ` Eli Zaretskii
2006-12-31  6:55   ` Nick Roberts
2006-12-31 15:10     ` Daniel Jacobowitz
2007-01-01  4:11       ` Nick Roberts
2007-01-03 18:01         ` Daniel Jacobowitz
2007-01-03 21:50           ` Nick Roberts
2007-01-03 22:59             ` Daniel Jacobowitz
2007-01-04  2:50               ` Nick Roberts
2006-12-31 15:33     ` Vladimir Prus
2006-12-30 16:09 ` Eli Zaretskii
2006-12-30 22:10   ` Nick Roberts
2006-12-31  4:22     ` Eli Zaretskii
2006-12-31  4:25       ` Daniel Jacobowitz
2006-12-31  5:18         ` Nick Roberts
2006-12-31  5:49           ` Daniel Jacobowitz
2006-12-31  7:47             ` Nick Roberts
2006-12-31 15:15               ` Daniel Jacobowitz
2006-12-31 15:24                 ` Mark Kettenis
2006-12-31 15:39                   ` Vladimir Prus
2006-12-31 16:09                     ` Mark Kettenis [this message]
2006-12-31 16:21                       ` Vladimir Prus
2006-12-31 19:29                         ` Daniel Jacobowitz
2006-12-31 22:08                         ` Eli Zaretskii
2007-01-01  4:24                           ` Nick Roberts
2007-01-01  6:06                             ` Eli Zaretskii
2007-01-01  4:07                       ` Nick Roberts
2007-01-01  5:58                         ` Eli Zaretskii
2007-01-01 22:07                           ` Nick Roberts
2007-01-02  4:20                             ` Eli Zaretskii
2007-01-16  5:57                               ` Nick Roberts
2007-01-16 22:17                                 ` Eli Zaretskii
2007-01-16 22:30                                   ` Nick Roberts
2007-01-16 23:01                                     ` Eli Zaretskii
2007-01-20 17:27                                 ` Eli Zaretskii
2007-01-20 20:58                                   ` Nick Roberts
2007-01-27 14:53                                     ` Eli Zaretskii
2007-01-27 15:10                                       ` Eli Zaretskii
2007-01-27 22:12                                         ` Nick Roberts
2007-01-27 22:19                                           ` Nick Roberts
2007-01-27 22:08                                       ` Nick Roberts
2007-01-28  4:17                                         ` Eli Zaretskii
2007-01-28  5:31                                           ` Nick Roberts
2007-02-02 13:33                                             ` Eli Zaretskii
2007-02-02 23:28                                               ` Nick Roberts
2007-02-03 11:10                                                 ` Eli Zaretskii
2007-01-01  9:18                 ` Nick Roberts
2007-01-01 16:21                   ` Daniel Jacobowitz
2006-12-31 15:34               ` Vladimir Prus
2006-12-31 11:58       ` Mark Kettenis
2006-12-31  7:50   ` Nick Roberts
2006-12-31 18:33     ` Vladimir Prus
2007-01-01  4:18       ` Nick Roberts
2006-12-31 22:10     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200612311609.kBVG9Fgh022431@brahms.sibelius.xs4all.nl \
    --to=mark.kettenis@xs4all.nl \
    --cc=gdb-patches@sources.redhat.com \
    --cc=ghost@cs.msu.su \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox