#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <string>
#include "absl/flags/flag.h"
#include "absl/flags/parse.h"
#include <grpc/grpc.h>
#include <grpc/grpc_security.h>
#include "test/core/memory_usage/memstats.h"
#include <unistd.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include <grpc/support/time.h>
#include "src/core/lib/channel/channel_args.h"
#include "src/core/lib/gprpp/host_port.h"
#include "test/core/end2end/data/ssl_test_data.h"
#include "test/core/util/port.h"
#include "test/core/util/test_config.h"
Go to the source code of this file.
|
enum | fling_server_tags {
FLING_SERVER_NEW_REQUEST = 1,
FLING_SERVER_READ_FOR_UNARY,
FLING_SERVER_BATCH_OPS_FOR_UNARY,
FLING_SERVER_SEND_INIT_METADATA_FOR_STREAMING,
FLING_SERVER_READ_FOR_STREAMING,
FLING_SERVER_WRITE_FOR_STREAMING,
FLING_SERVER_SEND_STATUS_FOR_STREAMING,
FLING_SERVER_NEW_REQUEST = 1,
FLING_SERVER_SEND_INIT_METADATA,
FLING_SERVER_WAIT_FOR_DESTROY,
FLING_SERVER_SEND_STATUS_FLING_CALL,
FLING_SERVER_SEND_STATUS_SNAPSHOT,
FLING_SERVER_BATCH_SEND_STATUS_FLING_CALL
} |
|
|
| ABSL_FLAG (bool, minstack, false, "Use minimal stack") |
|
| ABSL_FLAG (bool, secure, false, "Use security") |
|
| ABSL_FLAG (std::string, bind, "", "Bind host:port") |
|
int | main (int argc, char **argv) |
|
static void | request_call_unary (int call_idx) |
|
static void | send_initial_metadata_unary (void *tag) |
|
static void | send_snapshot (void *tag, MemStats *snapshot) |
|
static void | send_status (void *tag) |
|
static void | sigint_handler (int) |
|
static void * | tag (intptr_t t) |
|
◆ fling_server_tags
Enumerator |
---|
FLING_SERVER_NEW_REQUEST | |
FLING_SERVER_READ_FOR_UNARY | |
FLING_SERVER_BATCH_OPS_FOR_UNARY | |
FLING_SERVER_SEND_INIT_METADATA_FOR_STREAMING | |
FLING_SERVER_READ_FOR_STREAMING | |
FLING_SERVER_WRITE_FOR_STREAMING | |
FLING_SERVER_SEND_STATUS_FOR_STREAMING | |
FLING_SERVER_NEW_REQUEST | |
FLING_SERVER_SEND_INIT_METADATA | |
FLING_SERVER_WAIT_FOR_DESTROY | |
FLING_SERVER_SEND_STATUS_FLING_CALL | |
FLING_SERVER_SEND_STATUS_SNAPSHOT | |
FLING_SERVER_BATCH_SEND_STATUS_FLING_CALL | |
Definition at line 62 of file test/core/memory_usage/server.cc.
◆ ABSL_FLAG() [1/3]
◆ ABSL_FLAG() [2/3]
ABSL_FLAG |
( |
bool |
, |
|
|
secure |
, |
|
|
false |
, |
|
|
"Use security" |
|
|
) |
| |
◆ ABSL_FLAG() [3/3]
ABSL_FLAG |
( |
std::string |
, |
|
|
bind |
, |
|
|
"" |
, |
|
|
"Bind host:port" |
|
|
) |
| |
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ request_call_unary()
static void request_call_unary |
( |
int |
call_idx | ) |
|
|
static |
◆ send_initial_metadata_unary()
static void send_initial_metadata_unary |
( |
void * |
tag | ) |
|
|
static |
◆ send_snapshot()
static void send_snapshot |
( |
void * |
tag, |
|
|
MemStats * |
snapshot |
|
) |
| |
|
static |
◆ send_status()
static void send_status |
( |
void * |
tag | ) |
|
|
static |
◆ sigint_handler()
static void sigint_handler |
( |
int |
| ) |
|
|
static |
◆ tag()
◆ calls
◆ cq
◆ got_sigint
◆ metadata_ops
◆ payload_buffer
◆ server
◆ snapshot_ops
◆ status_op
◆ terminal_buffer
◆ was_cancelled