mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Context
- Added a hook timer.
This commit is contained in:
parent
d12c519380
commit
7bf2b4039e
2 changed files with 4 additions and 1 deletions
|
@ -316,13 +316,15 @@ int Context::run ()
|
||||||
<< " commit:" << timer_commit.total ()
|
<< " commit:" << timer_commit.total ()
|
||||||
<< " sort:" << timer_sort.total ()
|
<< " sort:" << timer_sort.total ()
|
||||||
<< " render:" << timer_render.total ()
|
<< " render:" << timer_render.total ()
|
||||||
|
<< " hooks:" << timer_hooks.total ()
|
||||||
<< " total:" << (timer_init.total () +
|
<< " total:" << (timer_init.total () +
|
||||||
timer_load.total () +
|
timer_load.total () +
|
||||||
timer_gc.total () +
|
timer_gc.total () +
|
||||||
timer_filter.total () +
|
timer_filter.total () +
|
||||||
timer_commit.total () +
|
timer_commit.total () +
|
||||||
timer_sort.total () +
|
timer_sort.total () +
|
||||||
timer_render.total ())
|
timer_render.total () +
|
||||||
|
timer_hooks.total ())
|
||||||
<< "\n";
|
<< "\n";
|
||||||
debug (s.str ());
|
debug (s.str ());
|
||||||
}
|
}
|
||||||
|
|
|
@ -120,6 +120,7 @@ public:
|
||||||
Timer timer_commit;
|
Timer timer_commit;
|
||||||
Timer timer_sort;
|
Timer timer_sort;
|
||||||
Timer timer_render;
|
Timer timer_render;
|
||||||
|
Timer timer_hooks;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue