@@ -187,18 +187,11 @@ function FiberNode(
187187 // Learn more about this here:
188188 // https://github.com/facebook/react/issues/14365
189189 // https://bugs.chromium.org/p/v8/issues/detail?id=8538
190- this . actualDuration = Number . NaN ;
191- this . actualStartTime = Number . NaN ;
192- this . selfBaseDuration = Number . NaN ;
193- this . treeBaseDuration = Number . NaN ;
194-
195- // It's okay to replace the initial doubles with smis after initialization.
196- // This won't trigger the performance cliff mentioned above,
197- // and it simplifies other profiler code (including DevTools).
198- this . actualDuration = 0 ;
199- this . actualStartTime = - 1 ;
200- this . selfBaseDuration = 0 ;
201- this . treeBaseDuration = 0 ;
190+
191+ this . actualDuration = - 0 ;
192+ this . actualStartTime = - 1.1 ;
193+ this . selfBaseDuration = - 0 ;
194+ this . treeBaseDuration = - 0 ;
202195 }
203196
204197 if ( __DEV__ ) {
@@ -286,10 +279,10 @@ function createFiberImplObject(
286279 } ;
287280
288281 if ( enableProfilerTimer ) {
289- fiber . actualDuration = 0 ;
290- fiber . actualStartTime = - 1 ;
291- fiber . selfBaseDuration = 0 ;
292- fiber . treeBaseDuration = 0 ;
282+ fiber . actualDuration = - 0 ;
283+ fiber . actualStartTime = - 1.1 ;
284+ fiber . selfBaseDuration = - 0 ;
285+ fiber . treeBaseDuration = - 0 ;
293286 }
294287
295288 if ( __DEV__ ) {
@@ -382,8 +375,8 @@ export function createWorkInProgress(current: Fiber, pendingProps: any): Fiber {
382375 // This prevents time from endlessly accumulating in new commits.
383376 // This has the downside of resetting values for different priority renders,
384377 // But works for yielding (the common case) and should support resuming.
385- workInProgress . actualDuration = 0 ;
386- workInProgress . actualStartTime = - 1 ;
378+ workInProgress . actualDuration = - 0 ;
379+ workInProgress . actualStartTime = - 1.1 ;
387380 }
388381 }
389382
0 commit comments