@ohos-ports/datadog-pprof 5.17.0-1 → 5.17.0-beta.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.
|
@@ -83,9 +83,11 @@ function serialize(profile, root, appendToSamples, stringTable, ignoreSamplesPat
|
|
|
83
83
|
const entry = entries.pop();
|
|
84
84
|
const node = entry.node;
|
|
85
85
|
// mjs files have a `file://` prefix in the scriptName -> remove it
|
|
86
|
-
|
|
86
|
+
// (guarded: encodedProfileFromTree accepts user-supplied trees whose
|
|
87
|
+
// nodes may omit scriptName)
|
|
88
|
+
const scriptName = typeof node.scriptName === 'string' && node.scriptName.startsWith('file://')
|
|
87
89
|
? node.scriptName.slice(7)
|
|
88
|
-
: node.scriptName;
|
|
90
|
+
: node.scriptName || '';
|
|
89
91
|
if (ignoreSamplesPath && scriptName.indexOf(ignoreSamplesPath) > -1) {
|
|
90
92
|
continue;
|
|
91
93
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ohos-ports/datadog-pprof",
|
|
3
|
-
"version": "5.17.0-1",
|
|
3
|
+
"version": "5.17.0-beta.1",
|
|
4
4
|
"description": "pprof support for Node.js — OpenHarmony (OHOS) port, adding an openharmony-arm64 node-gyp-build prebuild alongside upstream's existing platforms.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/ohos-ports/ohos-ports.git",
|
|
8
|
-
"directory": "ports/pprof/5.17.0"
|
|
8
|
+
"directory": "ports/datadog-pprof/5.17.0"
|
|
9
9
|
},
|
|
10
10
|
"main": "out/src/index.js",
|
|
11
11
|
"types": "out/src/index.d.ts",
|
|
Binary file
|