Commit f38065e2 authored by Denys Mishunov's avatar Denys Mishunov

Updated the document's structure

parent 47b1a8d0
...@@ -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
......
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