mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-25 03:07:20 +02:00
Performance
- Removed Context::timer_sync, as it makes no sense now that sync is not an automatic operation like gc.
This commit is contained in:
parent
9e9f90343b
commit
bc94816184
3 changed files with 14 additions and 5 deletions
|
@ -276,7 +276,6 @@ int Context::run ()
|
||||||
|
|
||||||
<< " init:" << timer_init.total ()
|
<< " init:" << timer_init.total ()
|
||||||
<< " load:" << timer_load.total ()
|
<< " load:" << timer_load.total ()
|
||||||
<< " synch:" << timer_sync.total ()
|
|
||||||
<< " gc:" << timer_gc.total ()
|
<< " gc:" << timer_gc.total ()
|
||||||
<< " filter:" << timer_filter.total ()
|
<< " filter:" << timer_filter.total ()
|
||||||
<< " commit:" << timer_commit.total ()
|
<< " commit:" << timer_commit.total ()
|
||||||
|
@ -284,7 +283,6 @@ int Context::run ()
|
||||||
<< " render:" << timer_render.total ()
|
<< " render:" << timer_render.total ()
|
||||||
<< " total:" << (timer_init.total () +
|
<< " total:" << (timer_init.total () +
|
||||||
timer_load.total () +
|
timer_load.total () +
|
||||||
timer_sync.total () +
|
|
||||||
timer_gc.total () +
|
timer_gc.total () +
|
||||||
timer_filter.total () +
|
timer_filter.total () +
|
||||||
timer_commit.total () +
|
timer_commit.total () +
|
||||||
|
|
|
@ -117,7 +117,6 @@ public:
|
||||||
|
|
||||||
Timer timer_init;
|
Timer timer_init;
|
||||||
Timer timer_load;
|
Timer timer_load;
|
||||||
Timer timer_sync;
|
|
||||||
Timer timer_gc;
|
Timer timer_gc;
|
||||||
Timer timer_filter;
|
Timer timer_filter;
|
||||||
Timer timer_commit;
|
Timer timer_commit;
|
||||||
|
|
|
@ -53,7 +53,8 @@ CmdSync::CmdSync ()
|
||||||
int CmdSync::execute (std::string& output)
|
int CmdSync::execute (std::string& output)
|
||||||
{
|
{
|
||||||
int status = 0;
|
int status = 0;
|
||||||
context.timer_sync.start ();
|
Timer timer_sync;
|
||||||
|
timer_sync.start ();
|
||||||
|
|
||||||
std::stringstream out;
|
std::stringstream out;
|
||||||
|
|
||||||
|
@ -233,7 +234,18 @@ int CmdSync::execute (std::string& output)
|
||||||
|
|
||||||
out << "\n";
|
out << "\n";
|
||||||
output = out.str ();
|
output = out.str ();
|
||||||
context.timer_sync.stop ();
|
|
||||||
|
/*
|
||||||
|
timer_sync.stop ();
|
||||||
|
std::stringstream s;
|
||||||
|
s << "Sync "
|
||||||
|
<< Date ().toISO ()
|
||||||
|
<< " sync:"
|
||||||
|
<< timer_sync.total ()
|
||||||
|
<< "\n";
|
||||||
|
debug (s.str ());
|
||||||
|
*/
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue