@sentry/node-cpu-profiler 2.4.2 → 2.4.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/lib/index.d.ts +2 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +8 -1
- package/lib/sentry_cpu_profiler-darwin-arm64-108.node +0 -0
- package/lib/sentry_cpu_profiler-darwin-arm64-115.node +0 -0
- package/lib/sentry_cpu_profiler-darwin-arm64-127.node +0 -0
- package/lib/sentry_cpu_profiler-darwin-arm64-137.node +0 -0
- package/lib/sentry_cpu_profiler-darwin-arm64-147.node +0 -0
- package/lib/sentry_cpu_profiler-darwin-x64-108.node +0 -0
- package/lib/sentry_cpu_profiler-darwin-x64-115.node +0 -0
- package/lib/sentry_cpu_profiler-darwin-x64-127.node +0 -0
- package/lib/sentry_cpu_profiler-darwin-x64-137.node +0 -0
- package/lib/sentry_cpu_profiler-darwin-x64-147.node +0 -0
- package/lib/sentry_cpu_profiler-win32-x64-108.node +0 -0
- package/lib/sentry_cpu_profiler-win32-x64-115.node +0 -0
- package/lib/sentry_cpu_profiler-win32-x64-127.node +0 -0
- package/lib/sentry_cpu_profiler-win32-x64-137.node +0 -0
- package/lib/sentry_cpu_profiler-win32-x64-147.node +0 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import type { PrivateV8CpuProfilerBindings, ProfileFormat, RawChunkCpuProfile, R
|
|
|
2
2
|
/**
|
|
3
3
|
* Imports cpp bindings based on the current platform and architecture.
|
|
4
4
|
*/
|
|
5
|
-
export declare function importCppBindingsModule(): PrivateV8CpuProfilerBindings;
|
|
6
|
-
export declare const PrivateCpuProfilerBindings: PrivateV8CpuProfilerBindings;
|
|
5
|
+
export declare function importCppBindingsModule(): PrivateV8CpuProfilerBindings | undefined;
|
|
6
|
+
export declare const PrivateCpuProfilerBindings: PrivateV8CpuProfilerBindings | undefined;
|
|
7
7
|
declare class Bindings implements V8CpuProfilerBindings {
|
|
8
8
|
startProfiling(name: string): void;
|
|
9
9
|
stopProfiling(name: string, format: ProfileFormat.THREAD): RawThreadCpuProfile | null;
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,4BAA4B,EAC5B,aAAa,EACb,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAQjB;;GAEG;AAEH,wBAAgB,uBAAuB,IAAI,4BAA4B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,4BAA4B,EAC5B,aAAa,EACb,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAQjB;;GAEG;AAEH,wBAAgB,uBAAuB,IAAI,4BAA4B,GAAG,SAAS,CAqKlF;AAED,eAAO,MAAM,0BAA0B,EAAE,4BAA4B,GAAG,SAAqC,CAAC;AAE9G,cAAM,QAAS,YAAW,qBAAqB;IACtC,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAclC,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,MAAM,GAAG,mBAAmB,GAAG,IAAI;IACrF,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,KAAK,GAAG,kBAAkB,GAAG,IAAI;CAsB3F;AAED,eAAO,MAAM,mBAAmB,UAAiB,CAAC;AAElD,cAAc,SAAS,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -183,7 +183,14 @@ function importCppBindingsModule() {
|
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
|
-
|
|
186
|
+
try {
|
|
187
|
+
return require("./sentry_cpu_profiler-".concat(identifier, ".node"));
|
|
188
|
+
}
|
|
189
|
+
catch (e) {
|
|
190
|
+
console.log("[Profiling] Could not import binary: ".concat(identifier, ". Profiling does not work on non-LTS Node.js versions. Detailed Error:"));
|
|
191
|
+
console.log(e);
|
|
192
|
+
return undefined;
|
|
193
|
+
}
|
|
187
194
|
}
|
|
188
195
|
exports.PrivateCpuProfilerBindings = importCppBindingsModule();
|
|
189
196
|
var Bindings = /** @class */ (function () {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/node-cpu-profiler",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.3",
|
|
4
4
|
"description": "Binaries for Sentry Node Profiling",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript-profiling-node-binaries.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/profiling-node",
|