7 Commits

Author SHA1 Message Date
Renée Kooi
c2c82e2d78
Friendlier api for ticksToTree 2018-09-26 15:14:04 +02:00
Ruben Bridgewater
1b5b419191
Fix init detection
This makes sure the init phase is properly detected throughout all
Node.js versions.

A couple of mechanisms work together to achieve that:

1) Get the stack trace while starting Node.js and remove all those
   frames later on.
2) All native modules are detected while initializing and all frames
   before that one including it will also be marked as bootstrapping
   frames.
3) For Node.js 10 a few more stacks are detected by directly checking
   for the `internal/bootstrap.js` file. It would not show up in the
   other two mechanisms.
4) A check for `internalBinding` is in place since this code would
   only execute during native module loading.
5) An explicit check for `NativeModule` is in place since that is the
   name of the internal Node.js module loading to bootstrap core.

This makes sure that pretty much all loading is properly detected.

Besides this, this commit fixes another small bug when using the
`treeDebug` option in combination with the `mapFrames` option. Before
the arguments were not passed through properly.
2018-09-21 15:11:49 +02:00
Ruben Bridgewater
e885726a7f
Fix linting errors 2018-09-19 10:22:48 +02:00
Shuhei Kagawa
d14823d1d4 Remove duplicated JS from flamegraph.html
Fixes #147
2018-08-11 23:42:46 +02:00
davidmarkclements
07e8b39ab3 linting 2018-03-14 01:48:58 +01:00
davidmarkclements
fbbae4470f ui improve, cli improve, final rearranging 2018-03-14 01:25:16 +01:00
davidmarkclements
e48d25261a minor code rearrange 2018-03-12 22:07:18 +01:00