Browse Source

fix: 修改分析显示排序

SongZihuan 2 years ago
parent
commit
b91cf0b04c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/app.py

+ 1 - 1
app/app.py

@@ -33,7 +33,7 @@ class HBlogFlask(Flask):
         self.update_configure()
 
         if conf["DEBUG_PROFILE"]:
-            self.wsgi_app = ProfilerMiddleware(self.wsgi_app)
+            self.wsgi_app = ProfilerMiddleware(self.wsgi_app, sort_by=("cumtime",))
 
         self.register_blueprint(index, url_prefix="/")
         self.register_blueprint(archive, url_prefix="/archive")