1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Rename track_iotiming GUC to track_io_timing.

This spelling seems significantly more readable to me.
This commit is contained in:
Tom Lane
2012-04-29 16:23:54 -04:00
parent 5f2b089387
commit 309c64745e
7 changed files with 18 additions and 17 deletions

View File

@ -67,7 +67,7 @@
bool zero_damaged_pages = false;
int bgwriter_lru_maxpages = 100;
double bgwriter_lru_multiplier = 2.0;
bool track_iotiming = false;
bool track_io_timing = false;
/*
* How many buffers PrefetchBuffer callers should try to stay ahead of their
@ -441,12 +441,12 @@ ReadBuffer_common(SMgrRelation smgr, char relpersistence, ForkNumber forkNum,
instr_time io_start,
io_time;
if (track_iotiming)
if (track_io_timing)
INSTR_TIME_SET_CURRENT(io_start);
smgrread(smgr, forkNum, blockNum, (char *) bufBlock);
if (track_iotiming)
if (track_io_timing)
{
INSTR_TIME_SET_CURRENT(io_time);
INSTR_TIME_SUBTRACT(io_time, io_start);
@ -1938,7 +1938,7 @@ FlushBuffer(volatile BufferDesc *buf, SMgrRelation reln)
buf->flags &= ~BM_JUST_DIRTIED;
UnlockBufHdr(buf);
if (track_iotiming)
if (track_io_timing)
INSTR_TIME_SET_CURRENT(io_start);
smgrwrite(reln,
@ -1947,7 +1947,7 @@ FlushBuffer(volatile BufferDesc *buf, SMgrRelation reln)
(char *) BufHdrGetBlock(buf),
false);
if (track_iotiming)
if (track_io_timing)
{
INSTR_TIME_SET_CURRENT(io_time);
INSTR_TIME_SUBTRACT(io_time, io_start);

View File

@ -1019,11 +1019,11 @@ static struct config_bool ConfigureNamesBool[] =
NULL, NULL, NULL
},
{
{"track_iotiming", PGC_SUSET, STATS_COLLECTOR,
gettext_noop("Collects timing information for database IO activity."),
{"track_io_timing", PGC_SUSET, STATS_COLLECTOR,
gettext_noop("Collects timing statistics for database I/O activity."),
NULL
},
&track_iotiming,
&track_io_timing,
false,
NULL, NULL, NULL
},

View File

@ -425,7 +425,7 @@
#track_activities = on
#track_counts = on
#track_iotiming = off
#track_io_timing = off
#track_functions = none # none, pl, all
#track_activity_query_size = 1024 # (change requires restart)
#update_process_title = on

View File

@ -48,7 +48,7 @@ extern PGDLLIMPORT int NBuffers;
extern bool zero_damaged_pages;
extern int bgwriter_lru_maxpages;
extern double bgwriter_lru_multiplier;
extern bool track_iotiming;
extern bool track_io_timing;
extern int target_prefetch_pages;
/* in buf_init.c */