Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
7b7e7376
Commit
7b7e7376
authored
Feb 11, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
b2beab03
15d63ff1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
doc/development/profiling.md
doc/development/profiling.md
+10
-0
doc/user/project/pages/introduction.md
doc/user/project/pages/introduction.md
+2
-2
No files found.
doc/development/profiling.md
View file @
7b7e7376
...
...
@@ -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:
```
ruby
result
=
Gitlab
::
Profiler
.
profile
(
'/my-user'
)
printer
=
RubyProf
::
CallStackPrinter
.
new
(
result
)
printer
.
print
(
File
.
open
(
'/tmp/profile.html'
,
'w'
))
```
[
GitLab-Profiler
](
https://gitlab.com/gitlab-com/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
...
...
doc/user/project/pages/introduction.md
View file @
7b7e7376
...
...
@@ -348,8 +348,8 @@ This can be achieved by including a `script:` command like this in your
pages
:
# Other directives
script
:
-
# b
uild the public/ directory first
-
find public -type f -
iregex '.*\.\(htm\|html\|txt\|text\|js\|css\)$' -execdir gzip -f --keep
{} \;
# B
uild the public/ directory first
-
find public -type f -
regex '.*\.\(htm\|html\|txt\|text\|js\|css\)$' -exec gzip -f -k
{} \;
```
By pre-compressing the files and including both versions in the artifact, Pages
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment