diff --git a/src/Lean/Widget/InteractiveDiagnostic.lean b/src/Lean/Widget/InteractiveDiagnostic.lean index f47b7685f5..a5e8be1c91 100644 --- a/src/Lean/Widget/InteractiveDiagnostic.lean +++ b/src/Lean/Widget/InteractiveDiagnostic.lean @@ -144,7 +144,9 @@ where | ctx, compose d₁ d₂ => do let d₁ ← go nCtx ctx d₁; let d₂ ← go nCtx ctx d₂; pure $ d₁ ++ d₂ | ctx, group d => Format.group <$> go nCtx ctx d | ctx, .trace data header children => do - let header := (← go nCtx ctx header).nest 4 + let mut header := (← go nCtx ctx header).nest 4 + if data.startTime != 0 then + header := f!"[{data.stopTime - data.startTime}] {header}" let nodes ← if data.collapsed && !children.isEmpty then let children := children.map fun child =>