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

@ -326,7 +326,7 @@ int Context::run ()
<< " init:" << time_init_us << " init:" << time_init_us
<< " load:" << static_cast <long> (timer_load.total_us ()) << " load:" << static_cast <long> (timer_load.total_us ())
<< " gc:" << static_cast <long> (timer_gc.total_us () - tdb2.load_time_us) << " gc:" << time_gc_us - tdb2.load_time_us
<< " filter:" << static_cast <long> (timer_filter.total_us ()) << " filter:" << static_cast <long> (timer_filter.total_us ())
<< " commit:" << static_cast <long> (timer_commit.total_us ()) << " commit:" << static_cast <long> (timer_commit.total_us ())
<< " sort:" << static_cast <long> (timer_sort.total_us ()) << " sort:" << static_cast <long> (timer_sort.total_us ())
@ -335,7 +335,7 @@ int Context::run ()
<< " other:" << static_cast <long> (timer_total.total_us () - << " other:" << static_cast <long> (timer_total.total_us () -
time_init_us - time_init_us -
timer_load.total_us () - timer_load.total_us () -
timer_gc.total_us () - time_gc_us -
tdb2.load_time_us - tdb2.load_time_us -
timer_filter.total_us () - timer_filter.total_us () -
timer_commit.total_us () - timer_commit.total_us () -

View file

@ -101,7 +101,7 @@ public:
Timer timer_total {}; Timer timer_total {};
long time_init_us {0}; long time_init_us {0};
Timer timer_load; Timer timer_load;
Timer timer_gc; long time_gc_us {0};
Timer timer_filter; Timer timer_filter;
Timer timer_commit; Timer timer_commit;
Timer timer_sort; Timer timer_sort;

View file

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