MCPcopy Create free account
hub / github.com/apache/brpc / SetTestCase

Method SetTestCase

example/auto_concurrency_limiter/server.cpp:96–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94 virtual ~EchoServiceImpl() {}
95
96 void SetTestCase(const test::TestCase& test_case) {
97 _test_case = test_case;
98 _next_stage_start = _test_case.latency_stage_list(0).duration_sec() +
99 butil::cpuwide_time_s();
100 _stage_index = 0;
101 _running_case = false;
102 DisplayStage(_test_case.latency_stage_list(_stage_index));
103 }
104
105 void StartTestCase() {
106 CHECK(!_running_case);

Callers 1

NotifyMethod · 0.80

Calls 2

cpuwide_time_sFunction · 0.85
DisplayStageFunction · 0.70

Tested by

no test coverage detected