Context: Eliminated gc timer

This commit is contained in:
Paul Beckingham
2016-11-13 13:16:48 -05:00
parent 30cfc11f80
commit cfc2fd28e8
3 changed files with 5 additions and 5 deletions

View File

@@ -1253,7 +1253,7 @@ void TDB2::show_diff (
// - waiting task in pending that needs to be un-waited
void TDB2::gc ()
{
context.timer_gc.start ();
Timer timer;
// Allowed as an override, but not recommended.
if (context.config.getBoolean ("gc"))
@@ -1290,7 +1290,7 @@ void TDB2::gc ()
completed.dependency_scan ();
}
context.timer_gc.stop ();
context.time_gc_us += timer.total_us ();
}
////////////////////////////////////////////////////////////////////////////////