GitLab steht aufgrund wichtiger Wartungsarbeiten am Montag, den 8. März, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

Commit 15d63ff1 authored by Marcia Ramos's avatar Marcia Ramos

Merge branch 'docs-profile-html-output-example' into 'master'

Add HTML output example to profiling

See merge request gitlab-org/gitlab-ce!25103
parents 6328af4e bac1f72c
......@@ -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