Classes | |
struct | PerThreadShutdownState |
Public Member Functions | |
AsyncClient (const ClientConfig &config, std::function< ClientRpcContext *(StubType *, std::function< gpr_timespec()> next_issue, const RequestType &)> setup_ctx, std::function< std::unique_ptr< StubType >(std::shared_ptr< Channel >)> create_stub) | |
int | GetPollCount () override |
std::function< gpr_timespec()> | NextIssuer (int thread_idx) |
void | SetupLoadTest (const ClientConfig &config, size_t num_threads) |
~AsyncClient () override | |
![]() | |
ClientImpl (const ClientConfig &config, std::function< std::unique_ptr< StubType >(std::shared_ptr< Channel >)> create_stub) | |
const RequestType * | request () |
void | WaitForChannelsToConnect () |
~ClientImpl () override | |
![]() | |
void | AwaitThreadsCompletion () |
Client () | |
double | GetLatencyCollectionIntervalInSeconds () |
bool | IsClosedLoop () |
ClientStats | Mark (bool reset) |
gpr_timespec | NextIssueTime (int thread_idx) |
bool | ThreadCompleted () |
virtual | ~Client () |
Public Attributes | |
bool | closed_loop_ |
Protected Attributes | |
const int | num_async_threads_ |
![]() | |
std::vector< ClientChannelInfo > | channels_ |
const int | cores_ |
std::function< std::unique_ptr< StubType >const std::shared_ptr< Channel > &)> | create_stub_ |
RequestType | request_ |
![]() | |
bool | closed_loop_ |
InterarrivalTimer | interarrival_timer_ |
int | last_reset_poll_count_ |
double | median_latency_collection_interval_seconds_ |
std::vector< gpr_timespec > | next_time_ |
gpr_event | start_requests_ |
bool | started_requests_ |
std::mutex | thread_completion_mu_ |
gpr_atm | thread_pool_done_ |
std::vector< std::unique_ptr< Thread > > | threads_ |
std::condition_variable | threads_complete_ |
size_t | threads_remaining_ |
std::unique_ptr< UsageTimer > | timer_ |
Private Member Functions | |
void | DestroyMultithreading () final |
int | NumThreads (const ClientConfig &config) |
ClientRpcContext * | ProcessTag (size_t thread_idx, void *tag) |
void | ThreadFunc (size_t thread_idx, Client::Thread *t) final |
Private Attributes | |
std::vector< std::unique_ptr< CompletionQueue > > | cli_cqs_ |
std::vector< int > | cq_ |
std::vector< std::function< gpr_timespec()> > | next_issuers_ |
std::vector< std::unique_ptr< PerThreadShutdownState > > | shutdown_state_ |
Additional Inherited Members | |
![]() | |
void | CompleteThread () |
void | EndThreads () |
void | MaybeStartRequests () |
std::function< gpr_timespec()> | NextIssuer (int thread_idx) |
void | SetupLoadTest (const ClientConfig &config, size_t num_threads) |
void | StartThreads (size_t num_threads) |
Definition at line 152 of file client_async.cc.
|
inline |
Definition at line 162 of file client_async.cc.
|
inlineoverride |
Definition at line 196 of file client_async.cc.
|
inlinefinalprivatevirtual |
Implements grpc::testing::Client.
Definition at line 232 of file client_async.cc.
|
inlineoverridevirtual |
Reimplemented from grpc::testing::Client.
Definition at line 206 of file client_async.cc.
|
inline |
|
inlineprivate |
Definition at line 224 of file client_async.cc.
|
inlineprivate |
Definition at line 243 of file client_async.cc.
|
inline |
|
inlinefinalprivatevirtual |
Implements grpc::testing::Client.
Definition at line 259 of file client_async.cc.
|
private |
Definition at line 297 of file client_async.cc.
bool grpc::testing::Client::closed_loop_ |
|
private |
Definition at line 298 of file client_async.cc.
|
private |
Definition at line 299 of file client_async.cc.
|
protected |
Definition at line 215 of file client_async.cc.
|
private |
Definition at line 300 of file client_async.cc.