Calculate script time

Based from HAR dump example or viewing mitmproxy’s detailed info I see elapsed time in every call step.
Is it possible to calculate spent time in user defined script?

Thanks

I report a very high CPU usage if I have dozens of addon added at mitmdump startup.

Is that on 3.0 or on master? There are significant speed improvements on the latter (which will soon be 4.0). You should be able to just time individual hooks manually, we don’t have anything builtin for that.

I’m on 3.0.4.
I’m waiting 4.0 release.

Ha, there you go :wink: