File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
google_benchmark/include/benchmark Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -1066,12 +1066,14 @@ struct State::StateIterator {
1066
1066
if (BENCHMARK_BUILTIN_EXPECT (cached_ != 0 , true )) return true ;
1067
1067
#ifdef CODSPEED_INSTRUMENTATION
1068
1068
measurement_stop ();
1069
+ #endif
1070
+ parent_->FinishKeepRunning ();
1069
1071
1072
+ #ifdef CODSPEED_INSTRUMENTATION
1070
1073
if (parent_->codspeed_ != NULL ) {
1071
1074
parent_->codspeed_ ->end_benchmark ();
1072
1075
}
1073
1076
#endif
1074
- parent_->FinishKeepRunning ();
1075
1077
return false ;
1076
1078
}
1077
1079
@@ -1084,12 +1086,14 @@ inline BENCHMARK_ALWAYS_INLINE State::StateIterator State::begin() {
1084
1086
return StateIterator (this );
1085
1087
}
1086
1088
inline BENCHMARK_ALWAYS_INLINE State::StateIterator State::end () {
1087
- StartKeepRunning ();
1088
1089
#ifdef CODSPEED_INSTRUMENTATION
1089
1090
if (this ->codspeed_ != NULL ) {
1090
1091
this ->codspeed_ ->start_benchmark (name_);
1091
1092
}
1092
-
1093
+ #endif
1094
+
1095
+ StartKeepRunning ();
1096
+ #ifdef CODSPEED_INSTRUMENTATION
1093
1097
measurement_start ();
1094
1098
#endif
1095
1099
return StateIterator ();
You can’t perform that action at this time.
0 commit comments