@@ -44,6 +44,7 @@ import {
44
44
} from 'react-devtools-shared/src/utils' ;
45
45
import {
46
46
formatConsoleArgumentsToSingleString ,
47
+ formatDurationToMicrosecondsGranularity ,
47
48
gt ,
48
49
gte ,
49
50
parseSourceFromComponentStack ,
@@ -5074,20 +5075,30 @@ export function attach(
5074
5075
const fiberSelfDurations : Array < [ number , number ] > = [ ] ;
5075
5076
for ( let i = 0 ; i < durations . length ; i += 3 ) {
5076
5077
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
+ ] ) ;
5079
5086
}
5080
5087
5081
5088
commitData . push ( {
5082
5089
changeDescriptions :
5083
5090
changeDescriptions !== null
5084
5091
? Array . from ( changeDescriptions . entries ( ) )
5085
5092
: null ,
5086
- duration : maxActualDuration ,
5087
- effectDuration,
5093
+ duration :
5094
+ formatDurationToMicrosecondsGranularity ( maxActualDuration ) ,
5095
+ effectDuration :
5096
+ formatDurationToMicrosecondsGranularity ( effectDuration ) ,
5088
5097
fiberActualDurations,
5089
5098
fiberSelfDurations,
5090
- passiveEffectDuration,
5099
+ passiveEffectDuration : formatDurationToMicrosecondsGranularity (
5100
+ passiveEffectDuration ,
5101
+ ) ,
5091
5102
priorityLevel,
5092
5103
timestamp : commitTime ,
5093
5104
updaters,
0 commit comments