-
-
Notifications
You must be signed in to change notification settings - Fork 332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Profiling is not working #269
Comments
Same for me using django-silk==2.0.0. Seems like #161 is back |
#meeto django 2.0, django-rest-framework
|
metoo django 2.02 and silky 2.0.0 |
Bug is present in |
i am also seeing this behavior |
I can't replicate this, does the directory |
I have this problem as well. I followed the instructions. Profiling files are created. But the profiling page shows no profiles. And it wasn't just a problem with the page, I loaded up the database with I tried moving around the middle-ware but nothing worked. But when I tried the example app, and it worked fine. Then I created a simple view:
and it also worked fine. Compare that to the view that didn't work:
( context: https://bitbucket.org/pdlouhy/do-prace-na-kole/src/master/dpnk/views.py ) I'm going to venture a guess that the problem is somewhere in the Mixins, but I'll have to delve deeper. |
I'm experiencing this issue as well. Using django-silk=3.0 and django=1.11.10 and cannot generate a profile at all. I just keep seeing |
Any word on this? An above commenter noted that mixins might be to blame but I have no such issue Even if I put the decorator on a dead simple view, I still get a broken request summary and no profile information. edit I manually created the intended profile data directory in my server, and this has resulted in the profile data files actually being created However, on the silk pages, I still see no profile information, with the standard "No Silk profiling was performed for this request." message edit 2 if I disable the profiler after these actions take place, my request summaries remain broken, and new requests logged are still broken, with sql query summaries also missing - this leads me to assume that the presence of the decorator itself has something to do with the issue |
I had the profiling directory pointing to a folder that didn't exist (path was messed up), after fixing it the profiling page works as expected. Running latest silk and django. Snakeviz states that the generated .prof files aren't valid, but they can be viewed in silk's page no problem. I'm not using dynamic profiling which might have something to do with it. The requests also appear as 0 ms until they're completed, though I think this is the intended behavior. |
it worked here with:
|
It helped in my case 👍 |
One other thing. The problem can happen due to a large amount of data or a long connection on the database. In that case the server gone away can happen. Try this increasing these numbers if that happens:
|
The code in
The Readme, however, instructs users to set up the app like this:
When I change my project to look like this everything works ok:
Background: After changing the |
#269 Better check whether app is installed
I'm trying to profile a api of this project. I had followed the instructions of the readme of django-silk, but the profiling page was empty, though i could see files generated under profiles directory which i configured.
The project's address is https://github.com/bluven/py-perf, it's a simple project, the method i profiled is api/views/UserViewSet.list
settings.py
api/views.py
Thanks in advance.
The text was updated successfully, but these errors were encountered: