@@ -44,6 +44,7 @@ import {
4444} from 'react-devtools-shared/src/utils' ;
4545import {
4646 formatConsoleArgumentsToSingleString ,
47+ formatDurationToMicrosecondsGranularity ,
4748 gt ,
4849 gte ,
4950 parseSourceFromComponentStack ,
@@ -5074,20 +5075,33 @@ export function attach(
50745075 const fiberSelfDurations : Array < [ number , number ] > = [ ] ;
50755076 for ( let i = 0 ; i < durations . length ; i += 3 ) {
50765077 const fiberID = durations [ i ] ;
5077- fiberActualDurations . push ( [ fiberID , durations [ i + 1 ] ] ) ;
5078- fiberSelfDurations . push ( [ fiberID , durations [ i + 2 ] ] ) ;
5078+ fiberActualDurations . push ( [
5079+ fiberID ,
5080+ formatDurationToMicrosecondsGranularity ( durations [ i + 1 ] ) ,
5081+ ] ) ;
5082+ fiberSelfDurations . push ( [
5083+ fiberID ,
5084+ formatDurationToMicrosecondsGranularity ( durations [ i + 2 ] ) ,
5085+ ] ) ;
50795086 }
50805087
50815088 commitData . push ( {
50825089 changeDescriptions :
50835090 changeDescriptions !== null
50845091 ? Array . from ( changeDescriptions . entries ( ) )
50855092 : null ,
5086- duration : maxActualDuration ,
5087- effectDuration,
5093+ duration :
5094+ formatDurationToMicrosecondsGranularity ( maxActualDuration ) ,
5095+ effectDuration :
5096+ effectDuration !== null
5097+ ? formatDurationToMicrosecondsGranularity ( effectDuration )
5098+ : null ,
50885099 fiberActualDurations,
50895100 fiberSelfDurations,
5090- passiveEffectDuration,
5101+ passiveEffectDuration :
5102+ passiveEffectDuration !== null
5103+ ? formatDurationToMicrosecondsGranularity ( passiveEffectDuration )
5104+ : null ,
50915105 priorityLevel,
50925106 timestamp : commitTime ,
50935107 updaters,
0 commit comments