@datadog/pprof
Advanced tools
Comparing version
@@ -21,4 +21,4 @@ "use strict"; | ||
const findBinding = require('node-gyp-build'); | ||
const profiler = findBinding(path_1.join(__dirname, '..', '..')); | ||
const profiler = findBinding((0, path_1.join)(__dirname, '..', '..')); | ||
exports.CpuProfiler = profiler.CpuProfiler; | ||
//# sourceMappingURL=cpu-profiler-bindings.js.map |
@@ -90,3 +90,3 @@ "use strict"; | ||
const intervalMicros = 1000 / this.frequency; | ||
return profile_serializer_1.serializeCpuProfile(timeProfile, intervalMicros); | ||
return (0, profile_serializer_1.serializeCpuProfile)(timeProfile, intervalMicros); | ||
} | ||
@@ -93,0 +93,0 @@ } |
@@ -34,3 +34,3 @@ "use strict"; | ||
} | ||
return heap_profiler_bindings_1.getAllocationProfile(); | ||
return (0, heap_profiler_bindings_1.getAllocationProfile)(); | ||
} | ||
@@ -62,3 +62,3 @@ exports.v8Profile = v8Profile; | ||
} | ||
return profile_serializer_1.serializeHeapProfile(result, startTimeNanos, heapIntervalBytes, ignoreSamplePath, sourceMapper); | ||
return (0, profile_serializer_1.serializeHeapProfile)(result, startTimeNanos, heapIntervalBytes, ignoreSamplePath, sourceMapper); | ||
} | ||
@@ -80,3 +80,3 @@ exports.profile = profile; | ||
heapStackDepth = stackDepth; | ||
heap_profiler_bindings_1.startSamplingHeapProfiler(heapIntervalBytes, heapStackDepth); | ||
(0, heap_profiler_bindings_1.startSamplingHeapProfiler)(heapIntervalBytes, heapStackDepth); | ||
enabled = true; | ||
@@ -89,3 +89,3 @@ } | ||
enabled = false; | ||
heap_profiler_bindings_1.stopSamplingHeapProfiler(); | ||
(0, heap_profiler_bindings_1.stopSamplingHeapProfiler)(); | ||
} | ||
@@ -92,0 +92,0 @@ } |
@@ -47,6 +47,6 @@ "use strict"; | ||
const profile = stop(); | ||
const buffer = profile_encoder_1.encodeSync(profile); | ||
fs_1.writeFileSync(`pprof-profile-${process.pid}.pb.gz`, buffer); | ||
const buffer = (0, profile_encoder_1.encodeSync)(profile); | ||
(0, fs_1.writeFileSync)(`pprof-profile-${process.pid}.pb.gz`, buffer); | ||
}); | ||
} | ||
//# sourceMappingURL=index.js.map |
@@ -30,5 +30,5 @@ "use strict"; | ||
const buffer = profile_1.perftools.profiles.Profile.encode(profile).finish(); | ||
return zlib_1.gzipSync(buffer); | ||
return (0, zlib_1.gzipSync)(buffer); | ||
} | ||
exports.encodeSync = encodeSync; | ||
//# sourceMappingURL=profile-encoder.js.map |
@@ -21,4 +21,4 @@ "use strict"; | ||
const findBinding = require('node-gyp-build'); | ||
const profiler = findBinding(path_1.join(__dirname, '..', '..')); | ||
const profiler = findBinding((0, path_1.join)(__dirname, '..', '..')); | ||
exports.TimeProfiler = profiler.TimeProfiler; | ||
//# sourceMappingURL=time-profiler-bindings.js.map |
@@ -26,3 +26,3 @@ "use strict"; | ||
const stop = start(options.intervalMicros || DEFAULT_INTERVAL_MICROS, options.name, options.sourceMapper, options.lineNumbers); | ||
await delay_1.default(options.durationMillis); | ||
await (0, delay_1.default)(options.durationMillis); | ||
return stop(); | ||
@@ -53,3 +53,3 @@ } | ||
} | ||
return profile_serializer_1.serializeTimeProfile(result, intervalMicros, sourceMapper); | ||
return (0, profile_serializer_1.serializeTimeProfile)(result, intervalMicros, sourceMapper); | ||
} | ||
@@ -70,3 +70,3 @@ // For Node.js v16+, we want to start the next profile before we stop the | ||
profiler.dispose(); | ||
return profile_serializer_1.serializeTimeProfile(result, intervalMicros, sourceMapper); | ||
return (0, profile_serializer_1.serializeTimeProfile)(result, intervalMicros, sourceMapper); | ||
} | ||
@@ -73,0 +73,0 @@ } |
{ | ||
"name": "@datadog/pprof", | ||
"version": "0.5.1", | ||
"version": "1.0.0", | ||
"description": "pprof support for Node.js", | ||
@@ -9,3 +9,2 @@ "repository": "datadog/pprof-nodejs", | ||
"scripts": { | ||
"install": "(node scripts/should_rebuild && node-gyp-build) || exit 0", | ||
"rebuild": "node-gyp rebuild --jobs=max", | ||
@@ -34,7 +33,7 @@ "test:js": "nyc mocha out/test/test-*.js", | ||
"findit2": "^2.2.3", | ||
"nan": "^2.14.0", | ||
"nan": "^2.16.0", | ||
"node-gyp-build": "^3.9.0", | ||
"p-limit": "^3.0.0", | ||
"p-limit": "^3.1.0", | ||
"pify": "^5.0.0", | ||
"protobufjs": "~6.11.3", | ||
"protobufjs": "^7.0.0", | ||
"rimraf": "^3.0.2", | ||
@@ -46,12 +45,12 @@ "semver": "^7.3.5", | ||
"devDependencies": { | ||
"@types/mocha": "^8.0.0", | ||
"@types/node": "^15.6.1", | ||
"@types/mocha": "^9.1.1", | ||
"@types/node": "^18.0.6", | ||
"@types/p-limit": "^2.0.0", | ||
"@types/pify": "^5.0.0", | ||
"@types/pretty-ms": "^4.0.0", | ||
"@types/pretty-ms": "^5.0.1", | ||
"@types/request": "^2.47.1", | ||
"@types/sinon": "^10.0.0", | ||
"@types/tmp": "0.2.1", | ||
"axios": "^0.21.1", | ||
"checksum": "^0.1.1", | ||
"@types/tmp": "^0.2.3", | ||
"axios": "^0.27.2", | ||
"checksum": "^1.0.0", | ||
"codecov": "^3.0.0", | ||
@@ -63,12 +62,12 @@ "deep-copy": "^1.4.2", | ||
"eslint-plugin-promise": "^6.0.0", | ||
"glob": "^7.1.7", | ||
"glob": "^8.0.3", | ||
"gts": "^3.0.0", | ||
"js-green-licenses": "^3.0.0", | ||
"linkinator": "^2.0.0", | ||
"linkinator": "^4.0.2", | ||
"mkdirp": "^1.0.4", | ||
"mocha": "^8.0.0", | ||
"mocha": "^9.2.2", | ||
"nyc": "^15.0.0", | ||
"rimraf": "^3.0.2", | ||
"semver": "^7.3.5", | ||
"sinon": "^11.1.0", | ||
"sinon": "^14.0.0", | ||
"source-map-support": "^0.5.12", | ||
@@ -78,3 +77,3 @@ "tar": "^6.1.0", | ||
"ts-mockito": "^2.2.5", | ||
"typescript": "~4.3.0" | ||
"typescript": "^4.7.4" | ||
}, | ||
@@ -84,5 +83,3 @@ "files": [ | ||
"out/third_party/cloud-debug-nodejs", | ||
"bindings", | ||
"proto", | ||
"binding.gyp", | ||
"package-lock.json", | ||
@@ -89,0 +86,0 @@ "package.json", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
13723743
36.23%1
-50%44
-25.42%86
-36.76%5187
-0.12%+ Added
+ Added
- Removed
- Removed
- Removed
Updated
Updated
Updated