File tree 1 file changed +3
-5
lines changed
compiler/src/dotty/tools/dotc/profile
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -234,10 +234,7 @@ private [profile] class RealProfiler(reporter : ProfileReporter)(using Context)
234
234
import java .lang .{Integer => jInt }
235
235
val reportNs = System .nanoTime()
236
236
val data = notification.getUserData
237
- // val seq = notification.getSequenceNumber
238
- // val message = notification.getMessage
239
237
val tpe = notification.getType
240
- // val time= notification.getTimeStamp
241
238
data match {
242
239
case cd : CompositeData if tpe == " com.sun.management.gc.notification" =>
243
240
val name = cd.get(" gcName" ).toString
@@ -318,8 +315,9 @@ private [profile] class RealProfiler(reporter : ProfileReporter)(using Context)
318
315
if chromeTrace == null
319
316
then (TracedEventId .Empty , " " )
320
317
else
321
- val completionName = this .completionName(root, associatedFile)
322
- val event = TracedEventId (associatedFile.name)
318
+ val file = associatedFile
319
+ val completionName = this .completionName(root, file)
320
+ val event = TracedEventId (file.name)
323
321
chromeTrace.traceDurationEventStart(Category .Completion .name, " ↯" , colour = " thread_state_sleeping" )
324
322
chromeTrace.traceDurationEventStart(Category .File .name, event)
325
323
chromeTrace.traceDurationEventStart(Category .Completion .name, completionName)
You can’t perform that action at this time.
0 commit comments