Profile Commands?
bruno911 opened this issue · 0 comments
bruno911 commented
I have been trying to Profile some commands that are run via manage.py.
By Commands I mean, a file like this:
My initial error was:
"Cannot execute silk_profile as silk is not installed correctly."
So, I noticed DataCollector().request was None, inside _should_profile and so it doesn't allow to proceed.
Is there a work around? Unfortunately these Commands are long executed with multiple parameters so moving it to a view, is a lot of work for a lot of commands.
Ps. all the rest works perfectly fine, for request/response API
Thanks.