File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export function initMixin (Vue: Class<Component>) {
16
16
Vue . prototype . _init = function ( options ?: Object ) {
17
17
/* istanbul ignore if */
18
18
if ( process . env . NODE_ENV !== 'production' && config . performance && mark ) {
19
- mark ( 'init' )
19
+ mark ( 'vue-perf- init' )
20
20
}
21
21
22
22
const vm : Component = this
@@ -57,8 +57,8 @@ export function initMixin (Vue: Class<Component>) {
57
57
/* istanbul ignore if */
58
58
if ( process . env . NODE_ENV !== 'production' && config . performance && mark ) {
59
59
vm . _name = formatComponentName ( vm , false )
60
- mark ( 'init end' )
61
- measure ( `${ vm . _name } init` , 'init' , 'init end' )
60
+ mark ( 'vue-perf- init- end' )
61
+ measure ( `${ vm . _name } init` , 'vue-perf- init' , 'vue-perf- init- end' )
62
62
}
63
63
64
64
if ( vm . $options . el ) {
Original file line number Diff line number Diff line change @@ -164,8 +164,9 @@ export function mountComponent (
164
164
if ( process . env . NODE_ENV !== 'production' && config . performance && mark ) {
165
165
updateComponent = ( ) => {
166
166
const name = vm . _name
167
- const startTag = `start ${ name } `
168
- const endTag = `end ${ name } `
167
+ const id = vm . _uid
168
+ const startTag = `vue-perf-start:${ id } `
169
+ const endTag = `vue-perf-end:${ id } `
169
170
170
171
mark ( startTag )
171
172
const vnode = vm . _render ( )
You can’t perform that action at this time.
0 commit comments