add the ability to generate dot graphs for per-request profiling

This commit is contained in:
Ryan Petrello
2020-01-04 06:50:22 -05:00
parent 8c99321ec8
commit 4a6147d4c2
3 changed files with 25 additions and 0 deletions

View File

@@ -1208,6 +1208,19 @@ SILENCED_SYSTEM_CHECKS = ['models.E006']
# Use middleware to get request statistics
AWX_REQUEST_PROFILE = False
#
# Optionally, AWX can generate DOT graphs
# (http://www.graphviz.org/doc/info/lang.html) for per-request profiling
# via gprof2dot (https://github.com/jrfonseca/gprof2dot)
#
# If you set this to True, you must `/var/lib/awx/venv/awx/bin/pip install gprof2dot`
# .dot files will be saved in `/var/log/tower/profile/` and can be converted e.g.,
#
# ~ yum install graphviz
# ~ dot -o profile.png -Tpng /var/log/tower/profile/some-profile-data.dot
#
AWX_REQUEST_PROFILE_WITH_DOT = False
# Delete temporary directories created to store playbook run-time
AWX_CLEANUP_PATHS = True