From 6c789656ad5e5265c85b09e948d979263a8b8613 Mon Sep 17 00:00:00 2001 From: David Ormsbee Date: Sat, 18 Jan 2025 12:57:28 -0500 Subject: [PATCH] perf: normalize LMS vs. Studio debug-toolbar settings This change disables the profiling panel for performance reasons. It's rarely useful anyway, given the lack of granularity in the data it displays. This commit also enables the Cache panel, which is import for tracking where we're making excessive calls to redis/memcached. --- cms/envs/devstack.py | 6 +++++- lms/envs/devstack.py | 7 ++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/cms/envs/devstack.py b/cms/envs/devstack.py index 1200a61b0617..ac21c2ee01a3 100644 --- a/cms/envs/devstack.py +++ b/cms/envs/devstack.py @@ -103,8 +103,12 @@ 'debug_toolbar.panels.request.RequestPanel', 'debug_toolbar.panels.sql.SQLPanel', 'debug_toolbar.panels.signals.SignalsPanel', - 'debug_toolbar.panels.profiling.ProfilingPanel', + 'debug_toolbar.panels.cache.CachePanel', 'debug_toolbar.panels.history.HistoryPanel', + + # ProfilingPanel has been intentionally removed for default devstack.py + # runtimes for performance reasons. + # 'debug_toolbar.panels.profiling.ProfilingPanel', ) DEBUG_TOOLBAR_CONFIG = { diff --git a/lms/envs/devstack.py b/lms/envs/devstack.py index 01100e924059..29c08c307ef2 100644 --- a/lms/envs/devstack.py +++ b/lms/envs/devstack.py @@ -96,11 +96,12 @@ 'debug_toolbar.panels.request.RequestPanel', 'debug_toolbar.panels.sql.SQLPanel', 'debug_toolbar.panels.signals.SignalsPanel', + 'debug_toolbar.panels.cache.CachePanel', 'debug_toolbar.panels.history.HistoryPanel', + # ProfilingPanel has been intentionally removed for default devstack.py - # runtimes for performance reasons. If you wish to re-enable it in your - # local development environment, please create a new settings file - # that imports and extends devstack.py. + # runtimes for performance reasons. + # 'debug_toolbar.panels.profiling.ProfilingPanel', ) DEBUG_TOOLBAR_CONFIG = {