mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Context: Eliminated gc timer
This commit is contained in:
parent
30cfc11f80
commit
cfc2fd28e8
3 changed files with 5 additions and 5 deletions
|
@ -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 () -
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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 ();
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue