blob: 08173ddab404c4e0f0db571d65759fde9b3a26c1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
/* NSC -- new Scala compiler
* Copyright 2005-2006 LAMP/EPFL
* @author Martin Odersky
*/
// $Id$
package scala.tools.nsc.util
object 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: " + singletonBaseTypeSeqCount)
inform("#compound closures : " + compoundBaseTypeSeqCount)
inform("#typeref closures : " + typerefBaseTypeSeqCount)
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)
inform("ms type-flow-analysis: " + analysis.timer.millis)
}
}
|