Skip to content

Commit

Permalink
add profiler
Browse files Browse the repository at this point in the history
  • Loading branch information
paulineribeyre committed Nov 1, 2019
1 parent 12c7fd2 commit 05c0d43
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fence/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def warn_about_logger():
)


from cdispyutils.profiling import Profiler
def app_init(
app,
settings="fence.settings",
Expand All @@ -77,6 +78,8 @@ def app_init(
app_sessions(app)
app_register_blueprints(app)
server.init_app(app, query_client=query_client)
profiler = Profiler(enable=True, output_style="detailed")
profiler.profile_app(app)


def app_sessions(app):
Expand Down

0 comments on commit 05c0d43

Please sign in to comment.