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
f38065e2
Commit
f38065e2
authored
Dec 11, 2020
by
Denys Mishunov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated the document's structure
parent
47b1a8d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
doc/development/fe_guide/performance.md
doc/development/fe_guide/performance.md
+13
-13
No files found.
doc/development/fe_guide/performance.md
View file @
f38065e2
...
@@ -127,21 +127,21 @@ To use the Vue performance plugin:
...
@@ -127,21 +127,21 @@ To use the Vue performance plugin:
1.
Import the plugin:
1.
Import the plugin:
```
javascript
```javascript
import
PerformancePlugin
from
'
~/performance/vue_performance_plugin
'
;
import PerformancePlugin from '~/performance/vue_performance_plugin';
```
```
1.
Use it before initializing your Vue application:
1.
Use it before initializing your Vue application:
```
javascript
```javascript
Vue
.
use
(
PerformancePlugin
,
{
Vue.use(PerformancePlugin, {
components
:
[
components: [
'
IdeTreeList
'
,
'IdeTreeList',
'
FileTree
'
,
'FileTree',
'
RepoEditor
'
,
'RepoEditor',
]
]
});
});
```
```
The plugin accepts the list of components, performance of which should be measured. The components
The plugin accepts the list of components, performance of which should be measured. The components
should be specified by their
`name`
option.
should be specified by their
`name`
option.
...
@@ -182,7 +182,7 @@ To access stored measurements, you can use either:
...
@@ -182,7 +182,7 @@ To access stored measurements, you can use either:
performance
.
getEntriesByType
(
'
measure
'
);
performance
.
getEntriesByType
(
'
measure
'
);
```
```
## Naming convention
##
#
Naming convention
All the marks and measures should be instantiated with the constants from
All the marks and measures should be instantiated with the constants from
`app/assets/javascripts/performance/constants.js`
. When you’re ready to add a new mark’s or
`app/assets/javascripts/performance/constants.js`
. When you’re ready to add a new mark’s or
...
...
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