Skip to content

Commit 1520e83

Browse files
committed
Merge remote-tracking branch 'retronym/topic/statify-chrome-trace' into topic/statify-chrome-trace
2 parents e58d140 + db6c49e commit 1520e83

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/reflect/scala/reflect/internal/util/ChromeTrace.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package scala.reflect.internal.util
33
import java.io.Closeable
44
import java.lang.management.ManagementFactory
55
import java.nio.file.{Files, Path}
6-
import java.util
76
import java.util.concurrent.TimeUnit
87

98
import scala.collection.mutable
@@ -65,13 +64,15 @@ final class ChromeTrace(f: Path) extends Closeable {
6564
traceWriter.write("\n")
6665
}
6766

67+
6868
private def writePid(pidSuffix: String) = {
6969
if (pidSuffix == "")
7070
str("pid", pid)
7171
else
7272
str2("pid", pid, "-", pidSuffix)
7373
}
7474

75+
7576
def traceCounterEvent(name: String, counterName: String, count: Long, processWide: Boolean): Unit = {
7677
objStart()
7778
str("cat", "scalac")
@@ -161,8 +162,7 @@ final class ChromeTrace(f: Path) extends Closeable {
161162
}
162163

163164
private def fld(name: String) = {
164-
val topContext = context.top
165-
topContext match {
165+
context.top match {
166166
case oc @ ObjectContext(first) =>
167167
if (first) oc.first = false
168168
else traceWriter.write(",")

0 commit comments

Comments
 (0)