2
0
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:
Oliver
2025-12-13 20:11:53 +11:00
committed by GitHub
parent edc68b21ab
commit 0a2b53789a
4 changed files with 12 additions and 0 deletions

View File

@@ -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

View File

@@ -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