Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 1 addition & 4 deletions src/actions/profile-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,10 +347,7 @@ function getInformationFromTrackReference(
relatedThreadIndex: localTrack.threadIndex,
relatedTab: null,
};
case 'memory':
case 'bandwidth':
case 'process-cpu':
case 'power': {
case 'counter': {
const counterSelectors = getCounterSelectors(localTrack.counterIndex);
const counter = counterSelectors.getCounter(state);
return {
Expand Down
22 changes: 4 additions & 18 deletions src/app-logic/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,10 @@ export const TRACK_NETWORK_ROW_REPEAT = 7;
export const TRACK_NETWORK_HEIGHT =
TRACK_NETWORK_ROW_HEIGHT * TRACK_NETWORK_ROW_REPEAT;

// The following values are for memory track.
export const TRACK_MEMORY_GRAPH_HEIGHT = 25;
export const TRACK_MEMORY_MARKERS_HEIGHT = 15;
export const TRACK_MEMORY_HEIGHT =
TRACK_MEMORY_GRAPH_HEIGHT + TRACK_MEMORY_MARKERS_HEIGHT;
export const TRACK_MEMORY_LINE_WIDTH = 2;

// The following values are for the bandwidth track.
export const TRACK_BANDWIDTH_HEIGHT = 25;
export const TRACK_BANDWIDTH_LINE_WIDTH = 2;
// The following values are for counter tracks (Memory, Power, Bandwidth, etc.).
export const TRACK_COUNTER_GRAPH_HEIGHT = 25;
export const TRACK_COUNTER_MARKERS_HEIGHT = 15;
export const TRACK_COUNTER_LINE_WIDTH = 2;

// The following values are for experimental event delay track.
export const TRACK_EVENT_DELAY_HEIGHT = 40;
Expand All @@ -59,14 +53,6 @@ export const TRACK_PROCESS_BLANK_HEIGHT = 30;
// Height of timeline ruler.
export const TIMELINE_RULER_HEIGHT = 20;

// Height of the power track.
export const TRACK_POWER_HEIGHT = 25;
export const TRACK_POWER_LINE_WIDTH = 2;

// Height of the process cpu track.
export const TRACK_PROCESS_CPU_HEIGHT = 25;
export const TRACK_PROCESS_CPU_LINE_WIDTH = 2;

// JS Tracer has very high fidelity information, and needs a more fine-grained zoom.
export const JS_TRACER_MAXIMUM_CHART_ZOOM = 0.001;

Expand Down
20 changes: 4 additions & 16 deletions src/components/timeline/LocalTrack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,8 @@ import { getThreadSelectors } from 'firefox-profiler/selectors/per-thread';
import { TimelineTrackThread } from './TrackThread';
import { TrackEventDelay } from './TrackEventDelay';
import { TrackNetwork } from './TrackNetwork';
import { TrackMemory } from './TrackMemory';
import { TrackBandwidth } from './TrackBandwidth';
import { TrackCounter } from './TrackCounter';
import { TrackIPC } from './TrackIPC';
import { TrackProcessCPU } from './TrackProcessCPU';
import { TrackPower } from './TrackPower';
import { getTrackSelectionModifiers } from 'firefox-profiler/utils';
import type {
TrackReference,
Expand Down Expand Up @@ -106,18 +103,12 @@ class LocalTrackComponent extends PureComponent<Props> {
);
case 'network':
return <TrackNetwork threadIndex={localTrack.threadIndex} />;
case 'memory':
return <TrackMemory counterIndex={localTrack.counterIndex} />;
case 'bandwidth':
return <TrackBandwidth counterIndex={localTrack.counterIndex} />;
case 'counter':
return <TrackCounter counterIndex={localTrack.counterIndex} />;
case 'ipc':
return <TrackIPC threadIndex={localTrack.threadIndex} />;
case 'event-delay':
return <TrackEventDelay threadIndex={localTrack.threadIndex} />;
case 'process-cpu':
return <TrackProcessCPU counterIndex={localTrack.counterIndex} />;
case 'power':
return <TrackPower counterIndex={localTrack.counterIndex} />;
case 'marker':
return (
<TrackCustomMarker
Expand Down Expand Up @@ -241,10 +232,7 @@ export const TimelineLocalTrack = explicitConnect<
'Event Delay of ' + selectors.getThreadProcessDetails(state);
break;
}
case 'memory':
case 'bandwidth':
case 'process-cpu':
case 'power': {
case 'counter': {
titleText = getCounterSelectors(localTrack.counterIndex).getDescription(
state
);
Expand Down
25 changes: 0 additions & 25 deletions src/components/timeline/TrackBandwidth.css

This file was deleted.

83 changes: 0 additions & 83 deletions src/components/timeline/TrackBandwidth.tsx

This file was deleted.

Loading
Loading