13 Commits

Author SHA1 Message Date
Matteo Collina
eeb0f2d2c6
Updated deps and added CI (#246)
* Updated deps and added CI

* fixes
2021-12-30 12:31:29 +01:00
Renée Kooi
075a19302c
Fix Node 8 compatibility
fs.promises is available in Node 10+ only. By using promisify(fs.readFile) instead we stay compatible with Node 8.
2019-04-25 11:52:15 +02:00
David Mark Clements
d5c8d3b36b v8-profile -> cpu-profile 2019-04-23 17:31:10 +02:00
slonka
01fdc75837 Disable Merge/Unmerge Optimized Unoptimized buttons when generating flamegraph from v8 profile 2019-01-23 21:53:21 +01:00
slonka
d16e062a4d Added tests and example for v8 profile converter 2019-01-23 21:53:21 +01:00
slonka
d0c3e8fbec Add support for visualizing v8 profile gathered by CpuProfiler::StartProfling 2019-01-23 21:53:21 +01:00
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