Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Profile Commands? #593

Open
bruno911 opened this issue Aug 22, 2022 · 0 comments
Open

Profile Commands? #593

bruno911 opened this issue Aug 22, 2022 · 0 comments
Labels

Comments

@bruno911
Copy link

I have been trying to Profile some commands that are run via manage.py.

By Commands I mean, a file like this:

https://github.com/jazzband/django-silk/blob/master/silk/management/commands/silk_clear_request_log.py

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants