Browse Source

fix: 修改分析显示排序

SongZihuan 2 năm trước cách đây
mục cha
commit
b91cf0b04c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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")