PostgreSQL Source Code git master
|
#include "postgres_fe.h"
#include <limits.h>
#include "getopt_long.h"
#include "portability/instr_time.h"
Go to the source code of this file.
Functions | |
static void | handle_args (int argc, char *argv[]) |
static uint64 | test_timing (unsigned int duration) |
static void | output (uint64 loop_count) |
int | main (int argc, char *argv[]) |
Variables | |
static const char * | progname |
static unsigned int | test_duration = 3 |
static long long int | histogram [32] |
|
static |
Definition at line 43 of file pg_test_timing.c.
References _, fprintf, getopt_long(), ngettext, optarg, optind, printf, progname, required_argument, and test_duration.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 26 of file pg_test_timing.c.
References get_progname(), handle_args(), output(), PG_TEXTDOMAIN, progname, set_pglocale_pgservice(), test_duration, and test_timing().
|
static |
Definition at line 182 of file pg_test_timing.c.
Referenced by main().
|
static |
Definition at line 122 of file pg_test_timing.c.
References _, cur, duration, end_time, fprintf, histogram, INSTR_TIME_GET_DOUBLE, INSTR_TIME_GET_MICROSEC, INSTR_TIME_SET_CURRENT, INSTR_TIME_SUBTRACT, INT64CONST, printf, and start_time.
Referenced by main().
|
static |
Definition at line 23 of file pg_test_timing.c.
Referenced by test_timing().
|
static |
Definition at line 14 of file pg_test_timing.c.
Referenced by handle_args(), and main().
|
static |
Definition at line 16 of file pg_test_timing.c.
Referenced by handle_args(), and main().