Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
ddd748f
Pontoon: Update Belarusian (be) localization of Firefox Profiler
zubialevich Jan 24, 2023
acf0485
🔃 Daily sync: main -> l10n (January 25, 2023)
Jan 25, 2023
4e3797f
🔃 Daily sync: main -> l10n (January 26, 2023)
Jan 26, 2023
de3d286
🔃 Daily sync: main -> l10n (January 27, 2023)
Jan 27, 2023
6484466
Pontoon: Update Belarusian (be) localization of Firefox Profiler
zubialevich Jan 27, 2023
a2654c8
Pontoon: Update Belarusian (be) localization of Firefox Profiler
Jan 28, 2023
da0814f
Pontoon: Update Belarusian (be) localization of Firefox Profiler
zubialevich Jan 30, 2023
0a7df4e
🔃 Daily sync: main -> l10n (January 31, 2023)
Jan 31, 2023
0fb9f2c
Pontoon: Update Belarusian (be) localization of Firefox Profiler
zubialevich Feb 1, 2023
6a6cb9d
🔃 Daily sync: main -> l10n (February 2, 2023)
Feb 2, 2023
2c91547
Pontoon: Update Belarusian (be) localization of Firefox Profiler
zubialevich Feb 2, 2023
eeb045e
Pontoon: Update Belarusian (be) localization of Firefox Profiler
zubialevich Feb 2, 2023
ea39d3e
Pontoon: Update Belarusian (be) localization of Firefox Profiler
zubialevich Feb 3, 2023
4857abc
Pontoon: Update Belarusian (be) localization of Firefox Profiler
zubialevich Feb 6, 2023
94cdb32
Pontoon: Update Belarusian (be) localization of Firefox Profiler
zubialevich Feb 6, 2023
ae5d7ee
Pontoon: Update Belarusian (be) localization of Firefox Profiler
zubialevich Feb 7, 2023
4a0eb3a
Pontoon: Update Belarusian (be) localization of Firefox Profiler
zubialevich Feb 7, 2023
11563df
Pontoon: Update Belarusian (be) localization of Firefox Profiler
zubialevich Feb 7, 2023
80ff8ea
🔃 Daily sync: main -> l10n (February 8, 2023)
Feb 8, 2023
52b0063
Pontoon: Update Belarusian (be) localization of Firefox Profiler
zubialevich Feb 8, 2023
6ed07df
Pontoon: Update Belarusian (be) localization of Firefox Profiler
zubialevich Feb 8, 2023
324be27
Pontoon: Update Belarusian (be) localization of Firefox Profiler
zubialevich Feb 9, 2023
41da128
Pontoon: Update Belarusian (be) localization of Firefox Profiler
zubialevich Feb 9, 2023
20e97f7
Pontoon: Update Belarusian (be) localization of Firefox Profiler
zubialevich Feb 9, 2023
0d8dbc8
Pontoon: Update Belarusian (be) localization of Firefox Profiler
zubialevich Feb 9, 2023
539e849
🔃 Daily sync: main -> l10n (February 9, 2023)
Feb 9, 2023
d0a036b
Reduce `fillStyle` and `fillRect` calls in FlameGraph canvas drawing
krsh732 Feb 1, 2023
c2e219d
Store color styles ahead of time in a map
krsh732 Feb 1, 2023
0e082b7
Pull `dragX/dragY` out of chart viewport state to avoid renders
krsh732 Feb 1, 2023
e558603
Simplify `getFittedText` implementation
krsh732 Feb 1, 2023
7664c7d
🔃 Daily sync: main -> l10n (February 10, 2023)
Feb 10, 2023
56d2930
Pontoon: Update Belarusian (be) localization of Firefox Profiler
zubialevich Feb 10, 2023
5098fd3
Pontoon: Update Belarusian (be) localization of Firefox Profiler
zubialevich Feb 10, 2023
c05d0a3
Improve flame graph rendering performance (Merge PR #4455)
julienw Feb 10, 2023
e2571cd
🔃 Daily sync: main -> l10n (February 11, 2023)
Feb 11, 2023
c044008
Pontoon: Update Belarusian (be) localization of Firefox Profiler
zubialevich Feb 13, 2023
8905356
Pontoon: Update Belarusian (be) localization of Firefox Profiler
zubialevich Feb 13, 2023
1247428
Pontoon: Update Belarusian (be) localization of Firefox Profiler
zubialevich Feb 13, 2023
d23e607
Pontoon: Update Belarusian (be) localization of Firefox Profiler
zubialevich Feb 13, 2023
a31d803
Update all development Yarn dependencies (2023-02-13) (PR #4469)
depfu[bot] Feb 13, 2023
17dd91d
🔃 Daily sync: main -> l10n (February 14, 2023)
Feb 14, 2023
abb9b55
Pontoon: Update Spanish (Chile) (es-CL) localization of Firefox Profiler
RAVMN Feb 14, 2023
5956e0c
Sort power tracks, and show them right after the other counter tracks…
fqueze Feb 14, 2023
d57124a
Update our CI to v18
julienw Feb 14, 2023
a796385
Update tests following the ICU update
julienw Feb 14, 2023
e12649a
Final small changes following the update to node v18
julienw Feb 14, 2023
5dc7622
Add a .nvmrc file so that tools like netlify (and others) can pick it…
julienw Feb 14, 2023
92dd773
🔃 Daily sync: main -> l10n (February 15, 2023)
Feb 15, 2023
4d9120f
Pontoon: Update Belarusian (be) localization of Firefox Profiler
zubialevich Feb 15, 2023
de0333a
Pontoon: Update Belarusian (be) localization of Firefox Profiler
zubialevich Feb 15, 2023
5927708
Update node to v18 (Merge PR #4471)
julienw Feb 15, 2023
4ce5a66
Pontoon: Update Belarusian (be) localization of Firefox Profiler
zubialevich Feb 16, 2023
a0e779e
🔃 Daily sync: main -> l10n (February 16, 2023)
Feb 16, 2023
0d146f8
Make the CallTree store a Thread.
mstange Feb 16, 2023
52f08fb
Make the CallTree store a Thread. (Merge PR #4475)
mstange Feb 17, 2023
26b60b3
Simplify getIsBottomBoxOpen selector.
mstange Feb 16, 2023
3758121
Simplify getIsBottomBoxOpen selector. (Merge PR #4476)
mstange Feb 17, 2023
e0215b9
Add support for [sym:name:address:size]
mstange Feb 17, 2023
68c8d45
Assembly View part 1: Add state and actions
mstange Feb 16, 2023
e0b59d0
Assembly view part 1 (Merge PR #4478)
mstange Feb 17, 2023
51501d1
🔃 Daily sync: main -> l10n (February 18, 2023)
Feb 18, 2023
678b278
Update all development Yarn dependencies (2023-02-20)
depfu[bot] Feb 20, 2023
dc8b7cc
Fix indents in address-timings.test.js. (PR #4482)
mstange Feb 20, 2023
1386366
Rename activation generation to scroll generation. (PR #4481)
mstange Feb 20, 2023
53322d7
Add a test showing the problem
julienw Feb 20, 2023
602fcf7
Ignore ProfileChunk entries that have no useful data
julienw Feb 20, 2023
8054f3d
Remove stylelint-config-prettier as it's been made obsolete by stylel…
julienw Feb 20, 2023
9c3a3e6
Merge branch 'main' into depfu/batch_dev/yarn/2023-02-20
julienw Feb 20, 2023
316b48a
Update all development Yarn dependencies (2023-02-20) (Merge PR #4483)
julienw Feb 20, 2023
0eca990
⬆️ Update react-intersection-observer to version 9.4.2 (PR #4474)
depfu[bot] Feb 20, 2023
3864449
🔃 Daily sync: main -> l10n (February 21, 2023)
Feb 21, 2023
ace9b59
⬆️ Update core-js to version 3.28.0 (PR #4487)
depfu[bot] Feb 21, 2023
4e5442e
⬆️ Update @codemirror/lang-javascript to version 6.1.4 (PR #4488)
depfu[bot] Feb 21, 2023
2596756
🔃 Daily sync: main -> l10n (February 22, 2023)
Feb 22, 2023
f4303bf
⬆️ Update @codemirror/view to version 6.8.1 (PR #4472)
depfu[bot] Feb 22, 2023
7f60386
Fix getUsefulTabs to handle cases where the first sample in a thread …
julienw Feb 22, 2023
c3edf91
Merge branch 'main' into fix-chrome-importer
julienw Feb 22, 2023
dc2d10d
Ignore ProfileChunk entries that have no useful data (Merge PR #4485)
julienw Feb 22, 2023
ab43ee5
🔃 Daily sync: main -> l10n (February 23, 2023)
Feb 23, 2023
31f3bb1
Pontoon: Update Kabyle (kab) localization of Firefox Profiler
Feb 24, 2023
6b9cae7
🔃 Sync: l10n -> main (February 27, 2023) (Merge PR #4493)
canova Feb 27, 2023
d4c0142
Pontoon: Update Belarusian (be) localization of Firefox Profiler
canova Feb 27, 2023
0e098ed
Merge branch 'main' into l10n
canova Feb 27, 2023
9212d8d
🔃 Sync: l10n -> main (February 27, 2023, second sync) (Merge PR #4495)
canova Feb 27, 2023
ca02402
Enable Belarusian locale as it's complete now (PR #4496)
canova Feb 27, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2.1
executors:
node:
docker:
- image: cimg/node:16.13
- image: cimg/node:18.14
base:
docker:
- image: cimg/base:stable
Expand Down
2 changes: 1 addition & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ports:
- port: 4242
tasks:
- before: nvm install 16
- before: nvm install 18
init: yarn install
command: FX_PROFILER_HOST="0.0.0.0" yarn start
- openMode: split-right
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18.14
1 change: 0 additions & 1 deletion .stylelintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"extends": [
"stylelint-config-standard",
"stylelint-config-idiomatic-order",
"stylelint-config-prettier"
],
"rules": {
"prettier/prettier": [
Expand Down
10 changes: 5 additions & 5 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
clone_depth: 5
environment:
nodejs_version: "16"
nodejs_version: "18.14"
platform: x64 # flow needs 64b platforms

branches:
Expand All @@ -12,12 +12,12 @@ branches:
install:
# 1. Select the right node
# The following command works by fully reinstalling a version of node. It's a
# lot slower than the other command. This needs the full version (eg: 16.12)
# - ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) $env:platform
# lot slower than the other command. This needs the full version (eg: 18.12)
- ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) $env:platform
# Use the following command if the wanted version is already part of
# appveyor's windows machines, see https://www.appveyor.com/docs/windows-images-software/#node-js
# This needs the major version only (eg: 16)
- ps: Install-Product node $env:nodejs_version $env:platform
# This needs the major version only (eg: 18)
# - ps: Install-Product node $env:nodejs_version $env:platform
# 2. Setup the project
- yarn install --frozen-lockfile

Expand Down
2 changes: 1 addition & 1 deletion bin/pre-install.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function checkNode(agents /*: AgentsVersion */) {
'You can use a tool like `nvm` to install and manage installed node versions.'
);
console.error(
'You can look at https://github.com/creationix/nvm to install this tool.\n'
'You can look at https://github.com/nvm-sh/nvm to install this tool.\n'
);
console.error(
'Once `nvm` is installed you can use the following commands to upgrade:\n' +
Expand Down
430 changes: 427 additions & 3 deletions locales/be/app.ftl

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions locales/es-CL/app.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -289,12 +289,12 @@ MarkerContextMenu--copy-as-json = Copiar como JSON
# IPC marker.
# Variables:
# $threadName (String) - Name of the thread that will be selected.
MarkerContextMenu--select-the-receiver-thread = Seleccione el hilo receptor "<strong>{ $threadName }</strong>"
MarkerContextMenu--select-the-receiver-thread = Selecciona el hilo receptor "<strong>{ $threadName }</strong>"
# This string is used on the marker context menu item when right clicked on an
# IPC marker.
# Variables:
# $threadName (String) - Name of the thread that will be selected.
MarkerContextMenu--select-the-sender-thread = Seleccione el hilo remitente "<strong>{ $threadName }</strong>"
MarkerContextMenu--select-the-sender-thread = Selecciona el hilo remitente "<strong>{ $threadName }</strong>"

## MarkerSettings
## This is used in all panels related to markers.
Expand Down
9 changes: 8 additions & 1 deletion locales/kab/app.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ AppViewRouter--route-not-found--home =
## This is used as a context menu for the Call Tree, Flame Graph and Stack Chart
## panels.

# Variables:
# $fileName (String) - Name of the file to open.
CallNodeContextMenu--show-file = Sken <strong>{ $fileName }</strong>
CallNodeContextMenu--transform-merge-function = Smezdi tawuri
.title =
Asmezdi n twuri itekkes-itt seg umaɣnu, ad tmudd akud-ines i
Expand Down Expand Up @@ -436,8 +439,12 @@ TrackMemoryGraph--relative-memory-at-this-time = takatut tamassaɣt deg wakud-a
## TrackPower
## This is used to show the power used by the CPU and other chips in a computer,
## graphed over time.
## It's not displayed by default in the UI, but an example can be found at
## It's not always displayed in the UI, but an example can be found at
## https://share.firefox.dev/3a1fiT7.
## For the strings in this group, the carbon dioxide equivalent is computed from
## the used energy, using the carbon dioxide equivalent for electricity
## consumption. The carbon dioxide equivalent represents the equivalent amount
## of CO₂ to achieve the same level of global warming potential.


## TrackSearchField
Expand Down
25 changes: 12 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@
},
"dependencies": {
"@codemirror/lang-cpp": "^6.0.2",
"@codemirror/lang-javascript": "^6.1.3",
"@codemirror/lang-javascript": "^6.1.4",
"@codemirror/lang-rust": "^6.0.1",
"@codemirror/language": "^6.4.0",
"@codemirror/state": "^6.2.0",
"@codemirror/view": "^6.7.3",
"@codemirror/view": "^6.8.1",
"@firefox-devtools/react-contextmenu": "^5.1.0",
"@fluent/bundle": "^0.17.1",
"@fluent/langneg": "^0.6.2",
Expand All @@ -66,7 +66,7 @@
"classnames": "^2.3.2",
"common-tags": "^1.8.2",
"copy-to-clipboard": "^3.3.3",
"core-js": "^3.27.2",
"core-js": "^3.28.0",
"escape-string-regexp": "^4.0.0",
"gecko-profiler-demangle": "^0.3.3",
"idb": "^7.1.1",
Expand All @@ -79,7 +79,7 @@
"query-string": "^8.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-intersection-observer": "^9.4.1",
"react-intersection-observer": "^9.4.2",
"react-redux": "^8.0.5",
"react-splitter-layout": "^4.0.0",
"react-transition-group": "^4.4.5",
Expand Down Expand Up @@ -109,15 +109,15 @@
"babel-loader": "^9.1.2",
"babel-plugin-module-resolver": "^5.0.0",
"browserslist": "^4.21.5",
"caniuse-lite": "^1.0.30001442",
"caniuse-lite": "^1.0.30001451",
"circular-dependency-plugin": "^5.2.1",
"codecov": "^3.8.3",
"copy-webpack-plugin": "^11.0.0",
"cross-env": "^7.0.3",
"css-loader": "^6.7.3",
"cssnano": "^5.1.14",
"devtools-license-check": "^0.9.0",
"eslint": "^8.32.0",
"eslint": "^8.34.0",
"eslint-config-prettier": "^8.6.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-plugin-flowtype": "^8.0.3",
Expand All @@ -126,7 +126,7 @@
"eslint-plugin-jest-dom": "^4.0.3",
"eslint-plugin-jest-formatting": "^3.1.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.32.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-testing-library": "^5.10.0",
"fake-indexeddb": "^4.0.1",
"fetch-mock-jest": "^1.5.1",
Expand All @@ -141,21 +141,20 @@
"jest-environment-jsdom": "^29.4.1",
"jest-extended": "^3.2.3",
"json-loader": "^0.5.7",
"local-web-server": "^5.2.1",
"local-web-server": "^5.3.0",
"lockfile-lint": "^4.10.0",
"mkdirp": "^2.1.3",
"node-fetch": "^2.6.7",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.21",
"postcss-loader": "^7.0.2",
"prettier": "^2.8.3",
"prettier": "^2.8.4",
"raw-loader": "^4.0.2",
"rimraf": "^4.1.1",
"rimraf": "^4.1.2",
"style-loader": "^3.3.1",
"stylelint": "^14.16.1",
"stylelint": "^15.1.0",
"stylelint-config-idiomatic-order": "^9.0.0",
"stylelint-config-prettier": "^9.0.4",
"stylelint-config-standard": "^29.0.0",
"stylelint-config-standard": "^30.0.1",
"stylelint-prettier": "^2.0.0",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.1",
Expand Down
31 changes: 28 additions & 3 deletions src/actions/profile-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ import type {
KeyboardModifiers,
TableViewOptions,
SelectionContext,
BottomBoxInfo,
} from 'firefox-profiler/types';
import {
funcHasDirectRecursiveCall,
Expand Down Expand Up @@ -1948,11 +1949,35 @@ export function changeTableViewOptions(
};
}

export function openSourceView(file: string, currentTab: TabSlug): Action {
export function updateBottomBoxContentsAndMaybeOpen(
currentTab: TabSlug,
{ libIndex, sourceFile, nativeSymbols }: BottomBoxInfo
): Action {
// TODO: If the set has more than one element, pick the native symbol with
// the highest total sample count
const nativeSymbol = nativeSymbols.length !== 0 ? nativeSymbols[0] : null;

return {
type: 'OPEN_SOURCE_VIEW',
file,
type: 'UPDATE_BOTTOM_BOX',
libIndex,
sourceFile,
nativeSymbol,
allNativeSymbolsForInitiatingCallNode: nativeSymbols,
currentTab,
shouldOpenBottomBox: sourceFile !== null || nativeSymbol !== null,
shouldOpenAssemblyView: sourceFile === null && nativeSymbol !== null,
};
}

export function openAssemblyView(): Action {
return {
type: 'OPEN_ASSEMBLY_VIEW',
};
}

export function closeAssemblyView(): Action {
return {
type: 'CLOSE_ASSEMBLY_VIEW',
};
}

Expand Down
1 change: 1 addition & 0 deletions src/app-logic/l10n.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { SHORTDATE } from 'firefox-profiler/utils/l10n-ftl-functions';
// Also note that the order specified here is the order they'll be displayed in the
// language switcher, so it's important to keep the alphabetical order.
export const AVAILABLE_LOCALES_TO_LOCALIZED_NAMES = {
be: 'Беларуская',
de: 'Deutsch',
el: 'Ελληνικά',
'en-GB': 'English (GB)',
Expand Down
19 changes: 14 additions & 5 deletions src/app-logic/url-handling.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import type {
ThreadIndex,
TimelineType,
SourceViewState,
AssemblyViewState,
} from 'firefox-profiler/types';
import {
decodeUintArrayFromUrlComponent,
Expand Down Expand Up @@ -411,8 +412,8 @@ export function getQueryStringFromUrlState(urlState: UrlState): string {
: urlState.profileSpecific.lastSelectedCallTreeSummaryStrategy;
const { sourceView, isBottomBoxOpenPerPanel } = urlState.profileSpecific;
query.sourceView =
sourceView.file !== null && isBottomBoxOpenPerPanel[selectedTab]
? sourceView.file
sourceView.sourceFile !== null && isBottomBoxOpenPerPanel[selectedTab]
? sourceView.sourceFile
: undefined;
break;
}
Expand Down Expand Up @@ -575,13 +576,20 @@ export function stateFromLocation(
const selectedTab =
toValidTabSlug(pathParts[selectedTabPathPart]) || 'calltree';
const sourceView: SourceViewState = {
activationGeneration: 0,
file: null,
scrollGeneration: 0,
libIndex: null,
sourceFile: null,
};
const assemblyView: AssemblyViewState = {
isOpen: false,
scrollGeneration: 0,
nativeSymbol: null,
allNativeSymbolsForInitiatingCallNode: [],
};
const isBottomBoxOpenPerPanel = {};
tabSlugs.forEach((tabSlug) => (isBottomBoxOpenPerPanel[tabSlug] = false));
if (query.sourceView) {
sourceView.file = query.sourceView;
sourceView.sourceFile = query.sourceView;
isBottomBoxOpenPerPanel[selectedTab] = true;
}

Expand Down Expand Up @@ -617,6 +625,7 @@ export function stateFromLocation(
networkSearchString: query.networkSearch || '',
transforms,
sourceView,
assemblyView,
isBottomBoxOpenPerPanel,
timelineType: validateTimelineType(query.timelineType),
full: {
Expand Down
10 changes: 5 additions & 5 deletions src/components/app/BottomBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import classNames from 'classnames';
import { SourceView } from '../shared/SourceView';
import {
getSourceViewFile,
getSourceViewActivationGeneration,
getSourceViewScrollGeneration,
} from 'firefox-profiler/selectors/url-state';
import {
selectedThreadSelectors,
Expand All @@ -34,7 +34,7 @@ type StateProps = {|
+sourceViewSource: FileSourceStatus | void,
+globalLineTimings: LineTimings,
+selectedCallNodeLineTimings: LineTimings,
+sourceViewActivationGeneration: number,
+sourceViewScrollGeneration: number,
+disableOverscan: boolean,
|};

Expand Down Expand Up @@ -218,7 +218,7 @@ class BottomBoxImpl extends React.PureComponent<Props> {
sourceViewSource,
globalLineTimings,
disableOverscan,
sourceViewActivationGeneration,
sourceViewScrollGeneration,
selectedCallNodeLineTimings,
} = this.props;
const source =
Expand Down Expand Up @@ -253,7 +253,7 @@ class BottomBoxImpl extends React.PureComponent<Props> {
timings={globalLineTimings}
source={source}
filePath={path}
scrollToHotSpotGeneration={sourceViewActivationGeneration}
scrollToHotSpotGeneration={sourceViewScrollGeneration}
hotSpotTimings={selectedCallNodeLineTimings}
ref={this._sourceView}
/>
Expand All @@ -275,7 +275,7 @@ export const BottomBox = explicitConnect<{||}, StateProps, DispatchProps>({
globalLineTimings: selectedThreadSelectors.getSourceViewLineTimings(state),
selectedCallNodeLineTimings:
selectedNodeSelectors.getSourceViewLineTimings(state),
sourceViewActivationGeneration: getSourceViewActivationGeneration(state),
sourceViewScrollGeneration: getSourceViewScrollGeneration(state),
disableOverscan: getPreviewSelection(state).isModifying,
}),
mapDispatchToProps: {
Expand Down
15 changes: 6 additions & 9 deletions src/components/calltree/CallTree.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ import {
changeExpandedCallNodes,
addTransformToStack,
handleCallNodeTransformShortcut,
openSourceView,
changeTableViewOptions,
updateBottomBoxContentsAndMaybeOpen,
} from 'firefox-profiler/actions/profile-view';
import { assertExhaustiveCheck } from 'firefox-profiler/utils/flow';

Expand Down Expand Up @@ -82,7 +82,7 @@ type DispatchProps = {|
+changeExpandedCallNodes: typeof changeExpandedCallNodes,
+addTransformToStack: typeof addTransformToStack,
+handleCallNodeTransformShortcut: typeof handleCallNodeTransformShortcut,
+openSourceView: typeof openSourceView,
+updateBottomBoxContentsAndMaybeOpen: typeof updateBottomBoxContentsAndMaybeOpen,
+onTableViewOptionsChange: (TableViewOptions) => any,
|};

Expand Down Expand Up @@ -289,12 +289,9 @@ class CallTreeImpl extends PureComponent<Props> {
};

_onEnterOrDoubleClick = (nodeId: IndexIntoCallNodeTable) => {
const { tree, openSourceView } = this.props;
const file = tree.getRawFileNameForCallNode(nodeId);
if (file === null) {
return;
}
openSourceView(file, 'calltree');
const { tree, updateBottomBoxContentsAndMaybeOpen } = this.props;
const bottomBoxInfo = tree.getBottomBoxInfoForCallNode(nodeId);
updateBottomBoxContentsAndMaybeOpen('calltree', bottomBoxInfo);
};

maybeProcureInterestingInitialSelection() {
Expand Down Expand Up @@ -431,7 +428,7 @@ export const CallTree = explicitConnect<{||}, StateProps, DispatchProps>({
changeExpandedCallNodes,
addTransformToStack,
handleCallNodeTransformShortcut,
openSourceView,
updateBottomBoxContentsAndMaybeOpen,
onTableViewOptionsChange: (options: TableViewOptions) =>
changeTableViewOptions('calltree', options),
},
Expand Down
Loading