Skip to content

Commit 4d44cf7

Browse files
committed
Add the upper butterfly wing.
1 parent adbd19e commit 4d44cf7

9 files changed

Lines changed: 904 additions & 5 deletions

File tree

src/actions/profile-view.js

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,21 @@ export function changeLowerWingSelectedCallNode(
149149
};
150150
}
151151

152+
export function changeUpperWingSelectedCallNode(
153+
threadsKey: ThreadsKey,
154+
selectedCallNodePath: CallNodePath,
155+
context: SelectionContext = { source: 'auto' }
156+
): Action {
157+
return {
158+
type: 'CHANGE_SELECTED_CALL_NODE',
159+
area: 'UPPER_WING',
160+
selectedCallNodePath,
161+
optionalExpandedToCallNodePath: [],
162+
threadsKey,
163+
context,
164+
};
165+
}
166+
152167
/**
153168
* Select a function for a given thread in the function list.
154169
*/
@@ -208,6 +223,18 @@ export function changeLowerWingRightClickedCallNode(
208223
};
209224
}
210225

226+
export function changeUpperWingRightClickedCallNode(
227+
threadsKey: ThreadsKey,
228+
callNodePath: CallNodePath | null
229+
) {
230+
return {
231+
type: 'CHANGE_RIGHT_CLICKED_CALL_NODE',
232+
threadsKey,
233+
area: 'UPPER_WING',
234+
callNodePath,
235+
};
236+
}
237+
211238
/**
212239
* Given a threadIndex and a sampleIndex, select the call node which carries the
213240
* sample's self time. In the inverted tree, this will be a root node.
@@ -1710,6 +1737,18 @@ export function changeLowerWingExpandedCallNodes(
17101737
};
17111738
}
17121739

1740+
export function changeUpperWingExpandedCallNodes(
1741+
threadsKey: ThreadsKey,
1742+
expandedCallNodePaths: Array<CallNodePath>
1743+
): Action {
1744+
return {
1745+
type: 'CHANGE_EXPANDED_CALL_NODES',
1746+
area: 'UPPER_WING',
1747+
threadsKey,
1748+
expandedCallNodePaths,
1749+
};
1750+
}
1751+
17131752
export function changeSelectedMarker(
17141753
threadsKey: ThreadsKey,
17151754
selectedMarker: MarkerIndex | null,

src/components/calltree/ProfileFunctionListView.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import React from 'react';
88
import SplitterLayout from 'react-splitter-layout';
99
import { FunctionList } from './FunctionList';
10+
import { UpperWing } from './UpperWing';
1011
import { LowerWing } from './LowerWing';
1112
import { StackSettings } from 'firefox-profiler/components/shared/StackSettings';
1213
import { TransformNavigator } from 'firefox-profiler/components/shared/TransformNavigator';
@@ -26,7 +27,7 @@ export const ProfileFunctionListView = () => (
2627
<SplitterLayout percentage secondaryInitialSize={50}>
2728
<FunctionList />
2829
<SplitterLayout percentage vertical secondaryInitialSize={50}>
29-
<LowerWing />
30+
<UpperWing />
3031
<LowerWing />
3132
</SplitterLayout>
3233
</SplitterLayout>

0 commit comments

Comments
 (0)