@ohos-ports/core 6.1.0-beta.1 → 6.1.0-beta.2
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/dist/index.cjs.js +61 -58
- package/dist/index.es5.js +61 -58
- package/package.json +1 -1
- package/prebuilds/openharmony-arm64/node.napi.node +0 -0
package/dist/index.cjs.js
CHANGED
|
@@ -74,7 +74,10 @@ const getV8Flags = () => {
|
|
|
74
74
|
break;
|
|
75
75
|
}
|
|
76
76
|
case "walltime": {
|
|
77
|
-
|
|
77
|
+
const isOpenHarmony = process.platform === "openharmony";
|
|
78
|
+
if (!isOpenHarmony) {
|
|
79
|
+
flags.push("--perf-prof");
|
|
80
|
+
}
|
|
78
81
|
const v8LogDir = process.env.CODSPEED_V8_LOG;
|
|
79
82
|
if (v8LogDir) {
|
|
80
83
|
flags.push(
|
|
@@ -85,7 +88,7 @@ const getV8Flags = () => {
|
|
|
85
88
|
`--logfile=${path$1.join(v8LogDir, V8_LOG_FILENAME_PATTERN)}`
|
|
86
89
|
]
|
|
87
90
|
);
|
|
88
|
-
} else {
|
|
91
|
+
} else if (!isOpenHarmony) {
|
|
89
92
|
flags.push("--perf-basic-prof");
|
|
90
93
|
}
|
|
91
94
|
}
|
|
@@ -19816,62 +19819,62 @@ class MongoMeasurement {
|
|
|
19816
19819
|
}
|
|
19817
19820
|
}
|
|
19818
19821
|
|
|
19819
|
-
function get(belowFn) {
|
|
19820
|
-
const oldLimit = Error.stackTraceLimit;
|
|
19821
|
-
Error.stackTraceLimit = Infinity;
|
|
19822
|
-
|
|
19823
|
-
const dummyObject = {};
|
|
19824
|
-
|
|
19825
|
-
const v8Handler = Error.prepareStackTrace;
|
|
19826
|
-
Error.prepareStackTrace = function(dummyObject, v8StackTrace) {
|
|
19827
|
-
return v8StackTrace;
|
|
19828
|
-
};
|
|
19829
|
-
Error.captureStackTrace(dummyObject, belowFn || get);
|
|
19830
|
-
|
|
19831
|
-
const v8StackTrace = dummyObject.stack;
|
|
19832
|
-
Error.prepareStackTrace = v8Handler;
|
|
19833
|
-
Error.stackTraceLimit = oldLimit;
|
|
19834
|
-
|
|
19835
|
-
return v8StackTrace;
|
|
19836
|
-
}
|
|
19837
|
-
|
|
19838
|
-
function CallSite(properties) {
|
|
19839
|
-
for (const property in properties) {
|
|
19840
|
-
this[property] = properties[property];
|
|
19841
|
-
}
|
|
19842
|
-
}
|
|
19843
|
-
|
|
19844
|
-
const strProperties = [
|
|
19845
|
-
'this',
|
|
19846
|
-
'typeName',
|
|
19847
|
-
'functionName',
|
|
19848
|
-
'methodName',
|
|
19849
|
-
'fileName',
|
|
19850
|
-
'lineNumber',
|
|
19851
|
-
'columnNumber',
|
|
19852
|
-
'function',
|
|
19853
|
-
'evalOrigin'
|
|
19854
|
-
];
|
|
19855
|
-
|
|
19856
|
-
const boolProperties = [
|
|
19857
|
-
'topLevel',
|
|
19858
|
-
'eval',
|
|
19859
|
-
'native',
|
|
19860
|
-
'constructor'
|
|
19861
|
-
];
|
|
19862
|
-
|
|
19863
|
-
strProperties.forEach(function (property) {
|
|
19864
|
-
CallSite.prototype[property] = null;
|
|
19865
|
-
CallSite.prototype['get' + property[0].toUpperCase() + property.substr(1)] = function () {
|
|
19866
|
-
return this[property];
|
|
19867
|
-
};
|
|
19868
|
-
});
|
|
19869
|
-
|
|
19870
|
-
boolProperties.forEach(function (property) {
|
|
19871
|
-
CallSite.prototype[property] = false;
|
|
19872
|
-
CallSite.prototype['is' + property[0].toUpperCase() + property.substr(1)] = function () {
|
|
19873
|
-
return this[property];
|
|
19874
|
-
};
|
|
19822
|
+
function get(belowFn) {
|
|
19823
|
+
const oldLimit = Error.stackTraceLimit;
|
|
19824
|
+
Error.stackTraceLimit = Infinity;
|
|
19825
|
+
|
|
19826
|
+
const dummyObject = {};
|
|
19827
|
+
|
|
19828
|
+
const v8Handler = Error.prepareStackTrace;
|
|
19829
|
+
Error.prepareStackTrace = function(dummyObject, v8StackTrace) {
|
|
19830
|
+
return v8StackTrace;
|
|
19831
|
+
};
|
|
19832
|
+
Error.captureStackTrace(dummyObject, belowFn || get);
|
|
19833
|
+
|
|
19834
|
+
const v8StackTrace = dummyObject.stack;
|
|
19835
|
+
Error.prepareStackTrace = v8Handler;
|
|
19836
|
+
Error.stackTraceLimit = oldLimit;
|
|
19837
|
+
|
|
19838
|
+
return v8StackTrace;
|
|
19839
|
+
}
|
|
19840
|
+
|
|
19841
|
+
function CallSite(properties) {
|
|
19842
|
+
for (const property in properties) {
|
|
19843
|
+
this[property] = properties[property];
|
|
19844
|
+
}
|
|
19845
|
+
}
|
|
19846
|
+
|
|
19847
|
+
const strProperties = [
|
|
19848
|
+
'this',
|
|
19849
|
+
'typeName',
|
|
19850
|
+
'functionName',
|
|
19851
|
+
'methodName',
|
|
19852
|
+
'fileName',
|
|
19853
|
+
'lineNumber',
|
|
19854
|
+
'columnNumber',
|
|
19855
|
+
'function',
|
|
19856
|
+
'evalOrigin'
|
|
19857
|
+
];
|
|
19858
|
+
|
|
19859
|
+
const boolProperties = [
|
|
19860
|
+
'topLevel',
|
|
19861
|
+
'eval',
|
|
19862
|
+
'native',
|
|
19863
|
+
'constructor'
|
|
19864
|
+
];
|
|
19865
|
+
|
|
19866
|
+
strProperties.forEach(function (property) {
|
|
19867
|
+
CallSite.prototype[property] = null;
|
|
19868
|
+
CallSite.prototype['get' + property[0].toUpperCase() + property.substr(1)] = function () {
|
|
19869
|
+
return this[property];
|
|
19870
|
+
};
|
|
19871
|
+
});
|
|
19872
|
+
|
|
19873
|
+
boolProperties.forEach(function (property) {
|
|
19874
|
+
CallSite.prototype[property] = false;
|
|
19875
|
+
CallSite.prototype['is' + property[0].toUpperCase() + property.substr(1)] = function () {
|
|
19876
|
+
return this[property];
|
|
19877
|
+
};
|
|
19875
19878
|
});
|
|
19876
19879
|
|
|
19877
19880
|
function getGitDir(from) {
|
package/dist/index.es5.js
CHANGED
|
@@ -72,7 +72,10 @@ const getV8Flags = () => {
|
|
|
72
72
|
break;
|
|
73
73
|
}
|
|
74
74
|
case "walltime": {
|
|
75
|
-
|
|
75
|
+
const isOpenHarmony = process.platform === "openharmony";
|
|
76
|
+
if (!isOpenHarmony) {
|
|
77
|
+
flags.push("--perf-prof");
|
|
78
|
+
}
|
|
76
79
|
const v8LogDir = process.env.CODSPEED_V8_LOG;
|
|
77
80
|
if (v8LogDir) {
|
|
78
81
|
flags.push(
|
|
@@ -83,7 +86,7 @@ const getV8Flags = () => {
|
|
|
83
86
|
`--logfile=${path$1.join(v8LogDir, V8_LOG_FILENAME_PATTERN)}`
|
|
84
87
|
]
|
|
85
88
|
);
|
|
86
|
-
} else {
|
|
89
|
+
} else if (!isOpenHarmony) {
|
|
87
90
|
flags.push("--perf-basic-prof");
|
|
88
91
|
}
|
|
89
92
|
}
|
|
@@ -19814,62 +19817,62 @@ class MongoMeasurement {
|
|
|
19814
19817
|
}
|
|
19815
19818
|
}
|
|
19816
19819
|
|
|
19817
|
-
function get(belowFn) {
|
|
19818
|
-
const oldLimit = Error.stackTraceLimit;
|
|
19819
|
-
Error.stackTraceLimit = Infinity;
|
|
19820
|
-
|
|
19821
|
-
const dummyObject = {};
|
|
19822
|
-
|
|
19823
|
-
const v8Handler = Error.prepareStackTrace;
|
|
19824
|
-
Error.prepareStackTrace = function(dummyObject, v8StackTrace) {
|
|
19825
|
-
return v8StackTrace;
|
|
19826
|
-
};
|
|
19827
|
-
Error.captureStackTrace(dummyObject, belowFn || get);
|
|
19828
|
-
|
|
19829
|
-
const v8StackTrace = dummyObject.stack;
|
|
19830
|
-
Error.prepareStackTrace = v8Handler;
|
|
19831
|
-
Error.stackTraceLimit = oldLimit;
|
|
19832
|
-
|
|
19833
|
-
return v8StackTrace;
|
|
19834
|
-
}
|
|
19835
|
-
|
|
19836
|
-
function CallSite(properties) {
|
|
19837
|
-
for (const property in properties) {
|
|
19838
|
-
this[property] = properties[property];
|
|
19839
|
-
}
|
|
19840
|
-
}
|
|
19841
|
-
|
|
19842
|
-
const strProperties = [
|
|
19843
|
-
'this',
|
|
19844
|
-
'typeName',
|
|
19845
|
-
'functionName',
|
|
19846
|
-
'methodName',
|
|
19847
|
-
'fileName',
|
|
19848
|
-
'lineNumber',
|
|
19849
|
-
'columnNumber',
|
|
19850
|
-
'function',
|
|
19851
|
-
'evalOrigin'
|
|
19852
|
-
];
|
|
19853
|
-
|
|
19854
|
-
const boolProperties = [
|
|
19855
|
-
'topLevel',
|
|
19856
|
-
'eval',
|
|
19857
|
-
'native',
|
|
19858
|
-
'constructor'
|
|
19859
|
-
];
|
|
19860
|
-
|
|
19861
|
-
strProperties.forEach(function (property) {
|
|
19862
|
-
CallSite.prototype[property] = null;
|
|
19863
|
-
CallSite.prototype['get' + property[0].toUpperCase() + property.substr(1)] = function () {
|
|
19864
|
-
return this[property];
|
|
19865
|
-
};
|
|
19866
|
-
});
|
|
19867
|
-
|
|
19868
|
-
boolProperties.forEach(function (property) {
|
|
19869
|
-
CallSite.prototype[property] = false;
|
|
19870
|
-
CallSite.prototype['is' + property[0].toUpperCase() + property.substr(1)] = function () {
|
|
19871
|
-
return this[property];
|
|
19872
|
-
};
|
|
19820
|
+
function get(belowFn) {
|
|
19821
|
+
const oldLimit = Error.stackTraceLimit;
|
|
19822
|
+
Error.stackTraceLimit = Infinity;
|
|
19823
|
+
|
|
19824
|
+
const dummyObject = {};
|
|
19825
|
+
|
|
19826
|
+
const v8Handler = Error.prepareStackTrace;
|
|
19827
|
+
Error.prepareStackTrace = function(dummyObject, v8StackTrace) {
|
|
19828
|
+
return v8StackTrace;
|
|
19829
|
+
};
|
|
19830
|
+
Error.captureStackTrace(dummyObject, belowFn || get);
|
|
19831
|
+
|
|
19832
|
+
const v8StackTrace = dummyObject.stack;
|
|
19833
|
+
Error.prepareStackTrace = v8Handler;
|
|
19834
|
+
Error.stackTraceLimit = oldLimit;
|
|
19835
|
+
|
|
19836
|
+
return v8StackTrace;
|
|
19837
|
+
}
|
|
19838
|
+
|
|
19839
|
+
function CallSite(properties) {
|
|
19840
|
+
for (const property in properties) {
|
|
19841
|
+
this[property] = properties[property];
|
|
19842
|
+
}
|
|
19843
|
+
}
|
|
19844
|
+
|
|
19845
|
+
const strProperties = [
|
|
19846
|
+
'this',
|
|
19847
|
+
'typeName',
|
|
19848
|
+
'functionName',
|
|
19849
|
+
'methodName',
|
|
19850
|
+
'fileName',
|
|
19851
|
+
'lineNumber',
|
|
19852
|
+
'columnNumber',
|
|
19853
|
+
'function',
|
|
19854
|
+
'evalOrigin'
|
|
19855
|
+
];
|
|
19856
|
+
|
|
19857
|
+
const boolProperties = [
|
|
19858
|
+
'topLevel',
|
|
19859
|
+
'eval',
|
|
19860
|
+
'native',
|
|
19861
|
+
'constructor'
|
|
19862
|
+
];
|
|
19863
|
+
|
|
19864
|
+
strProperties.forEach(function (property) {
|
|
19865
|
+
CallSite.prototype[property] = null;
|
|
19866
|
+
CallSite.prototype['get' + property[0].toUpperCase() + property.substr(1)] = function () {
|
|
19867
|
+
return this[property];
|
|
19868
|
+
};
|
|
19869
|
+
});
|
|
19870
|
+
|
|
19871
|
+
boolProperties.forEach(function (property) {
|
|
19872
|
+
CallSite.prototype[property] = false;
|
|
19873
|
+
CallSite.prototype['is' + property[0].toUpperCase() + property.substr(1)] = function () {
|
|
19874
|
+
return this[property];
|
|
19875
|
+
};
|
|
19873
19876
|
});
|
|
19874
19877
|
|
|
19875
19878
|
function getGitDir(from) {
|
package/package.json
CHANGED
|
Binary file
|