Skip to content

Instantly share code, notes, and snippets.

@alexflint
Created February 24, 2015 03:14
Show Gist options
  • Save alexflint/4eac476ca9dfce7a32f9 to your computer and use it in GitHub Desktop.
Save alexflint/4eac476ca9dfce7a32f9 to your computer and use it in GitHub Desktop.
Snapshot of user-node memory usage after loading std lib + ~100 go-search packages
flat flat% sum% cum cum%
40.53MB 18.28% 18.28% 52.03MB 23.47% github.com/kiteco/kiteco/kite-go/lang/golang.func·004
27.50MB 12.41% 30.69% 28MB 12.63% go/parser.(*parser).parseIdent
21.53MB 9.71% 40.40% 21.53MB 9.71% strings.Replace
13MB 5.87% 46.27% 91.06MB 41.08% github.com/kiteco/kiteco/kite-go/lang/golang.(*SnippetParser).Snippets
12MB 5.41% 51.68% 12MB 5.41% github.com/kiteco/kiteco/kite-go/lang/golang.(*Parser).tokenString
10.28MB 4.64% 56.32% 101.33MB 45.71% github.com/kiteco/kiteco/kite-go/lang/golang.(*SnippetCollection).addSnippetsFromBuffer
8.50MB 3.83% 60.15% 8.50MB 3.83% go/parser.(*parser).declare
6.50MB 2.93% 63.08% 18MB 8.12% go/parser.(*parser).parseCallOrConversion
6MB 2.71% 65.79% 6MB 2.71% go/parser.(*parser).shortVarDecl
5.50MB 2.48% 68.27% 5.50MB 2.48% go/scanner.(*Scanner).scanIdentifier
4.50MB 2.03% 70.30% 65.50MB 29.55% go/parser.(*parser).parseStmtList
4.50MB 2.03% 72.33% 44.51MB 20.08% go/parser.(*parser).parseBinaryExpr
4MB 1.80% 74.14% 14MB 6.32% go/parser.(*parser).parseParameterList
3.50MB 1.58% 75.72% 43.50MB 19.63% go/parser.(*parser).parseSimpleStmt
3.50MB 1.58% 77.30% 10MB 4.51% go/parser.(*parser).parseSelector
3MB 1.35% 78.65% 3MB 1.35% go/scanner.(*Scanner).scanComment
3MB 1.35% 80.00% 3MB 1.35% github.com/kiteco/kiteco/kite-go/lang/golang.(*Parser).newVars
3MB 1.35% 81.36% 3MB 1.35% fmt.Sprintf
3MB 1.35% 82.71% 19MB 8.57% go/parser.(*parser).parseOperand
2.50MB 1.13% 83.84% 7MB 3.16% github.com/kiteco/kiteco/kite-go/lang/golang.(*Parser).newFunc
2.50MB 1.13% 84.96% 25.50MB 11.50% go/parser.(*parser).parseBlockStmt
2MB 0.9% 85.87% 2MB 0.9% strings.Join
2MB 0.9% 86.77% 6MB 2.71% go/parser.(*parser).parseResult
2MB 0.9% 87.67% 53.53MB 24.15% github.com/kiteco/kiteco/kite-go/lang/golang.(*Parser).Terms
2MB 0.9% 88.57% 66MB 29.78% go/parser.(*parser).parseBody
2MB 0.9% 89.48% 4MB 1.80% go/parser.(*parser).consumeCommentGroup
2MB 0.9% 90.38% 45.51MB 20.53% go/parser.(*parser).parseExprList
1.50MB 0.68% 91.06% 26.50MB 11.96% go/parser.(*parser).parseIfStmt
1.50MB 0.68% 91.73% 9.51MB 4.29% go/parser.(*parser).parseValueSpec
1.50MB 0.68% 92.41% 1.50MB 0.68% github.com/kiteco/kiteco/kite-go/lang/golang.(*Parser).newFields
1.50MB 0.68% 93.09% 1.50MB 0.68% go/parser.(*parser).parseArrayType
1.50MB 0.68% 93.76% 1.50MB 0.68% go/scanner.(*Scanner).scanString
1.01MB 0.45% 94.22% 6.01MB 2.71% go/parser.(*parser).parseElementList
1MB 0.45% 94.67% 16MB 7.22% go/parser.(*parser).parseParameters
1MB 0.45% 95.12% 7MB 3.16% go/parser.(*parser).parseStructType
1MB 0.45% 95.57% 2MB 0.9% go/parser.(*parser).consumeComment
1MB 0.45% 96.02% 9.50MB 4.29% go/parser.(*parser).parseReturnStmt
1MB 0.45% 96.47% 2.50MB 1.13% github.com/kiteco/kiteco/kite-go/lang/golang.(*Parser).newFieldList
0.82MB 0.37% 96.84% 111.83MB 50.45% github.com/kiteco/kiteco/kite-go/lang/golang.parseFile
0.50MB 0.23% 97.07% 8MB 3.61% go/parser.(*parser).parseCaseClause
0.50MB 0.23% 97.29% 6MB 2.71% go/parser.(*parser).parseFieldDecl
0.50MB 0.23% 97.52% 6.51MB 2.94% go/parser.(*parser).parseLiteralValue
0.50MB 0.23% 97.74% 90.50MB 40.83% go/parser.(*parser).parseFuncDecl
0.50MB 0.23% 97.97% 1.50MB 0.68% go/parser.(*parser).parseIndexOrSlice
0.50MB 0.23% 98.20% 1.50MB 0.68% go/parser.(*parser).parsePointerType
0.50MB 0.23% 98.42% 9MB 4.06% go/parser.(*parser).parseTypeName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment