Commit bac1f72c authored by Drew Blessing's avatar Drew Blessing Committed by Marcia Ramos

Add HTML output example to profiling

parent 6328af4e
......@@ -72,6 +72,16 @@ Gitlab::Profiler.print_by_total_time(result, max_percent: 60, min_percent: 2)
# 0.02 0.865 0.000 0.000 0.864 638 *Enumerable#inject
To print the profile in HTML format, use the following example:
result = Gitlab::Profiler.profile('/my-user')
printer =
printer.print('/tmp/profile.html', 'w'))
[GitLab-Profiler]( is a project
that builds on this to add some additional niceties, such as allowing
configuration with a single Yaml file for multiple URLs, and uploading of the
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment