You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/08/08 19:39:34 UTC

[GitHub] [superset] betodealmeida commented on a change in pull request #16136: feat: add profiling to Superset pages

betodealmeida commented on a change in pull request #16136:
URL: https://github.com/apache/superset/pull/16136#discussion_r684819805



##########
File path: superset/app.py
##########
@@ -36,6 +37,10 @@ def create_app() -> Flask:
         app_initializer = app.config.get("APP_INITIALIZER", SupersetAppInitializer)(app)
         app_initializer.init_app()
 
+        profiling = app.config.get("PROFILING", False)
+        if profiling:
+            app.wsgi_app = SupersetProfiler(app.wsgi_app)  # type: ignore

Review comment:
        https://github.com/python/mypy/issues/7347




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org