This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdb/symfile.c: Transfer rate calculation


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]


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]