Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
aocenas committed Sep 27, 2023
1 parent d6acdca commit 72a054a
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export type SharedQuery = {
syncEnabled: string | boolean;
toggleSync: Dispatch<SetStateAction<boolean | string>>;
id: string;
}
};

export interface FlamegraphRendererProps {
profile?: Profile;
Expand Down
2 changes: 1 addition & 1 deletion public/app/pages/ContinuousDiffView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { formatTitle } from './formatTitle';
import { isLoadingOrReloading } from './loading';
import { Panel } from '@pyroscope/components/Panel';
import { PageContentWrapper } from '@pyroscope/pages/PageContentWrapper';
import {FlameGraphWrapper} from "@pyroscope/components/FlameGraphWrapper";
import { FlameGraphWrapper } from '@pyroscope/components/FlameGraphWrapper';

function ComparisonDiffApp() {
const dispatch = useAppDispatch();
Expand Down
2 changes: 1 addition & 1 deletion public/app/pages/ContinuousSingleView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import AddAnnotationMenuItem from './continuous/contextMenu/AddAnnotation.menuit
import { isLoadingOrReloading } from './loading';
import { Panel } from '@pyroscope/components/Panel';
import { PageContentWrapper } from '@pyroscope/pages/PageContentWrapper';
import {FlameGraphWrapper} from "@pyroscope/components/FlameGraphWrapper";
import { FlameGraphWrapper } from '@pyroscope/components/FlameGraphWrapper';

function ContinuousSingleView() {
const dispatch = useAppDispatch();
Expand Down
8 changes: 1 addition & 7 deletions public/app/pages/TagExplorerView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ import {
// eslint-disable-next-line
import styles from './TagExplorerView.module.scss';
import { formatTitle } from './formatTitle';
import {FlameGraphWrapper} from "@pyroscope/components/FlameGraphWrapper";
import { FlameGraphWrapper } from '@pyroscope/components/FlameGraphWrapper';

const TIMELINE_SERIES_COLORS = [
Color.rgb(242, 204, 12),
Expand Down Expand Up @@ -163,7 +163,6 @@ const getTimelineColor = (index: number, palette: Color[]): Color =>

function TagExplorerView() {
const { offset } = useTimeZone();
const { colorMode } = useColorMode();
const dispatch = useAppDispatch();

const { from, until, tagExplorerView, refreshToken } = useAppSelector(
Expand Down Expand Up @@ -265,11 +264,6 @@ function TagExplorerView() {
dispatch(actions.setTagExplorerViewGroupByTag(value));
};

const exportFlamegraphDotComFn = useExportToFlamegraphDotCom(
activeTagProfile,
groupByTag,
groupByTagValue
);
// when there's no groupByTag value backend returns groups with single "*" group,
// which is "application without any tag" group. when backend returns multiple groups,
// "*" group samples array is filled with zeros (not longer valid application data).
Expand Down
19 changes: 16 additions & 3 deletions public/app/util/flamebearer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ function getNodes(level: number[], names: string[], diff: boolean) {
return nodes;
}

export function flamebearerToDataFrameDTO(levels: number[][], names: string[], unit: string, diff: boolean) {
export function flamebearerToDataFrameDTO(
levels: number[][],
names: string[],
unit: string,
diff: boolean
) {
const nodeLevels: any[][] = [];
for (let i = 0; i < levels.length; i++) {
nodeLevels[i] = [];
Expand Down Expand Up @@ -128,8 +133,16 @@ export function flamebearerToDataFrameDTO(levels: number[][], names: string[], u
if (diff) {
fields.push(
...[
{ name: 'selfRight', values: selfRightValues, config: { unit: valueUnit } },
{ name: 'valueRight', values: valueRightValues, config: { unit: valueUnit } },
{
name: 'selfRight',
values: selfRightValues,
config: { unit: valueUnit },
},
{
name: 'valueRight',
values: valueRightValues,
config: { unit: valueUnit },
},
]
);
}
Expand Down

0 comments on commit 72a054a

Please sign in to comment.