@@ -115,12 +115,12 @@ sealed trait Profiler {
115
115
protected def beforeImplicitSearch (pt : Type ): TracedEventId = TracedEventId .Empty
116
116
protected def afterImplicitSearch (event : TracedEventId ): Unit = ()
117
117
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 )
120
120
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 = ()
124
124
125
125
inline def onCompletion [T ](root : Symbol , associatedFile : => AbstractFile )(inline body : T ): T =
126
126
val (event, completionName) = beforeCompletion(root, associatedFile)
@@ -176,7 +176,7 @@ private [profile] class RealProfiler(reporter : ProfileReporter)(using Context)
176
176
177
177
enum Category :
178
178
def name : String = this .toString().toLowerCase()
179
- case Run , Phase , File , TypeCheck , Implicit , Macro , Completion
179
+ case Run , Phase , File , TypeCheck , Implicit , Inline , Completion
180
180
private [profile] val chromeTrace =
181
181
if ctx.settings.YprofileTrace .isDefault
182
182
then null
@@ -315,8 +315,8 @@ private [profile] class RealProfiler(reporter : ProfileReporter)(using Context)
315
315
override def beforeImplicitSearch (pt : Type ): TracedEventId = traceDurationStart(Category .Implicit , s " ?[ ${symbolName(pt.typeSymbol)}] " , colour = " yellow" )
316
316
override def afterImplicitSearch (event : TracedEventId ): Unit = traceDurationEnd(Category .Implicit , event, colour = " yellow" )
317
317
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" )
320
320
321
321
override def beforeCompletion (root : Symbol , associatedFile : => AbstractFile ): (TracedEventId , String ) =
322
322
if chromeTrace == null
0 commit comments