Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,13 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [14, 16, 18, 20]
node: [18, 20, 22]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: node --version
# Upgrade npm to newest supported version so it understands lockfile v3
- run: npm install -g npm@9.9.3
if: matrix.node == 14
- run: npm install
- run: npm test
- name: coverage
Expand All @@ -32,8 +29,6 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 14
# Upgrade npm to newest supported version so it understands lockfile v3
- run: npm install -g npm@9.9.3
node-version: 20
- run: npm install
- run: npm run lint
23 changes: 9 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,15 @@
[pprof][pprof-url] support for Node.js.

## Prerequisites
1. Your application will need to be using Node.js 14 or greater. This package is tested against
[current versions of Node.js][node-versions]: 14, 16, 18, and 20.

2. The `pprof` module has a native component that is used to collect profiles
with v8's CPU and Heap profilers. You may need to install additional
dependencies to build this module.
* For Linux: `pprof` has prebuilt binaries available for Linux and Alpine
Linux for Node 14 and 16. No additional dependencies are required.
* For other environments: when using `@google-cloud/profiler` on environments
that `pprof` does not have prebuilt binaries for, the module
[`node-gyp`](https://www.npmjs.com/package/node-gyp) will be used to
build binaries. See `node-gyp`'s
[documentation](https://github.com/nodejs/node-gyp#installation)
for information on dependencies required to build binaries with `node-gyp`.
1. Your application will need to be using Node.js 18 or greater. This package is tested against
[current versions of Node.js][node-versions]: 18, 20, and 22.

2. The `pprof` module has a native component that is compiled on installation using
[`node-gyp`](https://www.npmjs.com/package/node-gyp). You will need to install the build
dependencies for `node-gyp`. See `node-gyp`'s
[documentation](https://github.com/nodejs/node-gyp#installation) for details on
the dependencies required for your platform.


3. The [`pprof`][pprof-url] CLI can be used to view profiles collected with
this module. Instructions for installing the `pprof` CLI can be found
Expand Down
8 changes: 8 additions & 0 deletions js-green-licenses.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"packageAllowlist": [
"tar",
"minipass",
"chownr",
"yallist"
]
}
Loading
Loading