@@ -64,14 +64,6 @@ export function setupOptionsV10(
64
64
// @ts -ignore
65
65
let prevHookName = options . useDebugName ;
66
66
67
- options . vnode = vnode => {
68
- // const id = getVNodeId(ids, vnode);
69
- // FIXME: Does the negative end thing screw up the profiler?
70
- // storeTime(timings.start, id, 0);
71
- // storeTime(timings.end, id, -1);
72
- if ( prevVNodeHook ) prevVNodeHook ( vnode ) ;
73
- } ;
74
-
75
67
// Make sure that we are always the first `option._hook` to be called.
76
68
// This is necessary to ensure that our callstack remains consistent.
77
69
// Othwerwise we'll end up with an unknown number of frames in-between
@@ -117,25 +109,19 @@ export function setupOptionsV10(
117
109
} , 100 ) ;
118
110
119
111
o . _diff = o . __b = ( vnode : VNode ) => {
120
- if ( vnode . type !== null ) {
112
+ if ( typeof vnode . type === "function" ) {
121
113
timings . start . set ( vnode , performance . now ( ) ) ;
122
-
123
- if ( typeof vnode . type === "function" ) {
124
- const name = getDisplayName ( vnode , config ) ;
125
- recordMark ( `${ name } _diff` ) ;
126
- }
114
+ const name = getDisplayName ( vnode , config ) ;
115
+ recordMark ( `${ name } _diff` ) ;
127
116
}
128
117
129
118
if ( prevBeforeDiff != null ) prevBeforeDiff ( vnode ) ;
130
119
} ;
131
120
132
121
options . diffed = vnode => {
133
- if ( vnode . type !== null ) {
122
+ if ( typeof vnode . type === "function" ) {
134
123
timings . end . set ( vnode , performance . now ( ) ) ;
135
-
136
- if ( typeof vnode . type === "function" ) {
137
- endMark ( getDisplayName ( vnode , config ) ) ;
138
- }
124
+ endMark ( getDisplayName ( vnode , config ) ) ;
139
125
}
140
126
141
127
if ( prevAfterDiff ) prevAfterDiff ( vnode ) ;
0 commit comments