Public Member Functions | |
virtual bool | InitThreadFuncImpl (size_t thread_idx)=0 |
SynchronousClient (const ClientConfig &config) | |
void | ThreadFunc (size_t thread_idx, Thread *t) override |
virtual bool | ThreadFuncImpl (HistogramEntry *entry, size_t thread_idx)=0 |
~SynchronousClient () override | |
![]() | |
ClientImpl (const ClientConfig &config, std::function< std::unique_ptr< BenchmarkService::Stub >(std::shared_ptr< Channel >)> create_stub) | |
const SimpleRequest * | request () |
void | WaitForChannelsToConnect () |
~ClientImpl () override | |
![]() | |
void | AwaitThreadsCompletion () |
Client () | |
double | GetLatencyCollectionIntervalInSeconds () |
virtual int | GetPollCount () |
bool | IsClosedLoop () |
ClientStats | Mark (bool reset) |
gpr_timespec | NextIssueTime (int thread_idx) |
bool | ThreadCompleted () |
virtual | ~Client () |
Protected Member Functions | |
bool | WaitToIssue (int thread_idx) |
![]() | |
void | CompleteThread () |
virtual void | DestroyMultithreading ()=0 |
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) |
Protected Attributes | |
size_t | num_threads_ |
std::vector< SimpleResponse > | responses_ |
![]() | |
std::vector< ClientChannelInfo > | channels_ |
const int | cores_ |
std::function< std::unique_ptr< BenchmarkService::Stub >const std::shared_ptr< Channel > &)> | create_stub_ |
SimpleRequest | 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_ |
Definition at line 50 of file client_sync.cc.
|
inlineexplicit |
Definition at line 53 of file client_sync.cc.
|
inlineoverride |
Definition at line 62 of file client_sync.cc.
|
pure virtual |
|
inlineoverridevirtual |
Implements grpc::testing::Client.
Definition at line 67 of file client_sync.cc.
|
pure virtual |
Definition at line 84 of file client_sync.cc.
|
protected |
Definition at line 108 of file client_sync.cc.
|
protected |
Definition at line 109 of file client_sync.cc.