Instrument setOldestVersion for callgrind too

This commit is contained in:
2024-08-19 21:32:04 -07:00
parent 8e1e344f4b
commit e2b7298af5

View File

@@ -748,7 +748,10 @@ struct TestDriver {
fprintf(stderr, "%p Set oldest version: %" PRId64 "\n", this,
oldestVersion);
#endif
CALLGRIND_START_INSTRUMENTATION;
cs.setOldestVersion(oldestVersion);
CALLGRIND_STOP_INSTRUMENTATION;
if constexpr (kEnableAssertions) {
refImpl.setOldestVersion(oldestVersion);
}