diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
commit | 086c044dc34dfc0f74fbe41f4ecb402b2cd34884 (patch) | |
tree | a4f824bd33cb075dd5aa3eb5a0a94af221bbe83a /devtools/shared/heapsnapshot/CensusUtils.js | |
parent | Adding debian version 124.0.1-1. (diff) | |
download | firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.tar.xz firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.zip |
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'devtools/shared/heapsnapshot/CensusUtils.js')
-rw-r--r-- | devtools/shared/heapsnapshot/CensusUtils.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/devtools/shared/heapsnapshot/CensusUtils.js b/devtools/shared/heapsnapshot/CensusUtils.js index 3af68d3b57..e96d878873 100644 --- a/devtools/shared/heapsnapshot/CensusUtils.js +++ b/devtools/shared/heapsnapshot/CensusUtils.js @@ -29,7 +29,7 @@ exports.Visitor = Visitor; * The edge leading to this sub-report. The edge is null if (but not iff! * eg, null allocation stack edges) we are entering the root report. */ -Visitor.prototype.enter = function (breakdown, report, edge) {}; +Visitor.prototype.enter = function () {}; /** * The `exit` method is called when traversal of a sub-report has finished. @@ -44,7 +44,7 @@ Visitor.prototype.enter = function (breakdown, report, edge) {}; * The edge leading to this sub-report. The edge is null if (but not iff! * eg, null allocation stack edges) we are entering the root report. */ -Visitor.prototype.exit = function (breakdown, report, edge) {}; +Visitor.prototype.exit = function () {}; /** * The `count` method is called when leaf nodes (reports whose breakdown is @@ -60,17 +60,17 @@ Visitor.prototype.exit = function (breakdown, report, edge) {}; * The edge leading to this count report. The edge is null if we are * entering the root report. */ -Visitor.prototype.count = function (breakdown, report, edge) {}; +Visitor.prototype.count = function () {}; /** * getReportEdges *********************************************************/ const EDGES = Object.create(null); -EDGES.count = function (breakdown, report) { +EDGES.count = function () { return []; }; -EDGES.bucket = function (breakdown, report) { +EDGES.bucket = function () { return []; }; @@ -277,7 +277,7 @@ DiffVisitor.prototype.enter = function (breakdown, report, edge) { /** * @overrides Visitor.prototype.exit */ -DiffVisitor.prototype.exit = function (breakdown, report, edge) { +DiffVisitor.prototype.exit = function (breakdown) { // Find all the edges in the other census report that were not traversed and // add them to the results directly. const other = this._otherCensusStack[this._otherCensusStack.length - 1]; @@ -300,7 +300,7 @@ DiffVisitor.prototype.exit = function (breakdown, report, edge) { /** * @overrides Visitor.prototype.count */ -DiffVisitor.prototype.count = function (breakdown, report, edge) { +DiffVisitor.prototype.count = function (breakdown, report) { const other = this._otherCensusStack[this._otherCensusStack.length - 1]; const results = this._resultsStack[this._resultsStack.length - 1]; @@ -447,7 +447,7 @@ GetLeavesVisitor.prototype = Object.create(Visitor.prototype); /** * @overrides Visitor.prototype.enter */ -GetLeavesVisitor.prototype.enter = function (breakdown, report, edge) { +GetLeavesVisitor.prototype.enter = function (breakdown, report) { this._index++; if (this._targetIndices.has(this._index)) { this._leaves.push(report); |