From: | Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com> |
---|---|
To: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Make getrusage() output a little more readable |
Date: | 2016-10-14 14:06:49 |
Message-ID: | 2f1e6c25-5ab9-1e57-00b7-86751ea1dcd6@2ndquadrant.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
The getrusage() output that is shown by VACUUM VERBOSE and other places
has always been a little too terse and confusing for me. I propose to
improve that a bit:
-CPU 0.01s/0.08u sec elapsed 0.18 sec.
+CPU: user: 0.08s, system: 0.01s, elapsed: 0.18s.
Patch attached.
I have also updated the ShowUsage() output used by log_parser_stats etc.
to match this change, but I don't claim that that output is particularly
readable either way.
While updating the VACUUM man page I noticed that the example output
doesn't match exactly anymore, but I didn't do anything about that in
this patch, just changed the lines that are affected by this patch.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Attachment | Content-Type | Size |
---|---|---|
0001-Make-getrusage-output-a-little-more-readable.patch | text/x-patch | 4.3 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Albe Laurenz | 2016-10-14 14:14:51 | Re: Add PGDLLEXPORT to PG_FUNCTION_INFO_V1 |
Previous Message | Stephen Frost | 2016-10-14 14:06:30 | Re: Renaming of pg_xlog and pg_clog |