You've already forked explain.depesz.com
mirror of
https://gitlab.com/depesz/explain.depesz.com.git
synced 2025-07-17 01:42:34 +02:00
Avoid redundant unit info when displaying I/O stats
This commit is contained in:
@ -945,7 +945,7 @@ CREATE INDEX CONCURRENTLY <%= db_ident_quote( "explain_depesz_com_hint_${id}_${n
|
|||||||
<h1>I/O stats</h1>
|
<h1>I/O stats</h1>
|
||||||
<ul>
|
<ul>
|
||||||
% if ( $buf_r ) {
|
% if ( $buf_r ) {
|
||||||
<li>Query read <%= humanize_size( 8192 * $buf_r ) %> bytes from disk (or system disk cache)
|
<li>Query read <%= humanize_size( 8192 * $buf_r ) %> from disk (or system disk cache)
|
||||||
% my $t = $explain->total_buffers->data->{'timings'}->{'read'};
|
% my $t = $explain->total_buffers->data->{'timings'}->{'read'};
|
||||||
% if ( $t ) {
|
% if ( $t ) {
|
||||||
in <%= commify_number( $t) %> ms, at ~ <%= humanize_size( 8192 * $buf_r * 1000 / $t ) %>/s
|
in <%= commify_number( $t) %> ms, at ~ <%= humanize_size( 8192 * $buf_r * 1000 / $t ) %>/s
|
||||||
@ -953,7 +953,7 @@ CREATE INDEX CONCURRENTLY <%= db_ident_quote( "explain_depesz_com_hint_${id}_${n
|
|||||||
</li>
|
</li>
|
||||||
% }
|
% }
|
||||||
% if ( $buf_w ) {
|
% if ( $buf_w ) {
|
||||||
<li>Query wrote <%= humanize_size( 8192 * $buf_w ) %> bytes to disk
|
<li>Query wrote <%= humanize_size( 8192 * $buf_w ) %> to disk
|
||||||
% my $t = $explain->total_buffers->data->{'timings'}->{'write'};
|
% my $t = $explain->total_buffers->data->{'timings'}->{'write'};
|
||||||
% if ( $t ) {
|
% if ( $t ) {
|
||||||
in <%= commify_number( $t) %> ms, at ~ <%= humanize_size( 8192 * $buf_w * 1000 / $t ) %>/s
|
in <%= commify_number( $t) %> ms, at ~ <%= humanize_size( 8192 * $buf_w * 1000 / $t ) %>/s
|
||||||
|
Reference in New Issue
Block a user