Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
3 changes: 3 additions & 0 deletions ui/packages/shared/profile/src/ProfileFlameChart/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import {TimeUnits, formatDateTimeDownToMS, formatDuration} from '@parca/utilitie
import ProfileFlameGraph, {validateFlameChartQuery} from '../ProfileFlameGraph';
import {boundsFromProfileSource} from '../ProfileFlameGraph/FlameGraphArrow/utils';
import {MergedProfileSource, ProfileSource} from '../ProfileSource';
import {useProfileFilters} from '../ProfileView/components/ProfileFilters/useProfileFilters';
import type {SamplesData} from '../ProfileView/types/visualization';
import {useQuery} from '../useQuery';
import {NumberDuo} from '../utils';
Expand Down Expand Up @@ -128,6 +129,7 @@ export const ProfileFlameChart = ({
onSwitchToOneMinute,
}: ProfileFlameChartProps): JSX.Element => {
const {loader} = useParcaContext();
const {protoFilters} = useProfileFilters();
const zoomControlsRef = useRef<HTMLDivElement>(null);

const [selectedTimeframe, setSelectedTimeframe] = useURLStateCustom<
Expand Down Expand Up @@ -185,6 +187,7 @@ export const ProfileFlameChart = ({
QueryRequest_ReportType.FLAMECHART,
{
skip: selectedTimeframe == null || filteredProfileSource == null,
protoFilters,
}
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
const isGraphViz = dashboardItems?.includes('flamegraph');
const isGraphVizOnly = dashboardItems?.length === 1 && isGraphViz;
const isFlamechartViz = dashboardItems?.includes('flamechart');
const isFlamechartVizOnly = dashboardItems?.length === 1 && isFlamechartViz;

Check failure on line 166 in ui/packages/shared/profile/src/ProfileView/components/Toolbars/index.tsx

View workflow job for this annotation

GitHub Actions / UI Test and Lint

'isFlamechartVizOnly' is assigned a value but never used. Allowed unused vars must match /_/u
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@claude remove this unused variable.


const req = profileSource?.QueryRequest();
if (req !== null && req !== undefined) {
Expand Down Expand Up @@ -202,7 +202,7 @@
)}

<div className="flex mt-5">
{!isFlamechartVizOnly && <ProfileFilters />}
<ProfileFilters />

{profileViewExternalSubActions != null ? profileViewExternalSubActions : null}
</div>
Expand Down
Loading