mirror of
https://github.com/inventree/InvenTree.git
synced 2025-12-16 01:08:12 +00:00
[dev] django silk - advanced profiling (#11004)
* django silk - advanced profiling - Adds option for enabling advanced silk profiling * Enable binary file generation
This commit is contained in:
@@ -377,6 +377,11 @@ if DJANGO_SILK_ENABLED: # pragma: no cover
|
||||
MIDDLEWARE.append('silk.middleware.SilkyMiddleware')
|
||||
INSTALLED_APPS.append('silk')
|
||||
|
||||
# Optionally enable the silk python profiler
|
||||
SILKY_PYTHON_PROFILER = SILKY_PYTHON_PROFILER_BINARY = get_boolean_setting(
|
||||
'INVENTREE_DEBUG_SILK_PROFILING', 'debug_silk_profiling', False
|
||||
)
|
||||
|
||||
# In DEBUG mode, add support for django-querycount
|
||||
# Ref: https://github.com/bradmontgomery/django-querycount
|
||||
if DEBUG and get_boolean_setting( # pragma: no cover
|
||||
|
||||
@@ -36,6 +36,8 @@ debug: False
|
||||
|
||||
# Additional debug options
|
||||
debug_querycount: False
|
||||
debug_silk: False
|
||||
debug_silk_profiling: False
|
||||
debug_shell: False
|
||||
|
||||
# Set to False to disable the admin interface, or use the environment variable INVENTREE_ADMIN_ENABLED
|
||||
|
||||
Reference in New Issue
Block a user