PostgreSQL Source Code
git master
|
#include <sys/time.h>
Go to the source code of this file.
Macros | |
#define | INSTR_TIME_IS_ZERO(t) ((t).tv_usec == 0 && (t).tv_sec == 0) |
#define | INSTR_TIME_SET_ZERO(t) ((t).tv_sec = 0, (t).tv_usec = 0) |
#define | INSTR_TIME_SET_CURRENT(t) gettimeofday(&(t), NULL) |
#define | INSTR_TIME_ADD(x, y) |
#define | INSTR_TIME_SUBTRACT(x, y) |
#define | INSTR_TIME_ACCUM_DIFF(x, y, z) |
#define | INSTR_TIME_GET_DOUBLE(t) (((double) (t).tv_sec) + ((double) (t).tv_usec) / 1000000.0) |
#define | INSTR_TIME_GET_MILLISEC(t) (((double) (t).tv_sec * 1000.0) + ((double) (t).tv_usec) / 1000.0) |
#define | INSTR_TIME_GET_MICROSEC(t) (((uint64) (t).tv_sec * (uint64) 1000000) + (uint64) (t).tv_usec) |
#define | INSTR_TIME_SET_CURRENT_LAZY(t) (INSTR_TIME_IS_ZERO(t) ? INSTR_TIME_SET_CURRENT(t), true : false) |
Typedefs | |
typedef struct timeval | instr_time |
#define INSTR_TIME_ACCUM_DIFF | ( | x, | |
y, | |||
z | |||
) |
Definition at line 182 of file instr_time.h.
Referenced by advanceConnectionState(), BufferUsageAccumDiff(), InstrStopNode(), llvm_compile_expr(), llvm_compile_module(), llvm_get_function(), and threadRun().
#define INSTR_TIME_ADD | ( | x, | |
y | |||
) |
Definition at line 158 of file instr_time.h.
Referenced by BufferUsageAdd(), ExplainPrintJIT(), FlushBuffer(), InstrAggNode(), InstrJitAgg(), main(), pgstat_end_function_usage(), and ReadBuffer_common().
#define INSTR_TIME_GET_DOUBLE | ( | t | ) | (((double) (t).tv_sec) + ((double) (t).tv_usec) / 1000000.0) |
Definition at line 199 of file instr_time.h.
Referenced by advanceConnectionState(), elapsed_time(), ExplainOnePlan(), ExplainPrintJIT(), initGenerateDataClientSide(), InstrEndLoop(), InstrStopNode(), llvm_compile_module(), printResults(), runInitSteps(), and test_timing().
#define INSTR_TIME_GET_MICROSEC | ( | t | ) | (((uint64) (t).tv_sec * (uint64) 1000000) + (uint64) (t).tv_usec) |
Definition at line 205 of file instr_time.h.
Referenced by advanceConnectionState(), count_nondeletable_pages(), executeMetaCommand(), FlushBuffer(), main(), pgstat_send_funcstats(), ProcessSyncRequests(), processXactStats(), ReadBuffer_common(), set_random_seed(), test_timing(), and threadRun().
#define INSTR_TIME_GET_MILLISEC | ( | t | ) | (((double) (t).tv_sec * 1000.0) + ((double) (t).tv_usec) / 1000.0) |
Definition at line 202 of file instr_time.h.
Referenced by ConditionVariableTimedSleep(), DescribeQuery(), ExecQueryUsingCursor(), pg_stat_get_xact_function_self_time(), pg_stat_get_xact_function_total_time(), pgss_planner(), pgss_ProcessUtility(), pgss_store(), PSQLexecWatch(), run_schedule(), run_single_test(), SendQuery(), show_buffer_usage(), system_time_nextsampleblock(), and WaitEventSetWait().
#define INSTR_TIME_IS_ZERO | ( | t | ) | ((t).tv_usec == 0 && (t).tv_sec == 0) |
Definition at line 152 of file instr_time.h.
Referenced by InstrEndLoop(), InstrStopNode(), and show_buffer_usage().
#define INSTR_TIME_SET_CURRENT | ( | t | ) | gettimeofday(&(t), NULL) |
Definition at line 156 of file instr_time.h.
Referenced by advanceConnectionState(), ConditionVariableTimedSleep(), count_nondeletable_pages(), DescribeQuery(), elapsed_time(), ExecQueryUsingCursor(), ExplainExecuteQuery(), ExplainOnePlan(), ExplainOneQuery(), FlushBuffer(), initGenerateDataClientSide(), InstrStopNode(), llvm_compile_expr(), llvm_compile_module(), llvm_get_function(), main(), pgss_planner(), pgss_ProcessUtility(), pgstat_end_function_usage(), pgstat_init_function_usage(), ProcessSyncRequests(), PSQLexecWatch(), ReadBuffer_common(), run_schedule(), run_single_test(), runInitSteps(), SendQuery(), set_random_seed(), system_time_nextsampleblock(), test_timing(), threadRun(), wait_for_tests(), and WaitEventSetWait().
#define INSTR_TIME_SET_CURRENT_LAZY | ( | t | ) | (INSTR_TIME_IS_ZERO(t) ? INSTR_TIME_SET_CURRENT(t), true : false) |
Definition at line 253 of file instr_time.h.
Referenced by advanceConnectionState(), executeMetaCommand(), InstrStartNode(), and processXactStats().
#define INSTR_TIME_SET_ZERO | ( | t | ) | ((t).tv_sec = 0, (t).tv_usec = 0) |
Definition at line 154 of file instr_time.h.
Referenced by advanceConnectionState(), executeMetaCommand(), ExplainPrintJIT(), InstrEndLoop(), InstrStopNode(), main(), and threadRun().
#define INSTR_TIME_SUBTRACT | ( | x, | |
y | |||
) |
Definition at line 170 of file instr_time.h.
Referenced by ConditionVariableTimedSleep(), count_nondeletable_pages(), DescribeQuery(), elapsed_time(), ExecQueryUsingCursor(), ExplainExecuteQuery(), ExplainOneQuery(), FlushBuffer(), initGenerateDataClientSide(), main(), pgss_planner(), pgss_ProcessUtility(), pgstat_end_function_usage(), ProcessSyncRequests(), PSQLexecWatch(), ReadBuffer_common(), run_schedule(), run_single_test(), runInitSteps(), SendQuery(), system_time_nextsampleblock(), test_timing(), threadRun(), and WaitEventSetWait().
typedef struct timeval instr_time |
Definition at line 150 of file instr_time.h.