Skip to content

Commit 88c69b3

Browse files
committed
add support for latest Node versions
1 parent 1b02728 commit 88c69b3

File tree

6 files changed

+16
-7
lines changed

6 files changed

+16
-7
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Learn more on the [features](https://stackimpact.com/features/) page (with scree
2121

2222
#### How it works
2323

24-
The StackImpact profiler agent is imported into a program and used as a normal package. When the program runs, various sampling profilers are started and stopped automatically by the agent and/or programmatically using the agent methods. The agent periodically reports recorded profiles and metrics to the StackImpact Dashboard. If an application has multiple processes, also referred to as workers, instances or nodes, only one process will have an active agent at any point of time. The agent can also operate in manual mode, which should be used in development only.
24+
The StackImpact profiler agent is imported into a program and used as a normal package. When the program runs, various sampling profilers are started and stopped automatically by the agent and/or programmatically using the agent methods. The agent periodically reports recorded profiles and metrics to the StackImpact Dashboard. The agent can also operate in manual mode, which should be used in development only.
2525

2626

2727
#### Documentation
@@ -155,4 +155,4 @@ To enable debug logging, add `debug: true` to startup options. If the debug log
155155

156156
## Overhead
157157

158-
The agent overhead is measured to be less than 1% for applications under high load. For applications that are horizontally scaled to multiple processes, StackImpact agent is only active on one of the processes at any point of time, therefore the total overhead is much lower.
158+
The agent overhead is measured to be less than 1% for applications under high load.

abi-map.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"v4.0.0":"46","v4.1.0":"46","v4.1.1":"46","v4.1.2":"46","v4.2.0":"46","v4.2.1":"46","v4.2.2":"46","v4.2.3":"46","v4.2.4":"46","v4.2.5":"46","v4.2.6":"46","v4.3.0":"46","v4.3.1":"46","v4.3.2":"46","v4.4.0":"46","v4.4.1":"46","v4.4.2":"46","v4.4.3":"46","v4.4.4":"46","v4.4.5":"46","v4.4.6":"46","v4.4.7":"46","v4.5.0":"46","v4.6.0":"46","v4.6.1":"46","v4.6.2":"46","v4.7.0":"46","v4.7.1":"46","v4.7.2":"46","v4.7.3":"46","v4.8.0":"46","v4.8.1":"46","v4.8.2":"46","v4.8.3":"46","v4.8.4":"46","v5.0.0":"47","v5.1.0":"47","v5.1.1":"47","v5.10.0":"47","v5.10.1":"47","v5.11.0":"47","v5.11.1":"47","v5.12.0":"47","v5.2.0":"47","v5.3.0":"47","v5.4.0":"47","v5.4.1":"47","v5.5.0":"47","v5.6.0":"47","v5.7.0":"47","v5.7.1":"47","v5.8.0":"47","v5.9.0":"47","v5.9.1":"47","v6.0.0":"48","v6.1.0":"48","v6.10.0":"48","v6.10.1":"48","v6.10.2":"48","v6.10.3":"48","v6.11.0":"48","v6.11.1":"48","v6.11.2":"48","v6.11.3":"48","v6.11.4":"48","v6.11.5":"48","v6.12.0":"48","v6.12.1":"48","v6.12.2":"48","v6.12.3":"48","v6.13.0":"48","v6.13.1":"48","v6.13.2":"48","v6.14.0":"48","v6.14.1":"48","v6.14.2":"48","v6.2.0":"48","v6.2.1":"48","v6.2.2":"48","v6.3.0":"48","v6.3.1":"48","v6.4.0":"48","v6.5.0":"48","v6.6.0":"48","v6.7.0":"48","v6.8.0":"48","v6.8.1":"48","v6.9.0":"48","v6.9.1":"48","v6.9.2":"48","v6.9.3":"48","v6.9.4":"48","v6.9.5":"48","v7.0.0":"51","v7.1.0":"51","v7.10.0":"51","v7.10.1":"51","v7.2.0":"51","v7.2.1":"51","v7.3.0":"51","v7.4.0":"51","v7.5.0":"51","v7.6.0":"51","v7.7.1":"51","v7.7.2":"51","v7.7.3":"51","v7.7.4":"51","v7.8.0":"51","v7.9.0":"51","v8.0.0":"57","v8.1.0":"57","v8.1.1":"57","v8.1.2":"57","v8.1.3":"57","v8.1.4":"57","v8.2.0":"57","v8.2.1":"57","v8.3.0":"57","v8.4.0":"57","v8.5.0":"57","v8.6.0":"57","v8.7.0":"57","v8.8.0":"57","v8.8.1":"57","v8.9.0":"57","v8.9.1":"57","v8.9.2":"57","v8.9.3":"57","v8.9.4":"57","v8.10.0":"57","v8.11.0":"57","v8.11.1":"57","v8.11.2":"57","v9.0.0":"59","v9.1.0":"59","v9.2.0":"59","v9.2.1":"59","v9.3.0":"59","v9.4.0":"59","v9.5.0":"59","v9.6.0":"59","v9.6.1":"59","v9.7.0":"59","v9.7.1":"59","v9.8.0":"59","v9.9.0":"59","v9.10.0":"59","v9.10.1":"59","v9.11.0":"59","v9.11.1":"59","v10.0.0":"64","v10.1.0":"64","v10.2.0":"64","v10.2.1":"64","v10.3.0":"64"}
1+
{"v4.0.0":"46","v4.1.0":"46","v4.1.1":"46","v4.1.2":"46","v4.2.0":"46","v4.2.1":"46","v4.2.2":"46","v4.2.3":"46","v4.2.4":"46","v4.2.5":"46","v4.2.6":"46","v4.3.0":"46","v4.3.1":"46","v4.3.2":"46","v4.4.0":"46","v4.4.1":"46","v4.4.2":"46","v4.4.3":"46","v4.4.4":"46","v4.4.5":"46","v4.4.6":"46","v4.4.7":"46","v4.5.0":"46","v4.6.0":"46","v4.6.1":"46","v4.6.2":"46","v4.7.0":"46","v4.7.1":"46","v4.7.2":"46","v4.7.3":"46","v4.8.0":"46","v4.8.1":"46","v4.8.2":"46","v4.8.3":"46","v4.8.4":"46","v5.0.0":"47","v5.1.0":"47","v5.1.1":"47","v5.10.0":"47","v5.10.1":"47","v5.11.0":"47","v5.11.1":"47","v5.12.0":"47","v5.2.0":"47","v5.3.0":"47","v5.4.0":"47","v5.4.1":"47","v5.5.0":"47","v5.6.0":"47","v5.7.0":"47","v5.7.1":"47","v5.8.0":"47","v5.9.0":"47","v5.9.1":"47","v6.0.0":"48","v6.1.0":"48","v6.10.0":"48","v6.10.1":"48","v6.10.2":"48","v6.10.3":"48","v6.11.0":"48","v6.11.1":"48","v6.11.2":"48","v6.11.3":"48","v6.11.4":"48","v6.11.5":"48","v6.12.0":"48","v6.12.1":"48","v6.12.2":"48","v6.12.3":"48","v6.13.0":"48","v6.13.1":"48","v6.13.2":"48","v6.14.0":"48","v6.14.1":"48","v6.14.2":"48","v6.2.0":"48","v6.2.1":"48","v6.2.2":"48","v6.3.0":"48","v6.3.1":"48","v6.4.0":"48","v6.5.0":"48","v6.6.0":"48","v6.7.0":"48","v6.8.0":"48","v6.8.1":"48","v6.9.0":"48","v6.9.1":"48","v6.9.2":"48","v6.9.3":"48","v6.9.4":"48","v6.9.5":"48","v7.0.0":"51","v7.1.0":"51","v7.10.0":"51","v7.10.1":"51","v7.2.0":"51","v7.2.1":"51","v7.3.0":"51","v7.4.0":"51","v7.5.0":"51","v7.6.0":"51","v7.7.1":"51","v7.7.2":"51","v7.7.3":"51","v7.7.4":"51","v7.8.0":"51","v7.9.0":"51","v8.0.0":"57","v8.1.0":"57","v8.1.1":"57","v8.1.2":"57","v8.1.3":"57","v8.1.4":"57","v8.2.0":"57","v8.2.1":"57","v8.3.0":"57","v8.4.0":"57","v8.5.0":"57","v8.6.0":"57","v8.7.0":"57","v8.8.0":"57","v8.8.1":"57","v8.9.0":"57","v8.9.1":"57","v8.9.2":"57","v8.9.3":"57","v8.9.4":"57","v8.10.0":"57","v8.11.0":"57","v8.11.1":"57","v8.11.2":"57","v8.11.3":"57","v9.0.0":"59","v9.1.0":"59","v9.2.0":"59","v9.2.1":"59","v9.3.0":"59","v9.4.0":"59","v9.5.0":"59","v9.6.0":"59","v9.6.1":"59","v9.7.0":"59","v9.7.1":"59","v9.8.0":"59","v9.9.0":"59","v9.10.0":"59","v9.10.1":"59","v9.11.0":"59","v9.11.1":"59","v10.0.0":"64","v10.1.0":"64","v10.2.0":"64","v10.2.1":"64","v10.3.0":"64","v10.4.0":"64","v10.4.1":"64","v10.5.0":"64"}

