node-oom-heapdump 3.0.1 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/publish-native-assets-to-github-releases.yml +1 -1
- package/.travis.yml +2 -0
- package/CHANGELOG.md +11 -1
- package/README.md +2 -2
- package/build/node_oom_heapdump_native.vcxproj +8 -8
- package/lib/cpuProfileWorker.js +7 -0
- package/lib/heapdumpWorker.js +8 -1
- package/package.json +6 -6
@@ -11,7 +11,7 @@ jobs:
|
|
11
11
|
runs-on: ${{ matrix.os }}
|
12
12
|
strategy:
|
13
13
|
matrix:
|
14
|
-
node-version: [10.x, 11.x, 12.x, 14.x, 15.x, 16.x]
|
14
|
+
node-version: [10.x, 11.x, 12.x, 14.x, 15.x, 16.x, 17.x, 18.x]
|
15
15
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
16
16
|
steps:
|
17
17
|
- uses: actions/checkout@v2
|
package/.travis.yml
CHANGED
package/CHANGELOG.md
CHANGED
@@ -1,4 +1,14 @@
|
|
1
|
-
|
1
|
+
04-08-2023 Paul Rütter
|
2
|
+
- 3.0.3
|
3
|
+
- Prefer IPv4 (https://github.com/blueconic/node-oom-heapdump/pull/29)
|
4
|
+
- Update dependencies
|
5
|
+
|
6
|
+
24-07-2022 Paul Rütter
|
7
|
+
- 3.0.2
|
8
|
+
- Add Node18, as it's LTS now
|
9
|
+
- Upgrade dependencies
|
10
|
+
|
11
|
+
10-02-2022 Paul Rütter
|
2
12
|
- 3.0.1
|
3
13
|
- Fixed building native artifacts on Windows, thanks spmiller! https://github.com/blueconic/node-oom-heapdump/issues/22
|
4
14
|
|
package/README.md
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
[](https://github.com/blueconic/node-oom-heapdump/actions/workflows/publish-native-assets-to-github-releases.yml)
|
2
2
|
|
3
3
|
# node-oom-heapdump
|
4
4
|
Node module which will create a V8 heap snapshot right before an "Out of Memory" error occurs.
|
5
5
|
|
6
6
|
It can also create heapdumps and CPU profiles on request like 'v8-profiler', but does this off-process so it doesn't interfere with execution of the main process.
|
7
7
|
|
8
|
-
Tested on Node.js 10.x, 11.x, 12.x, 13.x, 14.x, 15.x and
|
8
|
+
Tested on Node.js 10.x, 11.x, 12.x, 13.x, 14.x, 15.x, 16.x, 17.x and 18.x.
|
9
9
|
No support for Node.js < 10.x at the moment in version 3.0.0, use version 2.2.0 for if needed.
|
10
10
|
|
11
11
|
Also comes with prebuilt binaries (hosted on Github releases), thanks to Stuart Miller (https://github.com/spmiller).
|
@@ -48,8 +48,8 @@
|
|
48
48
|
</PropertyGroup>
|
49
49
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
50
50
|
<ClCompile>
|
51
|
-
<AdditionalIncludeDirectories>C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\16.
|
52
|
-
<AdditionalOptions>/Zc:__cplusplus %(AdditionalOptions)</AdditionalOptions>
|
51
|
+
<AdditionalIncludeDirectories>C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\18.16.1\include\node;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\18.16.1\src;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\18.16.1\deps\openssl\config;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\18.16.1\deps\openssl\openssl\include;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\18.16.1\deps\uv\include;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\18.16.1\deps\zlib;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\18.16.1\deps\v8\include;..\node_modules\nan;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
52
|
+
<AdditionalOptions>/Zc:__cplusplus -std:c++17 %(AdditionalOptions)</AdditionalOptions>
|
53
53
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
54
54
|
<BufferSecurityCheck>true</BufferSecurityCheck>
|
55
55
|
<DebugInformationFormat>OldStyle</DebugInformationFormat>
|
@@ -72,7 +72,7 @@
|
|
72
72
|
<AdditionalOptions>/LTCG:INCREMENTAL %(AdditionalOptions)</AdditionalOptions>
|
73
73
|
</Lib>
|
74
74
|
<Link>
|
75
|
-
<AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;DelayImp.lib;"C:\\Users\\paul.BLUECONIC\\AppData\\Local\\node-gyp\\Cache\\16.
|
75
|
+
<AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;DelayImp.lib;"C:\\Users\\paul.BLUECONIC\\AppData\\Local\\node-gyp\\Cache\\18.16.1\\x64\\node.lib"</AdditionalDependencies>
|
76
76
|
<AdditionalOptions>/LTCG:INCREMENTAL %(AdditionalOptions)</AdditionalOptions>
|
77
77
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
78
78
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
@@ -83,14 +83,14 @@
|
|
83
83
|
<TargetMachine>MachineX64</TargetMachine>
|
84
84
|
</Link>
|
85
85
|
<ResourceCompile>
|
86
|
-
<AdditionalIncludeDirectories>C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\16.
|
86
|
+
<AdditionalIncludeDirectories>C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\18.16.1\include\node;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\18.16.1\src;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\18.16.1\deps\openssl\config;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\18.16.1\deps\openssl\openssl\include;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\18.16.1\deps\uv\include;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\18.16.1\deps\zlib;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\18.16.1\deps\v8\include;..\node_modules\nan;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
87
87
|
<PreprocessorDefinitions>NODE_GYP_MODULE_NAME=node_oom_heapdump_native;USING_UV_SHARED=1;USING_V8_SHARED=1;V8_DEPRECATION_WARNINGS=1;V8_DEPRECATION_WARNINGS;V8_IMMINENT_DEPRECATION_WARNINGS;_GLIBCXX_USE_CXX11_ABI=1;WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_HAS_EXCEPTIONS=0;OPENSSL_NO_PINSHARED;OPENSSL_THREADS;BUILDING_NODE_EXTENSION;DEBUG;_DEBUG;V8_ENABLE_CHECKS;%(PreprocessorDefinitions);%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
88
88
|
</ResourceCompile>
|
89
89
|
</ItemDefinitionGroup>
|
90
90
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
91
91
|
<ClCompile>
|
92
|
-
<AdditionalIncludeDirectories>C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\16.
|
93
|
-
<AdditionalOptions>/Zc:__cplusplus %(AdditionalOptions)</AdditionalOptions>
|
92
|
+
<AdditionalIncludeDirectories>C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\18.16.1\include\node;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\18.16.1\src;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\18.16.1\deps\openssl\config;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\18.16.1\deps\openssl\openssl\include;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\18.16.1\deps\uv\include;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\18.16.1\deps\zlib;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\18.16.1\deps\v8\include;..\node_modules\nan;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
93
|
+
<AdditionalOptions>/Zc:__cplusplus -std:c++17 %(AdditionalOptions)</AdditionalOptions>
|
94
94
|
<BufferSecurityCheck>true</BufferSecurityCheck>
|
95
95
|
<DebugInformationFormat>OldStyle</DebugInformationFormat>
|
96
96
|
<DisableSpecificWarnings>4351;4355;4800;4251;4275;4244;4267;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
@@ -116,7 +116,7 @@
|
|
116
116
|
<AdditionalOptions>/LTCG:INCREMENTAL %(AdditionalOptions)</AdditionalOptions>
|
117
117
|
</Lib>
|
118
118
|
<Link>
|
119
|
-
<AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;DelayImp.lib;"C:\\Users\\paul.BLUECONIC\\AppData\\Local\\node-gyp\\Cache\\16.
|
119
|
+
<AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;DelayImp.lib;"C:\\Users\\paul.BLUECONIC\\AppData\\Local\\node-gyp\\Cache\\18.16.1\\x64\\node.lib"</AdditionalDependencies>
|
120
120
|
<AdditionalOptions>/LTCG:INCREMENTAL %(AdditionalOptions)</AdditionalOptions>
|
121
121
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
122
122
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
@@ -127,7 +127,7 @@
|
|
127
127
|
<TargetMachine>MachineX64</TargetMachine>
|
128
128
|
</Link>
|
129
129
|
<ResourceCompile>
|
130
|
-
<AdditionalIncludeDirectories>C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\16.
|
130
|
+
<AdditionalIncludeDirectories>C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\18.16.1\include\node;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\18.16.1\src;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\18.16.1\deps\openssl\config;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\18.16.1\deps\openssl\openssl\include;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\18.16.1\deps\uv\include;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\18.16.1\deps\zlib;C:\Users\paul.BLUECONIC\AppData\Local\node-gyp\Cache\18.16.1\deps\v8\include;..\node_modules\nan;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
131
131
|
<PreprocessorDefinitions>NODE_GYP_MODULE_NAME=node_oom_heapdump_native;USING_UV_SHARED=1;USING_V8_SHARED=1;V8_DEPRECATION_WARNINGS=1;V8_DEPRECATION_WARNINGS;V8_IMMINENT_DEPRECATION_WARNINGS;_GLIBCXX_USE_CXX11_ABI=1;WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_HAS_EXCEPTIONS=0;OPENSSL_NO_PINSHARED;OPENSSL_THREADS;BUILDING_NODE_EXTENSION;%(PreprocessorDefinitions);%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
132
132
|
</ResourceCompile>
|
133
133
|
</ItemDefinitionGroup>
|
package/lib/cpuProfileWorker.js
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
let fs = require('fs');
|
2
|
+
let dns = require("dns");
|
2
3
|
|
3
4
|
// set global variables based on args passed on to this CPU profile worker
|
4
5
|
let devToolsPort = process.argv[2];
|
@@ -18,6 +19,12 @@ writeStream.on('error', (err) => {
|
|
18
19
|
handleError("CPU profile path not valid or writable", err);
|
19
20
|
});
|
20
21
|
|
22
|
+
try {
|
23
|
+
dns.setDefaultResultOrder('ipv4first');
|
24
|
+
} catch (e) {
|
25
|
+
// ignore, method not available before node16
|
26
|
+
}
|
27
|
+
|
21
28
|
CDP({
|
22
29
|
host: 'localhost',
|
23
30
|
port: devToolsPort
|
package/lib/heapdumpWorker.js
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
let fs = require('fs');
|
2
|
+
let dns = require("dns");
|
2
3
|
|
3
4
|
// set global variables based on args passed on to this heapdump worker
|
4
5
|
let devToolsPort = process.argv[2];
|
@@ -18,6 +19,12 @@ writeStream.on('error', (err) => {
|
|
18
19
|
handleError("Heapdump path not valid or writable", err);
|
19
20
|
});
|
20
21
|
|
22
|
+
try {
|
23
|
+
dns.setDefaultResultOrder('ipv4first');
|
24
|
+
} catch (e) {
|
25
|
+
// ignore, method not available before node16
|
26
|
+
}
|
27
|
+
|
21
28
|
CDP({
|
22
29
|
host: 'localhost',
|
23
30
|
port: devToolsPort
|
@@ -46,4 +53,4 @@ CDP({
|
|
46
53
|
});
|
47
54
|
}).on('error', (err) => {
|
48
55
|
handleError(err);
|
49
|
-
});
|
56
|
+
});
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "node-oom-heapdump",
|
3
|
-
"version": "3.0.
|
3
|
+
"version": "3.0.3",
|
4
4
|
"description": "Create a V8 heap snapshot when an \"Out of Memory\" error occurs, or create a heap snapshot or CPU profile on request.",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
@@ -40,11 +40,11 @@
|
|
40
40
|
"eslint-config-google": "^0.14.0"
|
41
41
|
},
|
42
42
|
"dependencies": {
|
43
|
-
"@mapbox/node-pre-gyp": "^1.0.
|
43
|
+
"@mapbox/node-pre-gyp": "^1.0.11",
|
44
44
|
"bindings": "^1.5.0",
|
45
|
-
"chrome-remote-interface": "^0.
|
46
|
-
"nan": "^2.
|
45
|
+
"chrome-remote-interface": "^0.33.0",
|
46
|
+
"nan": "^2.17.0",
|
47
47
|
"require-main-filename": "^2.0.0",
|
48
|
-
"ws": "^
|
48
|
+
"ws": "^8.13.0"
|
49
49
|
}
|
50
|
-
}
|
50
|
+
}
|