Commit 99e6ee96 authored by Mike Jang's avatar Mike Jang

Merge branch 'dmishunov-master-patch-20941' into 'master'

doc: Updated the structure of User Timing section

See merge request gitlab-org/gitlab!49809
parents fa85a714 f38065e2
......@@ -127,21 +127,21 @@ To use the Vue performance plugin:
1. Import the plugin:
```javascript
import PerformancePlugin from '~/performance/vue_performance_plugin';
```
```javascript
import PerformancePlugin from '~/performance/vue_performance_plugin';
```
1. Use it before initializing your Vue application:
```javascript
Vue.use(PerformancePlugin, {
components: [
'IdeTreeList',
'FileTree',
'RepoEditor',
]
});
```
```javascript
Vue.use(PerformancePlugin, {
components: [
'IdeTreeList',
'FileTree',
'RepoEditor',
]
});
```
The plugin accepts the list of components, performance of which should be measured. The components
should be specified by their `name` option.
......@@ -182,7 +182,7 @@ To access stored measurements, you can use either:
performance.getEntriesByType('measure');
```
## Naming convention
### Naming convention
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
......
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