build-addons.js

+4
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ const versions= [
140140
"v8.11.0",
141141
"v8.11.1",
142142
"v8.11.2",
143+
"v8.11.3",
143144
"v9.0.0",
144145
"v9.1.0",
145146
"v9.2.0",
@@ -162,6 +163,9 @@ const versions= [
162163
"v10.2.0",
163164
"v10.2.1",
164165
"v10.3.0",
166+
"v10.4.0",
167+
"v10.4.1",
168+
"v10.5.0",
165169
];
166170

167171

lib/metric.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,9 @@ class Breakdown {
361361
evaluatePercent(totalSamples) {
362362
let self = this;
363363

364-
self.measurement = (self.numSamples / totalSamples) * 100;
364+
if (totalSamples > 0) {
365+
self.measurement = (self.numSamples / totalSamples) * 100;
366+
}
365367

366368
for (let child of self.children.values()) {
367369
child.evaluatePercent(totalSamples);
@@ -372,7 +374,9 @@ class Breakdown {
372374
convertToPercent(total) {
373375
let self = this;
374376

375-
self.measurement = (self.measurement / total) * 100;
377+
if (total > 0) {
378+
self.measurement = (self.measurement / total) * 100;
379+
}
376380

377381
for (let child of self.children.values()) {
378382
child.convertToPercent(total);

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "stackimpact",
3-
"version": "1.3.2",
3+
"version": "1.3.3",
44
"description": "StackImpact Node.js Profiler",
55
"author": "StackImpact <devops@stackimpact.com>",
66
"keywords": [
@@ -41,7 +41,7 @@
4141
"grunt": "*",
4242
"grunt-contrib-jshint": "*",
4343
"mocha": "*",
44-
"node-abi": "^2.4.1"
44+
"node-abi": "^2.4.3"
4545
},
4646
"main": "index.js",
4747
"engines": {

test/profilers/cpu_profiler.test.js

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ describe('CpuProfiler', () => {
2828
profiler.stopProfiler();
2929
let profiles = profiler.buildProfile(500);
3030

31+
//console.log(profiles[0].profile.dump())
3132
assert(profiles[0].profile.dump().match(/cpu_profiler.test.js/));
3233
done();
3334
}, 500);

0 commit comments

Comments
 (0)