@@ -117,12 +117,12 @@ sealed trait Profiler {
117
117
protected def beforeImplicitSearch (pt : Type ): TracedEventId = TracedEventId .Empty
118
118
protected def afterImplicitSearch (event : TracedEventId ): Unit = ()
119
119
120
- inline def onMacroSplice [T ](macroSym : Symbol )(inline body : T ): T =
121
- val event = beforeMacroSplice(macroSym )
120
+ inline def onInlineCall [T ](inlineSym : Symbol )(inline body : T ): T =
121
+ val event = beforeInlineCall(inlineSym )
122
122
try body
123
- finally afterMacroSplice (event)
124
- protected def beforeMacroSplice ( macroSym : Symbol ): TracedEventId = TracedEventId .Empty
125
- protected def afterMacroSplice (event : TracedEventId ): Unit = ()
123
+ finally afterInlineCall (event)
124
+ protected def beforeInlineCall ( inlineSym : Symbol ): TracedEventId = TracedEventId .Empty
125
+ protected def afterInlineCall (event : TracedEventId ): Unit = ()
126
126
127
127
inline def onCompletion [T ](root : Symbol , associatedFile : => AbstractFile )(inline body : T ): T =
128
128
val (event, completionName) = beforeCompletion(root, associatedFile)
@@ -178,7 +178,7 @@ private [profile] class RealProfiler(reporter : ProfileReporter)(using Context)
178
178
179
179
enum Category :
180
180
def name : String = this .toString().toLowerCase()
181
- case Run , Phase , File , TypeCheck , Implicit , Macro , Completion
181
+ case Run , Phase , File , TypeCheck , Implicit , Inline , Completion
182
182
private [profile] val chromeTrace =
183
183
if ctx.settings.YprofileTrace .isDefault
184
184
then null
@@ -317,8 +317,8 @@ private [profile] class RealProfiler(reporter : ProfileReporter)(using Context)
317
317
override def beforeImplicitSearch (pt : Type ): TracedEventId = traceDurationStart(Category .Implicit , s " ?[ ${symbolName(pt.typeSymbol)}] " , colour = " yellow" )
318
318
override def afterImplicitSearch (event : TracedEventId ): Unit = traceDurationEnd(Category .Implicit , event, colour = " yellow" )
319
319
320
- override def beforeMacroSplice ( macroSym : Symbol ): TracedEventId = traceDurationStart(Category .Macro , s " « ${symbolName(macroSym )}» " , colour = " olive" )
321
- override def afterMacroSplice (event : TracedEventId ): Unit = traceDurationEnd(Category .Macro , event, colour = " olive" )
320
+ override def beforeInlineCall ( inlineSym : Symbol ): TracedEventId = traceDurationStart(Category .Inline , s " « ${symbolName(inlineSym )}» " , colour = " olive" )
321
+ override def afterInlineCall (event : TracedEventId ): Unit = traceDurationEnd(Category .Inline , event, colour = " olive" )
322
322
323
323
override def beforeCompletion (root : Symbol , associatedFile : => AbstractFile ): (TracedEventId , String ) =
324
324
if chromeTrace == null
0 commit comments