@@ -115,12 +115,12 @@ sealed trait Profiler {
115115 protected def beforeImplicitSearch (pt : Type ): TracedEventId = TracedEventId .Empty
116116 protected def afterImplicitSearch (event : TracedEventId ): Unit = ()
117117
118- inline def onMacroSplice [T ](macroSym : Symbol )(inline body : T ): T =
119- val event = beforeMacroSplice(macroSym )
118+ inline def onInlineCall [T ](inlineSym : Symbol )(inline body : T ): T =
119+ val event = beforeInlineCall(inlineSym )
120120 try body
121- finally afterMacroSplice (event)
122- protected def beforeMacroSplice ( macroSym : Symbol ): TracedEventId = TracedEventId .Empty
123- protected def afterMacroSplice (event : TracedEventId ): Unit = ()
121+ finally afterInlineCall (event)
122+ protected def beforeInlineCall ( inlineSym : Symbol ): TracedEventId = TracedEventId .Empty
123+ protected def afterInlineCall (event : TracedEventId ): Unit = ()
124124
125125 inline def onCompletion [T ](root : Symbol , associatedFile : => AbstractFile )(inline body : T ): T =
126126 val (event, completionName) = beforeCompletion(root, associatedFile)
@@ -176,7 +176,7 @@ private [profile] class RealProfiler(reporter : ProfileReporter)(using Context)
176176
177177 enum Category :
178178 def name : String = this .toString().toLowerCase()
179- case Run , Phase , File , TypeCheck , Implicit , Macro , Completion
179+ case Run , Phase , File , TypeCheck , Implicit , Inline , Completion
180180 private [profile] val chromeTrace =
181181 if ctx.settings.YprofileTrace .isDefault
182182 then null
@@ -315,8 +315,8 @@ private [profile] class RealProfiler(reporter : ProfileReporter)(using Context)
315315 override def beforeImplicitSearch (pt : Type ): TracedEventId = traceDurationStart(Category .Implicit , s " ?[ ${symbolName(pt.typeSymbol)}] " , colour = " yellow" )
316316 override def afterImplicitSearch (event : TracedEventId ): Unit = traceDurationEnd(Category .Implicit , event, colour = " yellow" )
317317
318- override def beforeMacroSplice ( macroSym : Symbol ): TracedEventId = traceDurationStart(Category .Macro , s " « ${symbolName(macroSym )}» " , colour = " olive" )
319- override def afterMacroSplice (event : TracedEventId ): Unit = traceDurationEnd(Category .Macro , event, colour = " olive" )
318+ override def beforeInlineCall ( inlineSym : Symbol ): TracedEventId = traceDurationStart(Category .Inline , s " « ${symbolName(inlineSym )}» " , colour = " olive" )
319+ override def afterInlineCall (event : TracedEventId ): Unit = traceDurationEnd(Category .Inline , event, colour = " olive" )
320320
321321 override def beforeCompletion (root : Symbol , associatedFile : => AbstractFile ): (TracedEventId , String ) =
322322 if chromeTrace == null
0 commit comments