You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to use silk site-wide, ie without having to add a decorator before each view? If yes, how do we do it?
Is it recommended to use silk in production? If any if you is already using it in production, would you care to tell me what's the performance overhead?
Thanks.
The text was updated successfully, but these errors were encountered:
@amjd sorry for the late reply, never noticed this issue for some reason!
It's possible yeah - by default it will capture all views, and then you just use the decorator/context manager for profiling specific areas of code.
On production use - you can see the overhead by enabling meta profiling (see https://github.com/mtford90/silk#meta-profiling). You can also reduce the impact of this overhead by using SILKY_INTERCEPT_PERCENT and SILKY_INTERCEPT_FUNC to reduce the number of requests that are profiled. If a request suffers with a large number of database queries the overhead can be substantial, as Silk will create a model for each and every database query so that it can be inspected in the UI. I think most people who use this (including myself) just have it enabled in dev/staging instead of prod.
I have two questions:
Thanks.
The text was updated successfully, but these errors were encountered: