statistics.scala
来自「JAVA 语言的函数式编程扩展」· SCALA 代码 · 共 45 行
SCALA
45 行
/* NSC -- new Scala compiler * Copyright 2005-2006 LAMP/EPFL * @author Martin Odersky */// $Id: Statistics.scala 8770 2006-09-26 14:16:35Z michelou $package scala.tools.nsc.utilobject Statistics { final val enabled = false}abstract class Statistics { val global: Global import global._ def print(phase: Phase) = { inform("*** Cumulative statistics at phase " + phase) inform("#tree nodes : " + nodeCount) inform("#identifiers : " + analyzer.idcnt) inform("#selections : " + analyzer.selcnt) inform("#applications: " + analyzer.appcnt) inform("#implicits : " + analyzer.implcnt) inform("ms implicits : " + analyzer.impltime) inform("#uniquetypes : " + uniqueTypeCount) inform("#symbols : " + symbolCount) inform("#type symbols: " + typeSymbolCount) inform("#class symbols: " + classSymbolCount) inform("#singleton closures: " + singletonClosureCount) inform("#compound closures : " + compoundClosureCount) inform("#typeref closures : " + typerefClosureCount) inform("#findMember : " + findMemberCount) inform("#notfound member: " + noMemberCount) inform("#mulitple member: " + multMemberCount) inform("time findMember: " + findMemberMillis) inform("#norm meth : " + analyzer.normM) inform("#norm poly : " + analyzer.normP) inform("#norm other: " + analyzer.normO) inform("#subtype : " + subtypeCount) inform("ms subtype: " + subtypeMillis) }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?