Go to the documentation of this file.
85 (
size_t)(
op -
ops), (
void*)1,
108 reinterpret_cast<void*
>(1),
nullptr);
124 reinterpret_cast<void*
>(1),
nullptr);
138 void (*do_one_step)();
146 int main(
int argc,
char** argv) {
154 int payload_size = 1;
156 const char*
target =
"localhost:443";
160 scenario sc = {
nullptr,
nullptr,
nullptr};
165 fake_argv[0] = argv[0];
170 int warmup_seconds = 1;
171 int benchmark_seconds = 5;
GPRAPI void grpc_slice_unref(grpc_slice s)
struct grpc_byte_buffer * send_message
grpc_metadata_array * trailing_metadata
gpr_timespec grpc_timeout_seconds_to_deadline(int64_t time_s)
grpc_status_code * status
GRPCAPI grpc_byte_buffer * grpc_raw_byte_buffer_create(grpc_slice *slices, size_t nslices)
return memset(p, 0, total)
static void init_ping_pong_request(void)
GPRAPI grpc_slice grpc_slice_from_copied_string(const char *source)
struct grpc_op::grpc_op_data::grpc_op_send_initial_metadata send_initial_metadata
#define GPR_TIMER_SCOPE(tag, important)
static void step_ping_pong_stream(void)
void gpr_cmdline_destroy(gpr_cmdline *cl)
static grpc_byte_buffer * the_buffer
GPRAPI gpr_timespec gpr_inf_future(gpr_clock_type type)
void gpr_cmdline_add_flag(gpr_cmdline *cl, const char *name, const char *help, int *value)
static void step_ping_pong_request(void)
static grpc_op stream_init_ops[2]
static void init_ping_pong_stream(void)
struct grpc_op::grpc_op_data::grpc_op_recv_message recv_message
void grpc_profiler_start(const char *filename)
union grpc_op::grpc_op_data data
static grpc_op stream_step_ops[2]
struct grpc_byte_buffer ** recv_message
static grpc_metadata_array trailing_metadata_recv
void gpr_timers_set_log_filename(const char *)
void grpc_histogram_destroy(grpc_histogram *h)
@ GRPC_OP_RECV_INITIAL_METADATA
GPRAPI int gpr_time_cmp(gpr_timespec a, gpr_timespec b)
GRPCAPI void grpc_call_unref(grpc_call *call)
GPRAPI void gpr_log(const char *file, int line, gpr_log_severity severity, const char *format,...) GPR_PRINT_FORMAT_CHECK(4
void gpr_cmdline_add_string(gpr_cmdline *cl, const char *name, const char *help, const char **value)
struct grpc_call grpc_call
static grpc_byte_buffer * response_payload_recv
GRPCAPI grpc_channel_credentials * grpc_insecure_credentials_create()
static grpc_histogram * histogram
GPRAPI grpc_slice grpc_slice_from_static_string(const char *source)
static grpc_status_code status
static const scenario scenarios[]
double grpc_histogram_percentile(grpc_histogram *h, double percentile)
GPRAPI gpr_timespec gpr_now(gpr_clock_type clock)
grpc_histogram * grpc_histogram_create(double resolution, double max_bucket_start)
grpc_slice * status_details
gpr_clock_type clock_type
static grpc_slice details
GRPCAPI void grpc_channel_credentials_release(grpc_channel_credentials *creds)
GRPCAPI grpc_call * grpc_channel_create_call(grpc_channel *channel, grpc_call *parent_call, uint32_t propagation_mask, grpc_completion_queue *completion_queue, grpc_slice method, const grpc_slice *host, gpr_timespec deadline, void *reserved)
#define GPR_ARRAY_SIZE(array)
GRPCAPI grpc_channel * grpc_channel_create(const char *target, grpc_channel_credentials *creds, const grpc_channel_args *args)
void gpr_cmdline_add_int(gpr_cmdline *cl, const char *name, const char *help, int *value)
#define GRPC_PROPAGATE_DEFAULTS
GRPCAPI void grpc_completion_queue_destroy(grpc_completion_queue *cq)
@ GRPC_OP_SEND_INITIAL_METADATA
struct grpc_op::grpc_op_data::grpc_op_send_message send_message
struct grpc_op::grpc_op_data::grpc_op_recv_status_on_client recv_status_on_client
GRPCAPI void grpc_byte_buffer_destroy(grpc_byte_buffer *bb)
GRPCAPI grpc_event grpc_completion_queue_next(grpc_completion_queue *cq, gpr_timespec deadline, void *reserved)
void grpc_profiler_stop(void)
GRPCAPI void grpc_completion_queue_shutdown(grpc_completion_queue *cq)
gpr_cmdline * gpr_cmdline_create(const char *description)
GRPCAPI void grpc_channel_destroy(grpc_channel *channel)
struct grpc_channel grpc_channel
void grpc_histogram_add(grpc_histogram *h, double x)
GRPCAPI grpc_completion_queue * grpc_completion_queue_create_for_next(void *reserved)
struct grpc_op::grpc_op_data::grpc_op_recv_initial_metadata recv_initial_metadata
grpc_completion_type type
GRPCAPI void grpc_init(void)
@ GRPC_OP_RECV_STATUS_ON_CLIENT
int main(int argc, char **argv)
static grpc_channel * channel
static grpc_metadata_array initial_metadata_recv
GRPCAPI grpc_call_error grpc_call_start_batch(grpc_call *call, const grpc_op *ops, size_t nops, void *tag, void *reserved)
GRPCAPI void grpc_shutdown(void)
static grpc_completion_queue * cq
@ GRPC_OP_SEND_CLOSE_FROM_CLIENT
GRPCAPI void grpc_metadata_array_init(grpc_metadata_array *array)
int gpr_cmdline_parse(gpr_cmdline *cl, int argc, char **argv)
grpc
Author(s):
autogenerated on Fri May 16 2025 02:57:54