MCPcopy
hub / github.com/vuejs/core / createDevtoolsPerformanceHook

Function createDevtoolsPerformanceHook

packages/runtime-core/src/devtools.ts:154–160  ·  view source on GitHub ↗
(
  hook: DevtoolsHooks,
)

Source from the content-addressed store, hash-verified

152 time: number,
153) => void
154function createDevtoolsPerformanceHook(
155 hook: DevtoolsHooks,
156): DevtoolsPerformanceHook {
157 return (component: ComponentInternalInstance, type: string, time: number) => {
158 emit(hook, component.appContext.app, component.uid, component, type, time)
159 }
160}
161
162export function devtoolsComponentEmit(
163 component: ComponentInternalInstance,

Callers 1

devtools.tsFile · 0.85

Calls 1

emitFunction · 0.70

Tested by

no test coverage detected