Skip to content

Instantly share code, notes, and snippets.

@DarkDimius
Created June 27, 2017 13:34
Show Gist options
  • Save DarkDimius/846b3afa2d00347ab4bbadd608ba2388 to your computer and use it in GitHub Desktop.
Save DarkDimius/846b3afa2d00347ab4bbadd608ba2388 to your computer and use it in GitHub Desktop.
Class allocations by phase:
Flatten
dotty.tools.dotc.core.Contexts$InitialContext -> 36
FirstTransform
dotty.tools.dotc.ast.Trees$Template -> 2
dotty.tools.dotc.ast.Trees$Apply -> 1
dotty.tools.dotc.ast.Trees$TypeDef -> 2
dotty.tools.dotc.core.Contexts$InitialContext -> 34
dotty.tools.dotc.ast.Trees$ValDef -> 4
dotty.tools.dotc.ast.Trees$Select -> 1
dotty.tools.dotc.ast.Trees$New -> 1
dotty.tools.dotc.ast.Trees$DefDef -> 2
dotty.tools.dotc.ast.Trees$PackageDef -> 1
dotty.tools.dotc.ast.Trees$TypeTree -> 7
ExplicitOuter
dotty.tools.dotc.core.Contexts$InitialContext -> 98
ArrayConstructors
dotty.tools.dotc.core.Contexts$InitialContext -> 3
Constructors
dotty.tools.dotc.core.Contexts$InitialContext -> 5
CheckPhantomCast
dotty.tools.dotc.ast.Trees$TypeDef -> 1
dotty.tools.dotc.ast.Trees$PackageDef -> 1
dotty.tools.dotc.ast.Trees$DefDef -> 1
dotty.tools.dotc.core.Contexts$InitialContext -> 41
dotty.tools.dotc.ast.Trees$Template -> 1
CrossCastAnd
dotty.tools.dotc.core.Contexts$InitialContext -> 9
SelectStatic
dotty.tools.dotc.core.Contexts$InitialContext -> 19
SomePhase$
dotty.tools.dotc.core.Types$TypeRefWithFixedSym -> 14
dotty.tools.dotc.core.Types$CachedClassInfo -> 34
dotty.tools.dotc.core.SymDenotations$ModuleCompleter -> 1068
dotty.tools.dotc.core.Types$PolyType -> 4
dotty.tools.dotc.core.Types$TermRefWithFixedSym -> 1
dotty.tools.dotc.core.Contexts$InitialContext -> 13
dotty.tools.dotc.core.Types$RealTypeBounds -> 7
dotty.tools.dotc.core.Types$CachedMethodType -> 25
dotty.tools.dotc.ast.Trees$Ident -> 4
dotty.tools.dotc.core.Types$CachedExprType -> 12
dotty.tools.dotc.core.Types$CachedThisType -> 18
dotty.tools.dotc.core.Symbols$ClassSymbol -> 2041
dotty.tools.dotc.core.Symbols$Symbol -> 1327
MoveStatics
dotty.tools.dotc.ast.Trees$PackageDef -> 1
dotty.tools.dotc.core.Contexts$InitialContext -> 143
ClassOf
dotty.tools.dotc.core.Contexts$InitialContext -> 1
ResolveSuper
dotty.tools.dotc.core.Contexts$InitialContext -> 3
TransformWildcards
dotty.tools.dotc.core.Contexts$InitialContext -> 4
dotty.tools.dotc.core.Types$CachedClassInfo -> 1
CheckStatic
dotty.tools.dotc.core.Contexts$InitialContext -> 2
ExtractAPI
dotty.tools.dotc.ast.Trees$Template -> 1
dotty.tools.dotc.ast.Trees$New -> 1
dotty.tools.dotc.core.Types$CachedThisType -> 2
dotty.tools.dotc.core.Types$LambdaParam -> 2
dotty.tools.dotc.ast.Trees$PackageDef -> 1
dotty.tools.dotc.core.Types$HKTypeLambda -> 2
dotty.tools.dotc.core.Types$CachedConstantType -> 1
dotty.tools.dotc.ast.Trees$Select -> 1
dotty.tools.dotc.ast.Trees$Apply -> 1
dotty.tools.dotc.ast.Trees$TypeDef -> 1
dotty.tools.dotc.core.Types$TermRefWithSignature -> 1
dotty.tools.dotc.ast.Trees$TypeTree -> 1
dotty.tools.dotc.core.Contexts$InitialContext -> 21
dotty.tools.dotc.ast.Trees$Literal -> 1
Splitter
dotty.tools.dotc.core.Contexts$InitialContext -> 7
AugmentScala2Traits
dotty.tools.dotc.core.Contexts$InitialContext -> 11
FrontEnd
dotty.tools.dotc.ast.Trees$TypeBoundsTree -> 2
dotty.tools.dotc.ast.Trees$Literal -> 7
dotty.tools.dotc.ast.Trees$TypeDef -> 5
dotty.tools.dotc.core.Types$TermRefWithFixedSym -> 11
dotty.tools.dotc.core.Types$CachedAndType -> 28
dotty.tools.dotc.core.Types$CachedJavaArrayType -> 2
dotty.tools.dotc.ast.Trees$Ident -> 45
dotty.tools.dotc.ast.Trees$Select -> 34
dotty.tools.dotc.typer.Namer$TypeDefCompleter -> 1
dotty.tools.dotc.core.Contexts$InitialContext -> 2276
dotty.tools.dotc.ast.Trees$Thicket -> 1
dotty.tools.dotc.core.Types$LambdaParam -> 8
dotty.tools.dotc.ast.Trees$TypeApply -> 28
dotty.tools.dotc.ast.Trees$Apply -> 36
dotty.tools.dotc.ast.Trees$PackageDef -> 2
dotty.tools.dotc.ast.Trees$SingletonTypeTree -> 1
dotty.tools.dotc.ast.Trees$DefDef -> 6
dotty.tools.dotc.typer.Namer$Completer -> 6
dotty.tools.dotc.typer.ProtoTypes$FunProto -> 3
dotty.tools.dotc.core.SymDenotations$ModuleCompleter -> 1424
dotty.tools.dotc.core.Types$JavaMethodType -> 231
dotty.tools.dotc.core.Types$CachedHKApply -> 1
dotty.tools.dotc.core.Types$CachedClassInfo -> 309
dotty.tools.dotc.core.Types$PolyType -> 23
dotty.tools.dotc.ast.Trees$EmptyValDef -> 1
dotty.tools.dotc.core.Types$TypeRefWithFixedSym -> 101
dotty.tools.dotc.core.Types$CachedMethodType -> 743
dotty.tools.dotc.core.Types$TermRefWithSignature -> 69
dotty.tools.dotc.core.Types$CachedThisType -> 143
dotty.tools.dotc.core.Types$CachedConstantType -> 7
dotty.tools.dotc.ast.Trees$Template -> 4
dotty.tools.dotc.ast.Trees$TypeTree -> 65
dotty.tools.dotc.core.Types$TempClassInfo -> 1
dotty.tools.dotc.ast.Trees$New -> 34
dotty.tools.dotc.ast.Trees$ValDef -> 5
dotty.tools.dotc.core.Types$RealTypeBounds -> 181
dotty.tools.dotc.ast.Trees$AppliedTypeTree -> 1
dotty.tools.dotc.core.Symbols$ClassSymbol -> 2927
dotty.tools.dotc.ast.Trees$Import -> 3
dotty.tools.dotc.core.Symbols$Symbol -> 12393
dotty.tools.dotc.core.Types$HKTypeLambda -> 64
dotty.tools.dotc.typer.Namer$ClassCompleter -> 1
dotty.tools.dotc.core.Types$CachedExprType -> 247
RestoreScopes
dotty.tools.dotc.core.Contexts$InitialContext -> 3
LazyVals
dotty.tools.dotc.ast.Trees$Apply -> 1
dotty.tools.dotc.ast.Trees$Template -> 1
dotty.tools.dotc.ast.Trees$Ident -> 1
dotty.tools.dotc.ast.Trees$TypeTree -> 1
dotty.tools.dotc.ast.Trees$Super -> 1
dotty.tools.dotc.core.Types$TermRefWithFixedSym -> 1
dotty.tools.dotc.ast.Trees$This -> 1
dotty.tools.dotc.ast.Trees$Select -> 1
dotty.tools.dotc.core.Types$CachedSuperType -> 1
PrimitiveForwarders
dotty.tools.dotc.core.Types$CachedThisType -> 1
dotty.tools.dotc.core.Contexts$InitialContext -> 18
Simplify
dotty.tools.dotc.core.Contexts$InitialContext -> 4
TailRec
dotty.tools.dotc.core.Contexts$InitialContext -> 6
IsInstanceOfEvaluator
dotty.tools.dotc.core.Contexts$InitialContext -> 55
CheckReentrant
dotty.tools.dotc.core.Contexts$InitialContext -> 1
HoistSuperArgs
dotty.tools.dotc.core.Contexts$InitialContext -> 35
ElimErasedValueType
dotty.tools.dotc.ast.Trees$DefDef -> 6
dotty.tools.dotc.ast.Trees$Ident -> 2
dotty.tools.dotc.ast.Trees$Literal -> 1
dotty.tools.dotc.ast.Trees$Select -> 2
dotty.tools.dotc.ast.Trees$PackageDef -> 1
dotty.tools.dotc.ast.Trees$TypeTree -> 6
dotty.tools.dotc.ast.Trees$ValDef -> 6
dotty.tools.dotc.ast.Trees$Template -> 1
dotty.tools.dotc.core.Types$TypeRefWithFixedSym -> 1
dotty.tools.dotc.core.Types$CachedThisType -> 1
dotty.tools.dotc.ast.Trees$Apply -> 3
dotty.tools.dotc.ast.Trees$TypeDef -> 1
dotty.tools.dotc.core.Types$TermRefWithFixedSym -> 14
dotty.tools.dotc.core.Contexts$InitialContext -> 75
VCElideAllocations
dotty.tools.dotc.core.Contexts$InitialContext -> 37
dotty.tools.dotc.ast.Trees$PackageDef -> 1
dotty.tools.dotc.ast.Trees$Template -> 1
dotty.tools.dotc.ast.Trees$TypeDef -> 1
CollectEntryPoints
dotty.tools.dotc.core.Contexts$InitialContext -> 7
GetClass
dotty.tools.dotc.core.Contexts$InitialContext -> 15
PostTyper
dotty.tools.dotc.core.Contexts$InitialContext -> 1
Getters
dotty.tools.dotc.core.Types$CachedThisType -> 8
dotty.tools.dotc.core.Contexts$InitialContext -> 27
LiftTry
dotty.tools.dotc.core.Contexts$InitialContext -> 5
LambdaLift
dotty.tools.dotc.core.Contexts$InitialContext -> 61
Memoize
dotty.tools.dotc.core.Contexts$InitialContext -> 2
GenBCode
dotty.tools.dotc.core.Types$TypeRefWithFixedSym -> 10
dotty.tools.dotc.ast.Trees$Ident -> 8
dotty.tools.dotc.ast.Trees$Select -> 8
dotty.tools.dotc.ast.Trees$This -> 2
dotty.tools.dotc.core.Contexts$InitialContext -> 54
dotty.tools.dotc.core.Types$CachedThisType -> 11
dotty.tools.dotc.core.Types$TermRefWithFixedSym -> 8
ElimRepeated
dotty.tools.dotc.ast.Trees$Apply -> 2
dotty.tools.dotc.core.Contexts$InitialContext -> 11
dotty.tools.dotc.core.Types$CachedThisType -> 5
dotty.tools.dotc.core.Types$JavaMethodType -> 7
ElimByName
dotty.tools.dotc.core.Contexts$InitialContext -> 3
ExpandSAMs
dotty.tools.dotc.core.Contexts$InitialContext -> 4
Pickler
dotty.tools.dotc.ast.Trees$PackageDef -> 1
dotty.tools.dotc.core.Contexts$InitialContext -> 1
CapturedVars
dotty.tools.dotc.core.Contexts$InitialContext -> 33
ElimStaticThis
dotty.tools.dotc.core.Contexts$InitialContext -> 15
TryCatchPatterns
dotty.tools.dotc.core.Symbols$Symbol -> 2
dotty.tools.dotc.ast.Trees$Apply -> 1
dotty.tools.dotc.core.Types$CachedThisType -> 1
dotty.tools.dotc.core.Types$CachedMethodType -> 4
dotty.tools.dotc.core.Types$PolyType -> 1
dotty.tools.dotc.core.Contexts$InitialContext -> 10
LinkScala2Impls
dotty.tools.dotc.core.Types$CachedThisType -> 2
dotty.tools.dotc.core.Contexts$InitialContext -> 17
ExtensionMethods
dotty.tools.dotc.core.Contexts$InitialContext -> 22
FunctionXXLForwarders
dotty.tools.dotc.core.Contexts$InitialContext -> 2
Erasure
dotty.tools.dotc.core.Contexts$InitialContext -> 297
dotty.tools.dotc.core.Types$CachedJavaArrayType -> 3
dotty.tools.dotc.core.Types$CachedAndType -> 26
dotty.tools.dotc.core.Types$RealTypeBounds -> 2
dotty.tools.dotc.core.Types$PolyType -> 2
dotty.tools.dotc.core.Types$CachedClassInfo -> 132
dotty.tools.dotc.core.Types$CachedThisType -> 1
dotty.tools.dotc.core.Types$JavaMethodType -> 2
dotty.tools.dotc.core.Types$TermRefWithFixedSym -> 25
dotty.tools.dotc.core.Types$CachedMethodType -> 125
ExpandPrivate
dotty.tools.dotc.core.Contexts$InitialContext -> 1
dotty.tools.dotc.ast.Trees$TypeDef -> 1
dotty.tools.dotc.ast.Trees$Template -> 1
NormalizeFlags
dotty.tools.dotc.core.Contexts$InitialContext -> 7
dotty.tools.dotc.core.Types$CachedJavaArrayType -> 1
PatternMatcher
dotty.tools.dotc.ast.Trees$TypeDef -> 1
dotty.tools.dotc.ast.Trees$PackageDef -> 1
dotty.tools.dotc.ast.Trees$Template -> 1
dotty.tools.dotc.ast.Trees$DefDef -> 1
dotty.tools.dotc.core.Contexts$InitialContext -> 44
dotty.tools.dotc.ast.Trees$ValDef -> 1
VCInlineMethods
dotty.tools.dotc.ast.Trees$Apply -> 3
dotty.tools.dotc.core.Contexts$InitialContext -> 6
CollectSuperCalls
dotty.tools.dotc.core.Contexts$InitialContext -> 1
Mixin
dotty.tools.dotc.core.Contexts$InitialContext -> 2
ExplicitSelf
dotty.tools.dotc.core.Contexts$InitialContext -> 1
FunctionalInterfaces
dotty.tools.dotc.core.Contexts$InitialContext -> 15
dotty.tools.dotc.ast.Trees$Literal -> 1
dotty.tools.dotc.ast.Trees$Template -> 1
dotty.tools.dotc.ast.Trees$DefDef -> 1
dotty.tools.dotc.ast.Trees$Block -> 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment