diff --git a/package-lock.json b/package-lock.json index ec4b7d26..e2942e7a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -25,7 +25,7 @@ "@types/yargs": "^17.0.33", "@typescript-eslint/eslint-plugin": "^8.43.0", "@typescript-eslint/parser": "^8.43.0", - "chrome-devtools-frontend": "1.0.1544076", + "chrome-devtools-frontend": "1.0.1547147", "core-js": "3.46.0", "debug": "4.4.3", "eslint": "^9.35.0", @@ -2299,9 +2299,9 @@ } }, "node_modules/chrome-devtools-frontend": { - "version": "1.0.1544076", - "resolved": "https://registry.npmjs.org/chrome-devtools-frontend/-/chrome-devtools-frontend-1.0.1544076.tgz", - "integrity": "sha512-sEhEZDPD3oqfY1MmpIhoZyoay4wPG9eq030Uv3B+faBshRpFj1ef5AjZv1yEtuv/OWDGZCWEmGRXJ+/K0mV3Cw==", + "version": "1.0.1547147", + "resolved": "https://registry.npmjs.org/chrome-devtools-frontend/-/chrome-devtools-frontend-1.0.1547147.tgz", + "integrity": "sha512-eUNXqCEo1Ioa5JEVVjbf3iZxoYjEswBV1GcokX/hrwSUYW9IVMtilqEvPXaD7i7gPJXHBK0tJUNZMAlK7+KClQ==", "dev": true, "license": "BSD-3-Clause" }, diff --git a/package.json b/package.json index 52bccd84..523df56e 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "@types/yargs": "^17.0.33", "@typescript-eslint/eslint-plugin": "^8.43.0", "@typescript-eslint/parser": "^8.43.0", - "chrome-devtools-frontend": "1.0.1544076", + "chrome-devtools-frontend": "1.0.1547147", "core-js": "3.46.0", "debug": "4.4.3", "eslint": "^9.35.0", diff --git a/tests/tools/performance.test.js.snapshot b/tests/tools/performance.test.js.snapshot index 0b31b5f1..9cda7250 100644 --- a/tests/tools/performance.test.js.snapshot +++ b/tests/tools/performance.test.js.snapshot @@ -109,7 +109,7 @@ Information on performance traces may contain main thread activity represented a Each call frame is presented in the following format: -'id;eventKey;name;duration;selfTime;urlIndex;childRange;[S]' +'id;eventKey;name;duration;selfTime;urlIndex;childRange;[line];[column];[S]' Key definitions: @@ -120,15 +120,17 @@ Key definitions: * selfTime: The time spent directly within the call frame, excluding its children's execution. * urlIndex: Index referencing the "All URLs" list. Empty if no specific script URL is associated. * childRange: Specifies the direct children of this node using their IDs. If empty ('' or 'S' at the end), the node has no children. If a single number (e.g., '4'), the node has one child with that ID. If in the format 'firstId-lastId' (e.g., '4-5'), it indicates a consecutive range of child IDs from 'firstId' to 'lastId', inclusive. +* line: An optional field for a call frame's line number. This is where the function is defined. +* column: An optional field for a call frame's column number. This is where the function is defined. * S: _Optional_. The letter 'S' terminates the line if that call frame was selected by the user. Example Call Tree: -1;r-123;main;500;100;; -2;r-124;update;200;50;;3 -3;p-49575-15428179-2834-374;animate;150;20;0;4-5;S -4;p-49575-15428179-3505-1162;calculatePosition;80;80;; -5;p-49575-15428179-5391-2767;applyStyles;50;50;; +1;r-123;main;500;100;0;1;; +2;r-124;update;200;50;;3;0;1; +3;p-49575-15428179-2834-374;animate;150;20;0;4-5;0;1;S +4;p-49575-15428179-3505-1162;calculatePosition;80;80;0;1;; +5;p-49575-15428179-5391-2767;applyStyles;50;50;0;1;; Network requests are formatted like this: diff --git a/tests/trace-processing/parse.test.js.snapshot b/tests/trace-processing/parse.test.js.snapshot index bed739d8..b15549e3 100644 --- a/tests/trace-processing/parse.test.js.snapshot +++ b/tests/trace-processing/parse.test.js.snapshot @@ -57,7 +57,7 @@ Information on performance traces may contain main thread activity represented a Each call frame is presented in the following format: -'id;eventKey;name;duration;selfTime;urlIndex;childRange;[S]' +'id;eventKey;name;duration;selfTime;urlIndex;childRange;[line];[column];[S]' Key definitions: @@ -68,15 +68,17 @@ Key definitions: * selfTime: The time spent directly within the call frame, excluding its children's execution. * urlIndex: Index referencing the "All URLs" list. Empty if no specific script URL is associated. * childRange: Specifies the direct children of this node using their IDs. If empty ('' or 'S' at the end), the node has no children. If a single number (e.g., '4'), the node has one child with that ID. If in the format 'firstId-lastId' (e.g., '4-5'), it indicates a consecutive range of child IDs from 'firstId' to 'lastId', inclusive. +* line: An optional field for a call frame's line number. This is where the function is defined. +* column: An optional field for a call frame's column number. This is where the function is defined. * S: _Optional_. The letter 'S' terminates the line if that call frame was selected by the user. Example Call Tree: -1;r-123;main;500;100;; -2;r-124;update;200;50;;3 -3;p-49575-15428179-2834-374;animate;150;20;0;4-5;S -4;p-49575-15428179-3505-1162;calculatePosition;80;80;; -5;p-49575-15428179-5391-2767;applyStyles;50;50;; +1;r-123;main;500;100;0;1;; +2;r-124;update;200;50;;3;0;1; +3;p-49575-15428179-2834-374;animate;150;20;0;4-5;0;1;S +4;p-49575-15428179-3505-1162;calculatePosition;80;80;0;1;; +5;p-49575-15428179-5391-2767;applyStyles;50;50;0;1;; Network requests are formatted like this: