Flexget bechmark

I run flexget as a daemon on my ubuntu server running on an intel nuc.
Every time flexget runs it takes forever to complete my configuration and I’d like to check which task is taking so much time.
plus, if I try to restart the flexget service sometimes it takes few seconds and sometimes it takes about a minute to restart.
Is there some way I can check why it takes so long to restart and how much time a task runs?
TIA

You can run an execute with --debug-perf to get a bit of info about the time the task took and the number of database queries, it’s not super specific, but it might be a start.

flexget execute --debug-perf

So I should stop the daemon and run it by hand with that option, then I’ll know that when it runs as a daemon the time should be similar, am I right?