This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: gdb/symfile.c: Transfer rate calculation
- From: Shaun Jackman <sjackman at gmail dot com>
- To: gdb-patches at sources dot redhat dot com, gdb at sources dot redhat dot com
- Date: Thu, 14 Jul 2005 18:14:50 -0700
- Subject: Re: gdb/symfile.c: Transfer rate calculation
- References: <7f45d93905070816344ea65a3c@mail.gmail.com>
- Reply-to: Shaun Jackman <sjackman at gmail dot com>
Ping?
Cheers,
Shaun
On 2005-07-08, Shaun Jackman <sjackman@gmail.com> wrote:
> The transfer rate calculation in print_transfer_performance uses a
> time unit of whole seconds. This gross time unit limits the accuracy
> of the calculation, since the number of elapsed whole seconds usually
> has only one significant digit. This patch adds
> print_transfer_performance_ms which uses a time unit of milliseconds.
> It leaves the semantics of print_transfer_performance unchanged
> because gdb/m32r-rom.c and gdb/remote-m32r-sdi.c use it.
>
> Cheers,
> Shaun
>
> 2005-07-08 Shaun Jackman <sjackman@gmail.com>
>
> * gdb/symfile.c (print_transfer_performance_ms): New function.
> Use gettimeofday instead of date to obtain microsecond precision.
> (print_transfer_performance): Call print_transfer_performance_ms.
[patch clipped]