Context: Eliminated gc timer

This commit is contained in:
Paul Beckingham 2016-11-13 13:16:48 -05:00
parent c7cb2f26ff
commit 89b8c9f198
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 ();
}
////////////////////////////////////////////////////////////////////////////////