Home
last modified time | relevance | path

Searched refs:frontendLocalState (Results 1 – 25 of 47) sorted by relevance

12

/external/perfetto/ui/src/frontend/
Dviewer_page.ts43 const area = globals.frontendLocalState.selectedArea.area;
45 const start = globals.frontendLocalState.timeScale.timeToPx(area.startSec);
46 const end = globals.frontendLocalState.timeScale.timeToPx(area.endSec);
70 const frontendLocalState = globals.frontendLocalState; constant
73 frontendLocalState.updateResolution(
76 frontendLocalState.getScrollbarWidth());
99 const vizTime = globals.frontendLocalState.visibleWindowTime;
101 const tDelta = frontendLocalState.timeScale.deltaPxToDuration(pannedPx);
111 frontendLocalState.updateVisibleTime(new TimeSpan(tStart, tEnd));
119 const span = frontendLocalState.visibleWindowTime;
[all …]
Dscroll_helper.ts26 const startNs = toNs(globals.frontendLocalState.visibleWindowTime.start);
27 const endNs = toNs(globals.frontendLocalState.visibleWindowTime.end);
31 globals.frontendLocalState.updateVisibleTime(new TimeSpan(
41 const visibleDur = globals.frontendLocalState.visibleWindowTime.end -
42 globals.frontendLocalState.visibleWindowTime.start;
44 const viewStartNs = toNs(globals.frontendLocalState.visibleWindowTime.start);
45 const viewEndNs = toNs(globals.frontendLocalState.visibleWindowTime.end);
48 globals.frontendLocalState.updateVisibleTime(
85 globals.frontendLocalState.scrollToTrackId = trackId;
Dsearch_handler.ts23 const state = globals.frontendLocalState;
25 const startNs = toNs(globals.frontendLocalState.visibleWindowTime.start);
26 const endNs = toNs(globals.frontendLocalState.visibleWindowTime.end);
35 globals.frontendLocalState.setSearchIndex(smaller);
39 globals.frontendLocalState.setSearchIndex(larger);
44 globals.frontendLocalState.setSearchIndex(Math.max(index - 1, 0));
46 globals.frontendLocalState.setSearchIndex(Math.min(
63 const searchIndex = globals.frontendLocalState.searchIndex;
71 const state = globals.frontendLocalState;
Dtrack_panel.ts40 return globals.frontendLocalState.selectedArea.area &&
41 globals.frontendLocalState.selectedArea.area.tracks.includes(id);
63 const searchIndex = globals.frontendLocalState.searchIndex;
66 .trackIds[globals.frontendLocalState.searchIndex];
101 globals.frontendLocalState.selectedArea.area ? m(TrackButton, {
103 globals.frontendLocalState.toggleTrackSelection(
186 if (globals.frontendLocalState.selectingArea) return;
188 const clickTime = globals.frontendLocalState.timeScale.pxToTime(
190 const area = globals.frontendLocalState.selectedArea.area;
193 globals.frontendLocalState.deselectArea();
[all …]
Dpanel_container.ts107 const selection = globals.frontendLocalState.selectedArea;
112 globals.frontendLocalState.areaY.start === undefined ||
113 globals.frontendLocalState.areaY.end === undefined ||
123 if (globals.frontendLocalState.areaY.start + TOPBAR_HEIGHT <
125 globals.frontendLocalState.areaY.start + TOPBAR_HEIGHT >
133 globals.frontendLocalState.timeScale.timeToPx(area.startSec),
134 globals.frontendLocalState.timeScale.timeToPx(area.endSec),
135 globals.frontendLocalState.areaY.start + TOPBAR_HEIGHT,
136 globals.frontendLocalState.areaY.end + TOPBAR_HEIGHT);
155 globals.frontendLocalState.selectArea(area.startSec, area.endSec, tracks);
[all …]
Dnotes_panel.ts46 const timescale = globals.frontendLocalState.timeScale;
48 globals.frontendLocalState.setVidTimestamp(timestamp);
58 globals.frontendLocalState.setHoveredNoteTimestamp(-1);
74 const timeScale = globals.frontendLocalState.timeScale;
75 const range = globals.frontendLocalState.visibleWindowTime;
133 if (aNoteIsHovered) globals.frontendLocalState.setHoveredNoteTimestamp(-1);
139 globals.frontendLocalState.setHoveredNoteTimestamp(timestamp);
155 if (x >= globals.frontendLocalState.timeScale.startPx + TRACK_SHELL_WIDTH) {
178 globals.frontendLocalState.timeScale.startPx + TRACK_SHELL_WIDTH) -
209 const timeScale = globals.frontendLocalState.timeScale;
[all …]
Dkeyboard_event_handler.ts30 const selectedArea = globals.frontendLocalState.selectedArea.area;
35 globals.frontendLocalState.toggleLockArea();
49 if (globals.frontendLocalState.vidTimestamp < 0) {
50 globals.frontendLocalState.setVidTimestamp(Number.MAX_SAFE_INTEGER);
52 globals.frontendLocalState.setVidTimestamp(Number.MIN_SAFE_INTEGER);
56 globals.frontendLocalState.toggleSidebar();
96 globals.frontendLocalState.selectArea(range.startTs, range.endTs, tracks);
Dtopbar.ts108 const state = globals.frontendLocalState;
116 globals.frontendLocalState.setOmnibox(
119 globals.frontendLocalState.setSearchIndex(-1);
124 value: globals.frontendLocalState.omnibox,
193 if (!globals.frontendLocalState.newVersionAvailable) return;
207 globals.frontendLocalState.newVersionAvailable = false;
220 if (dismissed === 'true' || !globals.frontendLocalState.showPanningHint) {
231 globals.frontendLocalState.showPanningHint = false;
245 globals.frontendLocalState.newVersionAvailable ?
Dtrack_group_panel.ts81 const searchIndex = globals.frontendLocalState.searchIndex;
84 .trackIds[globals.frontendLocalState.searchIndex];
91 const selectedArea = globals.frontendLocalState.selectedArea.area;
130 globals.frontendLocalState.toggleTrackSelection(
153 const localState = globals.frontendLocalState;
178 globals.frontendLocalState.timeScale,
179 globals.frontendLocalState.visibleWindowTime,
190 const localState = globals.frontendLocalState;
209 !globals.frontendLocalState.selectingArea) {
Dtime_selection_panel.ts123 const range = globals.frontendLocalState.visibleWindowTime;
124 const timeScale = globals.frontendLocalState.timeScale;
132 const selectedArea = globals.frontendLocalState.selectedArea.area;
137 } else if (globals.frontendLocalState.hoveredLogsTimestamp !== -1) {
139 ctx, size, globals.frontendLocalState.hoveredLogsTimestamp);
144 const timeScale = globals.frontendLocalState.timeScale;
153 const timeScale = globals.frontendLocalState.timeScale;
Ddetails_panel.ts111 if (globals.frontendLocalState.currentTab === key ||
112 globals.frontendLocalState.currentTab === undefined &&
123 globals.frontendLocalState.currentTab = key;
236 const panel = globals.frontendLocalState.currentTab &&
237 detailsPanels.has(globals.frontendLocalState.currentTab) ?
238 detailsPanels.get(globals.frontendLocalState.currentTab) :
Dvideo_panel.ts30 currentTime: globals.frontendLocalState.vidTimestamp - offset,
39 globals.frontendLocalState.setVidTimestamp(timestamp);
45 elem.currentTime = globals.frontendLocalState.vidTimestamp - offset;
Dtrack.ts74 globals.frontendLocalState.addVisibleTrack(this.trackState.id);
76 const {visibleWindowTime, timeScale} = globals.frontendLocalState;
101 const endPx = globals.frontendLocalState.timeScale.endPx;
Dsidebar.ts309 globals.frontendLocalState.localOnlyMode = false;
323 globals.frontendLocalState.localOnlyMode = false;
438 if (globals.frontendLocalState.localOnlyMode) return true;
513 if (globals.frontendLocalState.httpRpcState.connected &&
616 onclick: () => globals.frontendLocalState.togglePerfDebug(),
732 class: globals.frontendLocalState.sidebarVisible ? 'show-sidebar' :
744 globals.frontendLocalState.toggleSidebar();
749 title: globals.frontendLocalState.sidebarVisible ?
Dglobals.ts168 get frontendLocalState() {
276 const resolution = this.frontendLocalState.timeScale.deltaPxToDuration(1);
282 globals.frontendLocalState.searchIndex = -1;
283 globals.frontendLocalState.currentTab =
Dtime_axis_panel.ts30 const timeScale = globals.frontendLocalState.timeScale;
31 const range = globals.frontendLocalState.visibleWindowTime;
Dlogs_panel.ts84 globals.frontendLocalState.setHoveredLogsTimestamp(ts);
88 globals.frontendLocalState.setHoveredLogsTimestamp(-1);
97 const vis = globals.frontendLocalState.visibleWindowTime;
Dperf.ts24 export const perfDebug = () => globals.frontendLocalState.perfDebug;
116 onclick: () => globals.frontendLocalState.togglePerfDebug(),
Dtickmark_panel.ts30 const {timeScale, visibleWindowTime} = globals.frontendLocalState;
56 const index = globals.frontendLocalState.searchIndex;
/external/perfetto/ui/src/tracks/process_scheduling/
Dfrontend.ts56 const {timeScale, visibleWindowTime} = globals.frontendLocalState;
79 const {timeScale, visibleWindowTime} = globals.frontendLocalState;
106 const {timeScale, visibleWindowTime} = globals.frontendLocalState;
128 const isHovering = globals.frontendLocalState.hoveredUtid !== -1;
129 const isThreadHovered = globals.frontendLocalState.hoveredUtid === utid;
130 const isProcessHovered = globals.frontendLocalState.hoveredPid === pid;
167 globals.frontendLocalState.setHoveredUtidAndPid(-1, -1);
173 const {timeScale} = globals.frontendLocalState;
179 globals.frontendLocalState.setHoveredUtidAndPid(-1, -1);
187 globals.frontendLocalState.setHoveredUtidAndPid(utid, pid);
[all …]
/external/perfetto/ui/src/tracks/cpu_slices/
Dfrontend.ts61 const {timeScale, visibleWindowTime} = globals.frontendLocalState;
84 const {timeScale, visibleWindowTime} = globals.frontendLocalState;
110 const {timeScale, visibleWindowTime} = globals.frontendLocalState;
146 const isHovering = globals.frontendLocalState.hoveredUtid !== -1;
147 const isThreadHovered = globals.frontendLocalState.hoveredUtid === utid;
148 const isProcessHovered = globals.frontendLocalState.hoveredPid === pid;
258 const {timeScale} = globals.frontendLocalState;
261 globals.frontendLocalState.setHoveredUtidAndPid(-1, -1);
279 globals.frontendLocalState.setHoveredUtidAndPid(hoveredUtid, hoveredPid);
284 globals.frontendLocalState.setHoveredUtidAndPid(-1, -1);
[all …]
/external/perfetto/ui/src/tracks/cpu_profile/
Dfrontend.ts53 } = globals.frontendLocalState;
95 const {timeScale} = globals.frontendLocalState;
109 const {timeScale} = globals.frontendLocalState;
/external/perfetto/ui/src/tracks/heap_profile/
Dfrontend.ts55 } = globals.frontendLocalState;
98 const {timeScale} = globals.frontendLocalState;
112 const {timeScale} = globals.frontendLocalState;
/external/perfetto/ui/src/tracks/gpu_freq/
Dfrontend.ts51 const {timeScale, visibleWindowTime} = globals.frontendLocalState;
79 if (globals.frontendLocalState.hoveredUtid !== -1) {
166 const {timeScale} = globals.frontendLocalState;
/external/perfetto/ui/src/tracks/process_summary/
Dfrontend.ts48 const {timeScale, visibleWindowTime} = globals.frontendLocalState;
65 const {timeScale, visibleWindowTime} = globals.frontendLocalState;

12