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