|
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 14 or greater. This package is tested against |
11 | | -[current versions of Node.js][node-versions]: 14, 16, 18, and 20. |
12 | | - |
13 | | -2. The `pprof` module has a native component that is used to collect profiles |
14 | | -with v8's CPU and Heap profilers. You may need to install additional |
15 | | -dependencies to build this module. |
16 | | - * For Linux: `pprof` has prebuilt binaries available for Linux and Alpine |
17 | | - Linux for Node 14 and 16. No additional dependencies are required. |
18 | | - * For other environments: when using `@google-cloud/profiler` on environments |
19 | | - that `pprof` does not have prebuilt binaries for, the module |
20 | | - [`node-gyp`](https://www.npmjs.com/package/node-gyp) will be used to |
21 | | - build binaries. See `node-gyp`'s |
22 | | - [documentation](https://github.com/nodejs/node-gyp#installation) |
23 | | - for information on dependencies required to build binaries with `node-gyp`. |
| 10 | +1. Your application will need to be using Node.js 18 or greater. This package is tested against |
| 11 | +[current versions of Node.js][node-versions]: 18, 20, and 22. |
| 12 | + |
| 13 | +2. The `pprof` module has a native component that is compiled on installation using |
| 14 | +[`node-gyp`](https://www.npmjs.com/package/node-gyp). You will need to install the build |
| 15 | +dependencies for `node-gyp`. See `node-gyp`'s |
| 16 | +[documentation](https://github.com/nodejs/node-gyp#installation) for details on |
| 17 | +the dependencies required for your platform. |
| 18 | + |
24 | 19 |
|
25 | 20 | 3. The [`pprof`][pprof-url] CLI can be used to view profiles collected with |
26 | 21 | this module. Instructions for installing the `pprof` CLI can be found |
|
0 commit comments