diff --git a/docs-developer/call-tree.md b/docs-developer/call-tree.md index 21784e47fc..e3e0ee2631 100644 --- a/docs-developer/call-tree.md +++ b/docs-developer/call-tree.md @@ -67,9 +67,9 @@ One key point of the aggregation done in the call tree is that it's focused on w Imagine this simplified example of 3 samples of mixed C++, JavaScript Code (js), and JIT optimized JavaScript (JIT). The functions are all labeled as to their implementation. -| Sample index | Sample's stack | -| ------------ | ---------------------------------------------------------------------------------------------- | -| 0 | `JS::RunScript [c++] ➡ onLoad [js] ➡ a [js] ➡ b [js]` | +| Sample index | Sample's stack | +| ------------ | ------------------------------------------------------------------------------------------ | +| 0 | `JS::RunScript [c++] ➡ onLoad [js] ➡ a [js] ➡ b [js]` | | 1 | `JS::RunScript [c++] ➡ onLoad [js] ➡ js::jit::IonCannon [c++] ➡ a [JIT] ➡ b [JIT]` | | 2 | `JS::RunScript [c++] ➡ onLoad [js] ➡ js::jit::IonCannon [c++] ➡ a [JIT] ➡ b [JIT]` | @@ -113,8 +113,8 @@ Now, taking the stacks and building a call tree produces the following: This is the correct tree of what you would want to see. But since we are mixing languages together into the same stack system, it might be nice to view only JS functions. In order to do that we hide any C++ stacks, and assign them to the nearest JS stack. Our tables would be updated to look like the following. -| Sample index | Sample's stack | -| ------------ | --------------------------------------- | +| Sample index | Sample's stack | +| ------------ | ------------------------------------- | | 0 | `onLoad [js] ➡ a [js] ➡ b [js]` | | 1 | `onLoad [js] ➡ a [JIT] ➡ b [JIT]` | | 2 | `onLoad [js] ➡ a [JIT] ➡ b [JIT]` | diff --git a/package.json b/package.json index 123da263ae..0589a213b7 100644 --- a/package.json +++ b/package.json @@ -124,7 +124,7 @@ "@types/common-tags": "^1.8.4", "@types/jest": "^30.0.0", "@types/minimist": "^1.2.5", - "@types/node": "^22.19.1", + "@types/node": "^22.19.2", "@types/query-string": "^6.3.0", "@types/react": "^18.3.27", "@types/react-dom": "^18.3.1", @@ -151,7 +151,7 @@ "eslint-config-prettier": "^10.1.8", "eslint-import-resolver-alias": "^1.1.2", "eslint-plugin-import": "^2.32.0", - "eslint-plugin-jest": "^29.1.0", + "eslint-plugin-jest": "^29.2.1", "eslint-plugin-jest-dom": "^5.5.0", "eslint-plugin-jest-formatting": "^3.1.0", "eslint-plugin-react": "^7.37.5", @@ -175,7 +175,7 @@ "postcss": "^8.5.6", "postcss-loader": "^8.2.0", "postinstall-postinstall": "^2.1.0", - "prettier": "^3.6.2", + "prettier": "^3.7.4", "rimraf": "^6.1.2", "style-loader": "^4.0.0", "stylelint": "^16.26.1", diff --git a/src/components/app/ProfileLoaderAnimation.tsx b/src/components/app/ProfileLoaderAnimation.tsx index ad45dd4cfd..ae6c8e980c 100644 --- a/src/components/app/ProfileLoaderAnimation.tsx +++ b/src/components/app/ProfileLoaderAnimation.tsx @@ -60,9 +60,9 @@ class ProfileLoaderAnimationImpl extends PureComponent; }; @@ -206,19 +208,29 @@ export type GeckoFrameTable = { IndexIntoStringTable, // for label frames, whether this frame should be shown in "JS only" stacks boolean, - // innerWindowID of JS frames. See the comment inside FrameTable in src/types/profile.js - // for more information. - null | number, + ( + // innerWindowID of JS frames. See the comment inside FrameTable in src/types/profile.js + // for more information. + null | number + ), // for JS frames, an index into the string table, usually "Baseline" or "Ion" null | IndexIntoStringTable, - // The line of code - null | number, - // The column of code - null | number, - // index into profile.meta.categories - null | number, - // index into profile.meta.categories[category].subcategories. Always non-null if category is non-null. - null | number, + ( + // The line of code + null | number + ), + ( + // The column of code + null | number + ), + ( + // index into profile.meta.categories + null | number + ), + ( + // index into profile.meta.categories[category].subcategories. Always non-null if category is non-null. + null | number + ), ] >; }; diff --git a/src/utils/query-api.ts b/src/utils/query-api.ts index 6033f182fe..a72764dfe1 100644 --- a/src/utils/query-api.ts +++ b/src/utils/query-api.ts @@ -120,9 +120,7 @@ export interface ExternalCommunicationCallbacks { * * It also takes an object with callbacks, for loading indicators. */ -export class RegularExternalCommunicationDelegate - implements ExternalCommunicationDelegate -{ +export class RegularExternalCommunicationDelegate implements ExternalCommunicationDelegate { _browserConnection: BrowserConnection | null; _callbacks: ExternalCommunicationCallbacks; diff --git a/yarn.lock b/yarn.lock index 76f3753839..7879308aee 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2338,10 +2338,10 @@ dependencies: "@types/node" "*" -"@types/node@*", "@types/node@>=13.7.0", "@types/node@^22.19.1": - version "22.19.1" - resolved "https://registry.yarnpkg.com/@types/node/-/node-22.19.1.tgz#1188f1ddc9f46b4cc3aec76749050b4e1f459b7b" - integrity sha512-LCCV0HdSZZZb34qifBsyWlUmok6W7ouER+oQIGBScS8EsZsQbrtFTUrDX4hOl+CS6p7cnNC4td+qrSVGSCTUfQ== +"@types/node@*", "@types/node@>=13.7.0", "@types/node@^22.19.2": + version "22.19.2" + resolved "https://registry.yarnpkg.com/@types/node/-/node-22.19.2.tgz#2f0956fba46518aaf7578c84e37bddab55f85d01" + integrity sha512-LPM2G3Syo1GLzXLGJAKdqoU35XvrWzGJ21/7sgZTUpbkBaOasTj8tjwn6w+hCkqaa1TfJ/w67rJSwYItlJ2mYw== dependencies: undici-types "~6.21.0" @@ -5083,10 +5083,10 @@ eslint-plugin-jest-formatting@^3.1.0: resolved "https://registry.yarnpkg.com/eslint-plugin-jest-formatting/-/eslint-plugin-jest-formatting-3.1.0.tgz#b26dd5a40f432b642dcc880021a771bb1c93dcd2" integrity sha512-XyysraZ1JSgGbLSDxjj5HzKKh0glgWf+7CkqxbTqb7zEhW7X2WHo5SBQ8cGhnszKN+2Lj3/oevBlHNbHezoc/A== -eslint-plugin-jest@^29.1.0: - version "29.1.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-29.1.0.tgz#ba59f94bb303fe72417d54232842148f305ab6be" - integrity sha512-LabxXbASXVjguqL+kBHTPMf3gUeSqwH4fsrEyHTY/MCs42I/p9+ctg09SJpYiD8eGaIsP6GwYr5xW6xWS9XgZg== +eslint-plugin-jest@^29.2.1: + version "29.2.1" + resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-29.2.1.tgz#e56c5f79b6475dafa551ce8e762ac25d4bd21ea4" + integrity sha512-0WLIezrIxitUGbjMIGwznVzSIp0uFJV0PZ2fiSvpyVcxe+QMXKUt7MRhUpzdbctnnLwiOTOFkACplgB0wAglFw== dependencies: "@typescript-eslint/utils" "^8.0.0" @@ -10197,10 +10197,10 @@ prelude-ls@^1.2.1: resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== -prettier@^3.6.2: - version "3.6.2" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.6.2.tgz#ccda02a1003ebbb2bfda6f83a074978f608b9393" - integrity sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ== +prettier@^3.7.4: + version "3.7.4" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.7.4.tgz#d2f8335d4b1cec47e1c8098645411b0c9dff9c0f" + integrity sha512-v6UNi1+3hSlVvv8fSaoUbggEM5VErKmmpGA7Pl3HF8V6uKY7rvClBOJlH6yNwQtfTueNkGVpOv/mtWL9L4bgRA== pretty-bytes@^5.3.0: version "5.6.0"