|
PostgreSQL Source Code git master
|
#include "postgres_fe.h"#include <limits.h>#include "getopt_long.h"#include "port/pg_bitutils.h"#include "portability/instr_time.h"
Go to the source code of this file.
Macros | |
| #define | NUM_DIRECT 10000 |
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 double | max_rprct = 99.99 |
| static long long int | histogram [32] |
| static long long int | direct_histogram [NUM_DIRECT] |
| static int32 | largest_diff |
| static long long int | largest_diff_count |
| #define NUM_DIRECT 10000 |
Definition at line 24 of file pg_test_timing.c.
|
static |
Definition at line 54 of file pg_test_timing.c.
References _, fprintf, getopt_long(), max_rprct, ngettext, optarg, optind, printf, progname, required_argument, and test_duration.
Referenced by main().
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 37 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 235 of file pg_test_timing.c.
Referenced by main().
|
static |
Definition at line 153 of file pg_test_timing.c.
References _, cur, direct_histogram, duration, end_time, fprintf, histogram, INSTR_TIME_GET_DOUBLE, INSTR_TIME_GET_NANOSEC, INSTR_TIME_SET_CURRENT, INSTR_TIME_SUBTRACT, INT64CONST, largest_diff, largest_diff_count, NUM_DIRECT, pg_leftmost_one_pos32(), printf, start_time, and unlikely.
Referenced by main().
|
static |
Definition at line 25 of file pg_test_timing.c.
Referenced by test_timing().
|
static |
Definition at line 21 of file pg_test_timing.c.
Referenced by test_timing().
|
static |
Definition at line 28 of file pg_test_timing.c.
Referenced by test_timing().
|
static |
Definition at line 29 of file pg_test_timing.c.
Referenced by test_timing().
|
static |
Definition at line 18 of file pg_test_timing.c.
Referenced by handle_args().
|
static |
Definition at line 15 of file pg_test_timing.c.
Referenced by handle_args(), and main().
|
static |
Definition at line 17 of file pg_test_timing.c.
Referenced by handle_args(), and main().