Skip to content

Instantly share code, notes, and snippets.

@tmcw
Created October 24, 2013 17:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmcw/7141791 to your computer and use it in GitHub Desktop.
Save tmcw/7141791 to your computer and use it in GitHub Desktop.
Statistical profiling result from v8.log, (259 ticks, 12 unaccounted, 0 excluded).
[Unknown]:
ticks total nonlib name
12 4.6%
[Shared libraries]:
ticks total nonlib name
117 45.2% 0.0% /usr/local/bin/node
93 35.9% 0.0% /usr/lib/system/libsystem_kernel.dylib
7 2.7% 0.0% /usr/lib/system/libsystem_platform.dylib
6 2.3% 0.0% /usr/lib/system/libsystem_malloc.dylib
5 1.9% 0.0% /usr/lib/system/libsystem_pthread.dylib
5 1.9% 0.0% /usr/lib/system/libsystem_c.dylib
1 0.4% 0.0% /usr/lib/libc++.1.dylib
[JavaScript]:
ticks total nonlib name
5 1.9% 20.0% LazyCompile: <anonymous> /Users/tmcw/src/carmen/lib/cxxcache.js:80
2 0.8% 8.0% Stub: CEntryStub
2 0.8% 8.0% LazyCompile: ~fs.Stats._checkModeProperty fs.js:132
1 0.4% 4.0% Stub: ToBooleanStub
1 0.4% 4.0% RegExp: \\s+
1 0.4% 4.0% LazyCompile: ~realpathSync fs.js:1205
1 0.4% 4.0% LazyCompile: ~indexOf native string.js:118
1 0.4% 4.0% LazyCompile: ~fs.closeSync fs.js:396
1 0.4% 4.0% LazyCompile: ~ensureZooms /Users/tmcw/src/carmen/node_modules/mbtiles/lib/mbtiles.js:269
1 0.4% 4.0% LazyCompile: ~_.uniq._.unique /Users/tmcw/src/carmen/node_modules/underscore/underscore.js:372
1 0.4% 4.0% LazyCompile: ~WritableState _stream_writable.js:41
1 0.4% 4.0% LazyCompile: ~NativeModule.exists node.js:870
1 0.4% 4.0% LazyCompile: ~MBTiles /Users/tmcw/src/carmen/node_modules/mbtiles/lib/mbtiles.js:31
1 0.4% 4.0% LazyCompile: ~InsertionSort native array.js:764
1 0.4% 4.0% LazyCompile: ~Iconv /Users/tmcw/src/carmen/node_modules/iconv/lib/iconv.js:37
1 0.4% 4.0% LazyCompile: ~Cache.shard /Users/tmcw/src/carmen/lib/cxxcache.js:5
1 0.4% 4.0% KeyedLoadIC: args_count: 0
1 0.4% 4.0% Function: ~<anonymous> http.js:1
[C++]:
ticks total nonlib name
[GC]:
ticks total nonlib name
4 1.5%
[Bottom up (heavy) profile]:
Note: percentage shows a share of a particular caller in the total
amount of its parent calls.
Callers occupying less than 2.0% are not shown.
ticks parent name
117 45.2% /usr/local/bin/node
18 15.4% LazyCompile: ~NativeModule.compile node.js:887
18 100.0% LazyCompile: ~NativeModule.require node.js:842
6 33.3% LazyCompile: Module._load module.js:275
6 100.0% LazyCompile: ~Module.require module.js:361
6 100.0% LazyCompile: ~require module.js:379
3 16.7% LazyCompile: ~tryFile module.js:138
3 100.0% LazyCompile: ~Module._findPath module.js:160
3 100.0% LazyCompile: ~Module._resolveFilename module.js:323
2 11.1% Function: ~<anonymous> stream.js:1
2 100.0% LazyCompile: ~NativeModule.compile node.js:887
2 100.0% LazyCompile: ~NativeModule.require node.js:842
1 5.6% LazyCompile: ~startup.globalVariables node.js:160
1 100.0% LazyCompile: ~startup node.js:30
1 100.0% Function: ~<anonymous> node.js:27
1 5.6% LazyCompile: ~startup node.js:30
1 100.0% Function: ~<anonymous> node.js:27
1 5.6% LazyCompile: ~<anonymous> node.js:204
1 100.0% LazyCompile: ~<anonymous> /Users/tmcw/src/carmen/scripts/carmen.js:25
1 100.0% LazyCompile: ~<anonymous> /Users/tmcw/src/carmen/index.js:259
1 5.6% Function: ~<anonymous> tty.js:1
1 100.0% LazyCompile: ~NativeModule.compile node.js:887
1 100.0% LazyCompile: ~NativeModule.require node.js:842
1 5.6% Function: ~<anonymous> net.js:1
1 100.0% LazyCompile: ~NativeModule.compile node.js:887
1 100.0% LazyCompile: ~NativeModule.require node.js:842
1 5.6% Function: ~<anonymous> https.js:1
1 100.0% LazyCompile: ~NativeModule.compile node.js:887
1 100.0% LazyCompile: ~NativeModule.require node.js:842
1 5.6% Function: ~<anonymous> assert.js:1
1 100.0% LazyCompile: ~NativeModule.compile node.js:887
1 100.0% LazyCompile: ~NativeModule.require node.js:842
17 14.5% LazyCompile: ~Module._compile module.js:374
17 100.0% LazyCompile: ~Module._extensions..js module.js:472
17 100.0% LazyCompile: ~Module.load module.js:346
17 100.0% LazyCompile: Module._load module.js:275
16 94.1% LazyCompile: ~Module.require module.js:361
1 5.9% LazyCompile: ~Module.runMain module.js:495
13 11.1% LazyCompile: ~Module.load module.js:346
13 100.0% LazyCompile: Module._load module.js:275
13 100.0% LazyCompile: ~Module.require module.js:361
13 100.0% LazyCompile: ~require module.js:379
6 46.2% Function: ~<anonymous> /Users/tmcw/src/carmen/lib/cxxcache.js:1
3 23.1% Function: <anonymous> /Users/tmcw/src/carmen/node_modules/iconv/lib/iconv.js:1
2 15.4% Function: <anonymous> /Users/tmcw/src/carmen/node_modules/tilelive-s3/lib/index.js:1
1 7.7% Function: ~<anonymous> /Users/tmcw/src/carmen/node_modules/tilelive-s3/node_modules/tilejson/node_modules/get/lib/node-get/node-get.js:1
1 7.7% Function: <anonymous> /Users/tmcw/src/carmen/node_modules/mbtiles/node_modules/sqlite3/lib/sqlite3.js:1
6 5.1% LazyCompile: ~fs.statSync fs.js:682
6 100.0% LazyCompile: statPath module.js:88
6 100.0% LazyCompile: ~tryFile module.js:138
4 66.7% LazyCompile: ~tryExtensions module.js:148
4 100.0% LazyCompile: ~Module._findPath module.js:160
1 16.7% LazyCompile: ~tryPackage module.js:122
1 100.0% LazyCompile: ~Module._findPath module.js:160
1 16.7% LazyCompile: ~Module._findPath module.js:160
1 100.0% LazyCompile: ~Module._resolveFilename module.js:323
3 2.6% LazyCompile: ~_.each._.forEach /Users/tmcw/src/carmen/node_modules/underscore/underscore.js:73
2 66.7% LazyCompile: ~_.reduce._.foldl._.inject /Users/tmcw/src/carmen/node_modules/underscore/underscore.js:105
2 100.0% LazyCompile: ~wrapper.(anonymous function) /Users/tmcw/src/carmen/node_modules/underscore/underscore.js:1018
2 100.0% LazyCompile: ~relev /Users/tmcw/src/carmen/index.js:146
2 100.0% LazyCompile: ~<anonymous> /Users/tmcw/src/carmen/index.js:257
1 33.3% Function: ~<anonymous> /Users/tmcw/src/carmen/node_modules/underscore/underscore.js:9
1 100.0% Function: ~<anonymous> /Users/tmcw/src/carmen/node_modules/underscore/underscore.js:1
1 100.0% LazyCompile: ~Module._compile module.js:374
1 100.0% LazyCompile: ~Module._extensions..js module.js:472
93 35.9% /usr/lib/system/libsystem_kernel.dylib
15 16.1% LazyCompile: ~fs.readSync fs.js:460
15 100.0% LazyCompile: fs.readFileSync fs.js:271
7 46.7% LazyCompile: readPackage module.js:99
7 100.0% LazyCompile: ~tryPackage module.js:122
7 100.0% LazyCompile: ~Module._findPath module.js:160
6 40.0% LazyCompile: ~Module._extensions..js module.js:472
6 100.0% LazyCompile: ~Module.load module.js:346
6 100.0% LazyCompile: Module._load module.js:275
2 13.3% LazyCompile: ~Mime.load /Users/tmcw/src/carmen/node_modules/tilelive-s3/node_modules/knox/node_modules/mime/mime.js:49
2 100.0% Function: ~<anonymous> /Users/tmcw/src/carmen/node_modules/tilelive-s3/node_modules/knox/node_modules/mime/mime.js:1
2 100.0% LazyCompile: ~Module._compile module.js:374
5 5.4% LazyCompile: ~fs.statSync fs.js:682
5 100.0% LazyCompile: statPath module.js:88
5 100.0% LazyCompile: ~tryFile module.js:138
3 60.0% LazyCompile: ~tryExtensions module.js:148
2 66.7% LazyCompile: ~tryPackage module.js:122
1 33.3% LazyCompile: ~Module._findPath module.js:160
1 20.0% LazyCompile: ~tryPackage module.js:122
1 100.0% LazyCompile: ~Module._findPath module.js:160
1 20.0% LazyCompile: ~Module._findPath module.js:160
1 100.0% LazyCompile: ~Module._resolveFilename module.js:323
2 2.2% LazyCompile: ~fs.closeSync fs.js:396
2 100.0% LazyCompile: fs.readFileSync fs.js:271
2 100.0% LazyCompile: ~Module._extensions..js module.js:472
2 100.0% LazyCompile: ~Module.load module.js:346
2 100.0% LazyCompile: Module._load module.js:275
7 2.7% /usr/lib/system/libsystem_platform.dylib
3 42.9% LazyCompile: <anonymous> /Users/tmcw/src/carmen/lib/cxxcache.js:80
3 100.0% LazyCompile: ~<anonymous> /Users/tmcw/src/carmen/api-mbtiles.js:35
1 14.3% LazyCompile: ~fs.statSync fs.js:682
1 100.0% LazyCompile: statPath module.js:88
1 100.0% LazyCompile: ~tryFile module.js:138
1 100.0% LazyCompile: ~Module._findPath module.js:160
1 100.0% LazyCompile: ~Module._resolveFilename module.js:323
6 2.3% /usr/lib/system/libsystem_malloc.dylib
1 16.7% LazyCompile: ~fs.statSync fs.js:682
1 100.0% LazyCompile: statPath module.js:88
1 100.0% LazyCompile: ~tryFile module.js:138
1 100.0% LazyCompile: ~tryPackage module.js:122
1 100.0% LazyCompile: ~Module._findPath module.js:160
1 16.7% LazyCompile: ~forEach native array.js:1087
1 100.0% LazyCompile: ~relev /Users/tmcw/src/carmen/index.js:146
1 100.0% LazyCompile: ~<anonymous> /Users/tmcw/src/carmen/index.js:257
1 100.0% LazyCompile: ~searched /Users/tmcw/src/carmen/index.js:117
1 100.0% LazyCompile: ~<anonymous> /Users/tmcw/src/carmen/index.js:623
1 16.7% LazyCompile: ~exports.resolve path.js:304
1 100.0% LazyCompile: ~startup node.js:30
1 100.0% Function: ~<anonymous> node.js:27
1 16.7% LazyCompile: ~exports.codes.Z_OK zlib.js:50
1 100.0% LazyCompile: ~forEach native array.js:1087
1 100.0% Function: ~<anonymous> zlib.js:1
1 100.0% LazyCompile: ~NativeModule.compile node.js:887
1 100.0% LazyCompile: ~NativeModule.require node.js:842
1 16.7% LazyCompile: ~NativeModule.getCached node.js:866
1 100.0% LazyCompile: ~NativeModule.require node.js:842
1 100.0% Function: ~<anonymous> module.js:1
1 100.0% LazyCompile: ~NativeModule.compile node.js:887
1 100.0% LazyCompile: ~NativeModule.require node.js:842
1 16.7% LazyCompile: <anonymous> /Users/tmcw/src/carmen/lib/cxxcache.js:80
1 100.0% LazyCompile: ~<anonymous> /Users/tmcw/src/carmen/api-mbtiles.js:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment