@sentry/profiling-node 8.36.0 → 8.37.1
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/README.md +1 -1
- package/bindings/cpu_profiler.cc +1 -1
- package/lib/cjs/index.js +2 -2
- package/lib/esm/index.js +2 -2
- package/lib/esm/package.json +1 -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-93.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-93.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-93.node +0 -0
- package/package.json +5 -5
- package/scripts/check-build.js +1 -1
- package/scripts/copy-target.js +1 -1
- package/scripts/prune-profiler-binaries.js +2 -2
package/README.md
CHANGED
|
@@ -305,7 +305,7 @@ In that case it is possible that the function name may end up being reported to
|
|
|
305
305
|
|
|
306
306
|
No. All instances of the profiler are scoped per thread In practice, this means that starting a transaction on thread A
|
|
307
307
|
and delegating work to thread B will only result in sample stacks being collected from thread A. That said, nothing
|
|
308
|
-
should prevent you from starting a transaction on thread B concurrently which will result in two
|
|
308
|
+
should prevent you from starting a transaction on thread B concurrently which will result in two independent profiles
|
|
309
309
|
being sent to the Sentry backend. We currently do not do any correlation between such transactions, but we would be open
|
|
310
310
|
to exploring the possibilities. Please file an issue if you have suggestions or specific use-cases in mind.
|
|
311
311
|
|
package/bindings/cpu_profiler.cc
CHANGED
|
@@ -351,7 +351,7 @@ v8::CpuProfile *SentryProfile::Stop(Profiler *profiler) {
|
|
|
351
351
|
v8::NewStringType::kNormal)
|
|
352
352
|
.ToLocalChecked());
|
|
353
353
|
|
|
354
|
-
// Remove the
|
|
354
|
+
// Remove the memory sampler
|
|
355
355
|
profiler->measurements_ticker.remove_heap_listener(id, memory_sampler_cb);
|
|
356
356
|
profiler->measurements_ticker.remove_cpu_listener(id, cpu_sampler_cb);
|
|
357
357
|
// If for some reason stopProfiling was called with an invalid profile title
|
package/lib/cjs/index.js
CHANGED
|
@@ -50,7 +50,7 @@ function importCppBindingsModule() {
|
|
|
50
50
|
return require(`${binaryPath}.node`);
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
// We need the fallthrough so that in the end, we can fallback to the
|
|
53
|
+
// We need the fallthrough so that in the end, we can fallback to the dynamic require.
|
|
54
54
|
// This is for cases where precompiled binaries were not provided, but may have been compiled from source.
|
|
55
55
|
if (platform === 'darwin') {
|
|
56
56
|
if (arch === 'x64') {
|
|
@@ -531,7 +531,7 @@ function findProfiledTransactionsFromEnvelope(envelope) {
|
|
|
531
531
|
const event = item[j];
|
|
532
532
|
|
|
533
533
|
if (!event) {
|
|
534
|
-
//
|
|
534
|
+
// Shouldn't happen, but lets be safe
|
|
535
535
|
continue;
|
|
536
536
|
}
|
|
537
537
|
|
package/lib/esm/index.js
CHANGED
|
@@ -58,7 +58,7 @@ function importCppBindingsModule() {
|
|
|
58
58
|
return require(`${binaryPath}.node`);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
// We need the fallthrough so that in the end, we can fallback to the
|
|
61
|
+
// We need the fallthrough so that in the end, we can fallback to the dynamic require.
|
|
62
62
|
// This is for cases where precompiled binaries were not provided, but may have been compiled from source.
|
|
63
63
|
if (platform === 'darwin') {
|
|
64
64
|
if (arch === 'x64') {
|
|
@@ -539,7 +539,7 @@ function findProfiledTransactionsFromEnvelope(envelope) {
|
|
|
539
539
|
const event = item[j];
|
|
540
540
|
|
|
541
541
|
if (!event) {
|
|
542
|
-
//
|
|
542
|
+
// Shouldn't happen, but lets be safe
|
|
543
543
|
continue;
|
|
544
544
|
}
|
|
545
545
|
|
package/lib/esm/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"type":"module","version":"8.
|
|
1
|
+
{"type":"module","version":"8.37.1","sideEffects":false}
|
|
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/profiling-node",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.37.1",
|
|
4
4
|
"description": "Official Sentry SDK for Node.js Profiling",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/profiling-node",
|
|
@@ -75,10 +75,10 @@
|
|
|
75
75
|
"test": "cross-env SENTRY_PROFILER_BINARY_DIR=lib jest --config jest.config.js"
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@sentry/core": "8.
|
|
79
|
-
"@sentry/node": "8.
|
|
80
|
-
"@sentry/types": "8.
|
|
81
|
-
"@sentry/utils": "8.
|
|
78
|
+
"@sentry/core": "8.37.1",
|
|
79
|
+
"@sentry/node": "8.37.1",
|
|
80
|
+
"@sentry/types": "8.37.1",
|
|
81
|
+
"@sentry/utils": "8.37.1",
|
|
82
82
|
"detect-libc": "^2.0.2",
|
|
83
83
|
"node-abi": "^3.61.0"
|
|
84
84
|
},
|
package/scripts/check-build.js
CHANGED
package/scripts/copy-target.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#! /usr/bin/env node
|
|
2
2
|
|
|
3
|
-
// This is a build
|
|
3
|
+
// This is a build script, so some logging is desirable as it allows
|
|
4
4
|
// us to follow the code path that triggered the error.
|
|
5
5
|
/* eslint-disable no-console */
|
|
6
6
|
const fs = require('fs');
|
|
@@ -88,7 +88,7 @@ if (!SOURCE_DIR) {
|
|
|
88
88
|
|
|
89
89
|
if (!PLATFORM && !ARCH && !STDLIB) {
|
|
90
90
|
ARGV_ERRORS.push(
|
|
91
|
-
`❌ Sentry: Missing argument values, pruning requires either --target_platform, --target_arch or --
|
|
91
|
+
`❌ Sentry: Missing argument values, pruning requires either --target_platform, --target_arch or --target_stdlib to be passed as argument values.\n Example: sentry-prune-profiler-binaries --target_platform=linux --target_arch=x64 --target_stdlib=glibc\n
|
|
92
92
|
If you are unsure about the execution environment, you can opt to skip some values, but at least one value must be passed.`,
|
|
93
93
|
);
|
|
94
94
|
}
|