gdb/symfile.c: Transfer rate calculation
Shaun Jackman
sjackman@gmail.com
Fri Jul 15 01:14:00 GMT 2005
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]
More information about the Gdb
mailing list