|
7 | 7 | [pprof][pprof-url] support for Node.js. |
8 | 8 |
|
9 | 9 | ## Prerequisites |
10 | | -1. Your application will need to be using Node.js 8.9.4 or greater, Node.js |
11 | | -10.4.1 or greater, or any version of Node 12. The profiler should not be |
12 | | -enabled when using earlier versions of Node 8 and 10 because the profiler is |
13 | | -not stable with those versions of Node.js. |
14 | | - * Versions of Node.js 8 prior to 8.9.4 are impacted by |
15 | | - [this](https://bugs.chromium.org/p/v8/issues/detail?id=6623) issue, which |
16 | | - causes a memory leak when time profiling is enabled. |
17 | | - * Versions of Node.js 10 prior to 10.4.1 are impacted by |
18 | | - [this](https://bugs.chromium.org/p/chromium/issues/detail?id=847863) issue, |
19 | | - which can cause garbage collection to take several minutes when heap |
20 | | - profiling is enabled. |
| 10 | +1. Your application will need to be using Node.js 10.4.1 or greater, or any |
| 11 | +version of Node 12. |
| 12 | + |
| 13 | +The profiler should not be enabled when using earlier versions of Node 10, |
| 14 | +since versions of Node.js 10 prior to 10.4.1 are impacted by |
| 15 | +[this](https://bugs.chromium.org/p/chromium/issues/detail?id=847863) issue, |
| 16 | +which can cause garbage collection to take several minutes when heap profiling |
| 17 | +is enabled. |
21 | 18 |
|
22 | 19 | 2. The `pprof` module has a native component that is used to collect profiles |
23 | 20 | with v8's CPU and Heap profilers. You may need to install additional |
24 | 21 | dependencies to build this module. |
25 | 22 | * For Linux: `pprof` has prebuilt binaries available for Linux and Alpine |
26 | | - Linux for Node 8, 10, 11 and 12. No additional dependencies are required. |
| 23 | + Linux for Node 10, 11 and 12. No additional dependencies are required. |
27 | 24 | * For other environments: when using `@google-cloud/profiler` on environments |
28 | 25 | that `pprof` does not have prebuilt binaries for, the module |
29 | 26 | [`node-gyp`](https://www.npmjs.com/package/node-gyp) will be used to |
|