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 |
long long int | histogram [32] |
|
static |
Definition at line 43 of file pg_test_timing.c.
References _, exit(), 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.
References _, histogram, i, Max, and printf.
Referenced by _crypt_blowfish_rn(), _crypt_gensalt_blowfish_rn(), _crypt_gensalt_extended_rn(), _crypt_gensalt_md5_rn(), _crypt_gensalt_traditional_rn(), adjust_data_dir(), be_gssapi_read(), be_gssapi_write(), brin_page_items(), CheckSASLAuth(), d2d(), dequoteAclUserName(), dttoasc(), dttofmtasc(), dttofmtasc_replace(), exec_command_sf_sv(), f2d(), get_bin_version(), get_control_data(), GetSafeSnapshotBlockingPids(), helpSQL(), helpVariables(), main(), pg_checksum_final(), pg_GSS_read(), pg_GSS_write(), pg_SASL_continue(), pg_saslprep(), pgtypes_fmt_replace(), PGTYPEStimestamp_fmt_asc(), pqsecure_open_gss(), print_with_linenumbers(), printHistory(), px_crypt_des(), quoteAclUserName(), scram_exchange(), secure_open_gssapi(), slashUsage(), statext_dependencies_serialize(), statext_ndistinct_serialize(), tbm_extract_page_tuple(), tbm_iterate(), tbm_shared_iterate(), test_shm_mq_setup(), to_chars(), to_chars_df(), to_chars_f(), usage(), and worker_freeze_result_tape().
|
static |
Definition at line 122 of file pg_test_timing.c.
References _, cur, duration, end_time, exit(), fprintf, histogram, INSTR_TIME_GET_DOUBLE, INSTR_TIME_GET_MICROSEC, INSTR_TIME_SET_CURRENT, INSTR_TIME_SUBTRACT, printf, and start_time.
Referenced by main().
long long int histogram[32] |
Definition at line 23 of file pg_test_timing.c.
Referenced by output(), and 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().