Home | History | Annotate | Download | only in test

Lines Matching refs:state

64 void BM_error_before_running(benchmark::State& state) {
65 state.SkipWithError("error message");
66 while (state.KeepRunning()) {
73 void BM_error_during_running(benchmark::State& state) {
75 while (state.KeepRunning()) {
76 if (state.range(0) == 1 && state.thread_index <= (state.threads / 2)) {
79 state.SkipWithError("error message");
81 state.PauseTiming();
82 state.ResumeTiming();
96 void BM_error_after_running(benchmark::State& state) {
97 while (state.KeepRunning()) {
98 benchmark::DoNotOptimize(state.iterations());
100 if (state.thread_index <= (state.threads / 2))
101 state.SkipWithError("error message");
109 void BM_error_while_paused(benchmark::State& state) {
111 while (state.KeepRunning()) {
112 if (state.range(0) == 1 && state.thread_index <= (state.threads / 2)) {
115 state.PauseTiming();
116 state.SkipWithError("error message");
118 state.PauseTiming();
119 state.ResumeTiming();