Skip to content

Commit

Permalink
chore: fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jun 26, 2020
1 parent 178e893 commit 5453e79
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
9 changes: 2 additions & 7 deletions packages/runtime-core/src/helpers/resolveAssets.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
import { currentRenderingInstance } from '../componentRenderUtils'
import {
currentInstance,
Component,
FunctionalComponent,
ComponentOptions
} from '../component'
import { currentInstance, Component, FunctionalComponent } from '../component'
import { Directive } from '../directives'
import { camelize, capitalize, isString, isObject } from '@vue/shared'
import { camelize, capitalize, isString } from '@vue/shared'
import { warn } from '../warning'

const COMPONENTS = 'components'
Expand Down
6 changes: 5 additions & 1 deletion packages/runtime-core/src/profiling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ export function endMeasure(instance: ComponentInternalInstance, type: string) {
const startTag = `vue-${type}-${instance.uid}`
const endTag = startTag + `:end`
perf.mark(endTag)
perf.measure(`<${formatComponentName(instance)}> ${type}`, startTag, endTag)
perf.measure(
`<${formatComponentName(instance, instance.type)}> ${type}`,
startTag,
endTag
)
perf.clearMarks(startTag)
perf.clearMarks(endTag)
}
Expand Down

0 comments on commit 5453e79

Please sign in to comment.