diff options
author | Martin Odersky <odersky@gmail.com> | 2014-01-25 13:02:39 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-01-26 18:52:33 +0100 |
commit | 09199545d784ba36dee1899bda8a9c4ce448397c (patch) | |
tree | 37c96e50d036c0e9aa9632b9e3bdf22611ef00ec /src/dotty/tools/dotc/core/TypeOps.scala | |
parent | 966edc4d6bb2fd4be0b8706959e24e680969b23d (diff) | |
download | dotty-09199545d784ba36dee1899bda8a9c4ce448397c.tar.gz dotty-09199545d784ba36dee1899bda8a9c4ce448397c.tar.bz2 dotty-09199545d784ba36dee1899bda8a9c4ce448397c.zip |
Add text markers around "hot" tracing operations.
That way they can be easily removed by search and replace, which gives us a clearer picture of the runtime profiles.
Diffstat (limited to 'src/dotty/tools/dotc/core/TypeOps.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/TypeOps.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/core/TypeOps.scala b/src/dotty/tools/dotc/core/TypeOps.scala index e2352d89e..4e0a857a3 100644 --- a/src/dotty/tools/dotc/core/TypeOps.scala +++ b/src/dotty/tools/dotc/core/TypeOps.scala @@ -9,7 +9,7 @@ trait TypeOps { this: Context => final def asSeenFrom(tp: Type, pre: Type, cls: Symbol, theMap: AsSeenFromMap): Type = { - def toPrefix(pre: Type, cls: Symbol, thiscls: ClassSymbol): Type = ctx.debugTraceIndented(s"toPrefix($pre, $cls, $thiscls)") { + def toPrefix(pre: Type, cls: Symbol, thiscls: ClassSymbol): Type = /*>|>*/ ctx.debugTraceIndented(s"toPrefix($pre, $cls, $thiscls)") /*<|<*/ { if ((pre eq NoType) || (pre eq NoPrefix) || (cls is PackageClass)) tp else if (thiscls.derivesFrom(cls) && pre.baseType(thiscls).exists) @@ -21,7 +21,7 @@ trait TypeOps { this: Context => toPrefix(pre.baseType(cls).normalizedPrefix, cls.owner, thiscls) } - ctx.conditionalTraceIndented(TypeOps.track , s"asSeen ${tp.show} from (${pre.show}, ${cls.show})", show = true) { // !!! DEBUG + /*>|>*/ ctx.conditionalTraceIndented(TypeOps.track , s"asSeen ${tp.show} from (${pre.show}, ${cls.show})", show = true) /*<|<*/ { // !!! DEBUG tp match { case tp: NamedType => val sym = tp.symbol |