Files
node/lib
Joyee Cheung 475c43c1b0 perf_hooks: only enable GC tracking when it's requested
Previously a GC prologue callback and a GC epilogue callback
are always unconditionally enabled during bootstrap when
the `performance` binding is loaded, even when the user does
not use the performance timeline API to enable GC tracking.
This patch makes the callback addition conditional and only
enables them when the user explicitly requests
`observer.observe(['gc'])` to avoid the overhead.

PR-URL: https://github.com/nodejs/node/pull/25853
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: James M Snell <jasnell@gmail.com>
2019-02-06 20:02:59 +01:00
..
2018-12-10 17:07:18 +01:00
2018-11-06 10:58:42 -05:00
2018-11-20 10:42:31 -08:00
2019-02-01 19:06:58 -08:00
2019-01-27 17:20:13 +01:00
2019-01-16 12:41:56 +09:00
2018-07-16 15:55:15 -07:00
2019-02-06 07:37:48 +01:00
2019-01-28 16:25:07 -08:00
2019-02-03 20:40:16 +01:00
2019-01-05 21:36:46 +01:00