@parca/profile 0.16.117 → 0.16.119
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/dist/Callgraph/index.d.ts +0 -1
- package/dist/Callgraph/index.js +4 -4
- package/dist/Callgraph/utils.d.ts +1 -1
- package/dist/GraphTooltip/index.d.ts +1 -2
- package/dist/GraphTooltip/index.js +2 -2
- package/dist/MatchersInput/SuggestionItem.d.ts +0 -1
- package/dist/MatchersInput/SuggestionItem.js +1 -1
- package/dist/MatchersInput/SuggestionsList.d.ts +0 -1
- package/dist/MatchersInput/SuggestionsList.js +1 -1
- package/dist/MatchersInput/index.d.ts +1 -2
- package/dist/MatchersInput/index.js +2 -2
- package/dist/MetricsCircle/index.d.ts +0 -1
- package/dist/MetricsGraph/MetricsTooltip/index.d.ts +0 -1
- package/dist/MetricsGraph/MetricsTooltip/index.js +1 -1
- package/dist/MetricsGraph/index.d.ts +1 -2
- package/dist/MetricsGraph/index.js +2 -3
- package/dist/MetricsSeries/index.d.ts +0 -1
- package/dist/ProfileExplorer/ProfileExplorerCompare.d.ts +1 -2
- package/dist/ProfileExplorer/ProfileExplorerSingle.d.ts +1 -2
- package/dist/ProfileExplorer/ProfileExplorerSingle.js +1 -1
- package/dist/ProfileExplorer/index.d.ts +0 -1
- package/dist/ProfileExplorer/index.js +5 -5
- package/dist/ProfileIcicleGraph/IcicleGraph/ColorStackLegend.d.ts +0 -1
- package/dist/ProfileIcicleGraph/IcicleGraph/ColorStackLegend.js +3 -3
- package/dist/ProfileIcicleGraph/IcicleGraph/IcicleGraphNodes.d.ts +1 -1
- package/dist/ProfileIcicleGraph/IcicleGraph/IcicleGraphNodes.js +3 -3
- package/dist/ProfileIcicleGraph/IcicleGraph/index.d.ts +1 -1
- package/dist/ProfileIcicleGraph/IcicleGraph/index.js +7 -7
- package/dist/ProfileIcicleGraph/IcicleGraph/useColoredGraph.js +2 -2
- package/dist/ProfileIcicleGraph/IcicleGraph/useNodeColor.js +1 -1
- package/dist/ProfileIcicleGraph/IcicleGraph/utils.d.ts +2 -2
- package/dist/ProfileIcicleGraph/IcicleGraph/utils.js +1 -1
- package/dist/ProfileIcicleGraph/index.d.ts +1 -2
- package/dist/ProfileIcicleGraph/index.js +14 -2
- package/dist/ProfileMetricsGraph/index.d.ts +2 -3
- package/dist/ProfileMetricsGraph/index.js +4 -4
- package/dist/ProfileSelector/CompareButton.d.ts +0 -1
- package/dist/ProfileSelector/index.d.ts +1 -2
- package/dist/ProfileSelector/index.js +6 -6
- package/dist/ProfileSource.d.ts +1 -2
- package/dist/ProfileSource.js +2 -2
- package/dist/ProfileTypeSelector/index.d.ts +1 -2
- package/dist/ProfileView/FilterByFunctionButton.d.ts +0 -1
- package/dist/ProfileView/FilterByFunctionButton.js +2 -2
- package/dist/ProfileView/ViewSelector.d.ts +0 -1
- package/dist/ProfileView/ViewSelector.js +12 -0
- package/dist/ProfileView/index.d.ts +1 -3
- package/dist/ProfileView/index.js +9 -10
- package/dist/ProfileViewWithData.d.ts +1 -2
- package/dist/ProfileViewWithData.js +3 -3
- package/dist/TopTable/index.d.ts +2 -4
- package/dist/TopTable/index.js +2 -3
- package/dist/components/DiffLegend.d.ts +0 -1
- package/dist/components/DiffLegend.js +2 -2
- package/dist/components/ProfileShareButton/ResultBox.d.ts +0 -1
- package/dist/components/ProfileShareButton/ResultBox.js +2 -2
- package/dist/components/ProfileShareButton/index.d.ts +0 -1
- package/dist/components/ProfileShareButton/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/styles.css +1 -1
- package/dist/useQuery.d.ts +1 -1
- package/dist/utils.d.ts +1 -1
- package/package.json +9 -9
- package/src/Callgraph/index.tsx +9 -7
- package/src/Callgraph/utils.ts +3 -1
- package/src/GraphTooltip/index.tsx +7 -5
- package/src/MatchersInput/SuggestionItem.tsx +2 -1
- package/src/MatchersInput/SuggestionsList.tsx +4 -1
- package/src/MatchersInput/index.tsx +4 -3
- package/src/MetricsGraph/MetricsTooltip/index.tsx +4 -3
- package/src/MetricsGraph/index.tsx +10 -5
- package/src/ProfileExplorer/ProfileExplorerCompare.tsx +2 -2
- package/src/ProfileExplorer/ProfileExplorerSingle.tsx +3 -3
- package/src/ProfileExplorer/index.tsx +9 -6
- package/src/ProfileIcicleGraph/IcicleGraph/ColorStackLegend.tsx +6 -4
- package/src/ProfileIcicleGraph/IcicleGraph/IcicleGraphNodes.tsx +7 -5
- package/src/ProfileIcicleGraph/IcicleGraph/index.tsx +8 -9
- package/src/ProfileIcicleGraph/IcicleGraph/useColoredGraph.ts +12 -4
- package/src/ProfileIcicleGraph/IcicleGraph/useNodeColor.ts +3 -1
- package/src/ProfileIcicleGraph/IcicleGraph/utils.ts +4 -4
- package/src/ProfileIcicleGraph/ProfileIcicleGraph.stories.mdx +5 -3
- package/src/ProfileIcicleGraph/index.tsx +3 -3
- package/src/ProfileMetricsGraph/index.tsx +8 -5
- package/src/ProfileSelector/CompareButton.tsx +2 -0
- package/src/ProfileSelector/index.tsx +14 -11
- package/src/ProfileSource.tsx +4 -4
- package/src/ProfileTypeSelector/index.tsx +4 -3
- package/src/ProfileView/FilterByFunctionButton.tsx +4 -2
- package/src/ProfileView/ViewSelector.tsx +1 -2
- package/src/ProfileView/index.tsx +17 -13
- package/src/ProfileViewWithData.tsx +8 -7
- package/src/TopTable/index.tsx +10 -7
- package/src/__tests__/suffix_params.test.ts +1 -1
- package/src/components/DiffLegend.tsx +4 -2
- package/src/components/ProfileShareButton/ResultBox.tsx +4 -2
- package/src/components/ProfileShareButton/index.tsx +4 -1
- package/src/index.tsx +3 -1
- package/src/useGrpcQuery/index.ts +1 -1
- package/src/useQuery.tsx +2 -1
- package/src/utils.ts +2 -1
- package/dist/ProfileSVG.module.css +0 -3
- package/dist/ProfileView.styles.css +0 -3
- package/dist/TopTable.styles.css +0 -7
- package/src/ProfileSVG.module.css +0 -3
- package/src/ProfileView.styles.css +0 -3
- package/src/TopTable.styles.css +0 -7
|
@@ -11,9 +11,11 @@
|
|
|
11
11
|
// See the License for the specific language governing permissions and
|
|
12
12
|
// limitations under the License.
|
|
13
13
|
|
|
14
|
+
import {useMemo} from 'react';
|
|
15
|
+
|
|
14
16
|
import {diffColor} from '@parca/functions';
|
|
15
17
|
import {EVERYTHING_ELSE, selectDarkMode, selectStackColors, useAppSelector} from '@parca/store';
|
|
16
|
-
|
|
18
|
+
|
|
17
19
|
import type {ColoredFlamegraphNode} from './useColoredGraph';
|
|
18
20
|
|
|
19
21
|
interface Props {
|
|
@@ -11,16 +11,16 @@
|
|
|
11
11
|
// See the License for the specific language governing permissions and
|
|
12
12
|
// limitations under the License.
|
|
13
13
|
|
|
14
|
-
import {getLastItem} from '@parca/functions';
|
|
15
14
|
import {FlamegraphNode} from '@parca/client';
|
|
16
15
|
import {
|
|
16
|
+
Location,
|
|
17
17
|
Mapping,
|
|
18
18
|
Function as ParcaFunction,
|
|
19
|
-
Location,
|
|
20
19
|
} from '@parca/client/dist/parca/metastore/v1alpha1/metastore';
|
|
20
|
+
import {getLastItem} from '@parca/functions';
|
|
21
|
+
import {EVERYTHING_ELSE, FEATURE_TYPES, type Feature} from '@parca/store';
|
|
22
|
+
|
|
21
23
|
import {hexifyAddress} from '../../utils';
|
|
22
|
-
import {EVERYTHING_ELSE, FEATURE_TYPES} from '@parca/store';
|
|
23
|
-
import type {Feature} from '@parca/store';
|
|
24
24
|
|
|
25
25
|
export const getBinaryName = (
|
|
26
26
|
node: FlamegraphNode,
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import {action} from '@storybook/addon-actions';
|
|
2
|
-
import {Meta, Story
|
|
3
|
-
|
|
2
|
+
import {Canvas, Meta, Story} from '@storybook/addon-docs';
|
|
3
|
+
|
|
4
4
|
import {QueryResponse} from '@parca/client';
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
import ProfileIcicleGraph from './ProfileIcicleGraph';
|
|
6
7
|
import queryResponseDiff from './testdata/fg-diff.json';
|
|
8
|
+
import queryResponseSimple from './testdata/fg-simple.json';
|
|
7
9
|
|
|
8
10
|
<Meta title="template/ProfileIcicleGraph" component={ProfileIcicleGraph} />
|
|
9
11
|
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
// See the License for the specific language governing permissions and
|
|
12
12
|
// limitations under the License.
|
|
13
13
|
|
|
14
|
+
import {useEffect, useMemo} from 'react';
|
|
15
|
+
|
|
14
16
|
import {Flamegraph} from '@parca/client';
|
|
15
17
|
import {useContainerDimensions} from '@parca/dynamicsize';
|
|
18
|
+
import {selectQueryParam, type NavigateFunction} from '@parca/functions';
|
|
16
19
|
|
|
17
20
|
import DiffLegend from '../components/DiffLegend';
|
|
18
21
|
import IcicleGraph from './IcicleGraph';
|
|
19
|
-
import {selectQueryParam} from '@parca/functions';
|
|
20
|
-
import type {NavigateFunction} from '@parca/functions';
|
|
21
|
-
import {useEffect, useMemo} from 'react';
|
|
22
22
|
|
|
23
23
|
const numberFormatter = new Intl.NumberFormat('en-US');
|
|
24
24
|
|
|
@@ -11,15 +11,18 @@
|
|
|
11
11
|
// See the License for the specific language governing permissions and
|
|
12
12
|
// limitations under the License.
|
|
13
13
|
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
import {MergedProfileSelection, ProfileSelection} from '..';
|
|
17
|
-
import {QueryServiceClient, QueryRangeResponse, Label, Timestamp, Duration} from '@parca/client';
|
|
14
|
+
import {useEffect, useState} from 'react';
|
|
15
|
+
|
|
18
16
|
import {RpcError} from '@protobuf-ts/runtime-rpc';
|
|
17
|
+
|
|
18
|
+
import {Duration, Label, QueryRangeResponse, QueryServiceClient, Timestamp} from '@parca/client';
|
|
19
19
|
import {DateTimeRange, useGrpcMetadata, useParcaContext} from '@parca/components';
|
|
20
|
+
import {getStepDuration} from '@parca/functions';
|
|
20
21
|
import {Query} from '@parca/parser';
|
|
22
|
+
|
|
23
|
+
import {MergedProfileSelection, ProfileSelection} from '..';
|
|
24
|
+
import MetricsGraph from '../MetricsGraph';
|
|
21
25
|
import useDelayedLoader from '../useDelayedLoader';
|
|
22
|
-
import {getStepDuration} from '@parca/functions';
|
|
23
26
|
|
|
24
27
|
interface ProfileMetricsGraphProps {
|
|
25
28
|
queryClient: QueryServiceClient;
|
|
@@ -11,25 +11,28 @@
|
|
|
11
11
|
// See the License for the specific language governing permissions and
|
|
12
12
|
// limitations under the License.
|
|
13
13
|
|
|
14
|
-
import {Query} from '@parca/parser';
|
|
15
|
-
import {QueryServiceClient, ProfileTypesResponse} from '@parca/client';
|
|
16
|
-
import {getStepDuration, getStepDurationInMilliseconds} from '@parca/functions';
|
|
17
|
-
import {RpcError} from '@protobuf-ts/runtime-rpc';
|
|
18
|
-
import {MergedProfileSelection, ProfileSelection} from '..';
|
|
19
14
|
import React, {useEffect, useState} from 'react';
|
|
20
|
-
|
|
21
|
-
import
|
|
22
|
-
|
|
15
|
+
|
|
16
|
+
import {RpcError} from '@protobuf-ts/runtime-rpc';
|
|
17
|
+
|
|
18
|
+
import {ProfileTypesResponse, QueryServiceClient} from '@parca/client';
|
|
23
19
|
import {
|
|
24
|
-
Card,
|
|
25
|
-
DateTimeRangePicker,
|
|
26
|
-
DateTimeRange,
|
|
27
20
|
Button,
|
|
28
21
|
ButtonGroup,
|
|
22
|
+
Card,
|
|
23
|
+
DateTimeRange,
|
|
24
|
+
DateTimeRangePicker,
|
|
29
25
|
useGrpcMetadata,
|
|
30
26
|
} from '@parca/components';
|
|
27
|
+
import {getStepDuration, getStepDurationInMilliseconds} from '@parca/functions';
|
|
31
28
|
import {CloseIcon} from '@parca/icons';
|
|
29
|
+
import {Query} from '@parca/parser';
|
|
30
|
+
|
|
31
|
+
import {MergedProfileSelection, ProfileSelection} from '..';
|
|
32
|
+
import MatchersInput from '../MatchersInput/index';
|
|
33
|
+
import ProfileMetricsGraph from '../ProfileMetricsGraph';
|
|
32
34
|
import ProfileTypeSelector from '../ProfileTypeSelector/index';
|
|
35
|
+
import CompareButton from './CompareButton';
|
|
33
36
|
|
|
34
37
|
export interface QuerySelection {
|
|
35
38
|
expression: string;
|
package/src/ProfileSource.tsx
CHANGED
|
@@ -11,17 +11,17 @@
|
|
|
11
11
|
// See the License for the specific language governing permissions and
|
|
12
12
|
// limitations under the License.
|
|
13
13
|
|
|
14
|
-
import {formatDate} from '@parca/functions';
|
|
15
|
-
import {Query, ProfileType} from '@parca/parser';
|
|
16
14
|
import {
|
|
17
15
|
Label,
|
|
16
|
+
ProfileDiffSelection,
|
|
17
|
+
ProfileDiffSelection_Mode,
|
|
18
18
|
QueryRequest,
|
|
19
19
|
QueryRequest_Mode,
|
|
20
20
|
QueryRequest_ReportType,
|
|
21
|
-
ProfileDiffSelection,
|
|
22
|
-
ProfileDiffSelection_Mode,
|
|
23
21
|
Timestamp,
|
|
24
22
|
} from '@parca/client';
|
|
23
|
+
import {formatDate} from '@parca/functions';
|
|
24
|
+
import {ProfileType, Query} from '@parca/parser';
|
|
25
25
|
|
|
26
26
|
export interface ProfileSource {
|
|
27
27
|
QueryRequest: () => QueryRequest;
|
|
@@ -12,10 +12,11 @@
|
|
|
12
12
|
// limitations under the License.
|
|
13
13
|
|
|
14
14
|
import {useMemo} from 'react';
|
|
15
|
-
|
|
15
|
+
|
|
16
16
|
import {RpcError} from '@protobuf-ts/runtime-rpc';
|
|
17
|
-
|
|
18
|
-
import
|
|
17
|
+
|
|
18
|
+
import {ProfileType, ProfileTypesResponse} from '@parca/client';
|
|
19
|
+
import {Select, type SelectElement} from '@parca/components';
|
|
19
20
|
|
|
20
21
|
interface WellKnownProfile {
|
|
21
22
|
name: string;
|
|
@@ -11,10 +11,12 @@
|
|
|
11
11
|
// See the License for the specific language governing permissions and
|
|
12
12
|
// limitations under the License.
|
|
13
13
|
|
|
14
|
+
import {useCallback, useMemo, useState} from 'react';
|
|
15
|
+
|
|
16
|
+
import {Icon} from '@iconify/react';
|
|
17
|
+
|
|
14
18
|
import {Input, useURLState} from '@parca/components';
|
|
15
19
|
import type {NavigateFunction} from '@parca/functions';
|
|
16
|
-
import {Icon} from '@iconify/react';
|
|
17
|
-
import {useCallback, useMemo, useState} from 'react';
|
|
18
20
|
|
|
19
21
|
const FilterByFunctionButton = ({
|
|
20
22
|
navigateTo,
|
|
@@ -11,9 +11,8 @@
|
|
|
11
11
|
// See the License for the specific language governing permissions and
|
|
12
12
|
// limitations under the License.
|
|
13
13
|
|
|
14
|
+
import {Select, useURLState, type SelectElement} from '@parca/components';
|
|
14
15
|
import type {NavigateFunction} from '@parca/functions';
|
|
15
|
-
import {Select, useURLState} from '@parca/components';
|
|
16
|
-
import type {SelectElement} from '@parca/components';
|
|
17
16
|
import useUIFeatureFlag from '@parca/functions/useUIFeatureFlag';
|
|
18
17
|
|
|
19
18
|
interface Props {
|
|
@@ -12,29 +12,33 @@
|
|
|
12
12
|
// limitations under the License.
|
|
13
13
|
|
|
14
14
|
import {Profiler, useEffect, useMemo, useState} from 'react';
|
|
15
|
-
import {scaleLinear} from 'd3';
|
|
16
15
|
|
|
16
|
+
import {Icon} from '@iconify/react';
|
|
17
17
|
import cx from 'classnames';
|
|
18
|
+
import {scaleLinear} from 'd3';
|
|
19
|
+
import {
|
|
20
|
+
DragDropContext,
|
|
21
|
+
Draggable,
|
|
22
|
+
Droppable,
|
|
23
|
+
type DraggableLocation,
|
|
24
|
+
type DropResult,
|
|
25
|
+
} from 'react-beautiful-dnd';
|
|
26
|
+
|
|
27
|
+
import {Callgraph as CallgraphType, Flamegraph, QueryServiceClient, Top} from '@parca/client';
|
|
28
|
+
import {Button, Card, KeyDownProvider, useParcaContext, useURLState} from '@parca/components';
|
|
29
|
+
import {useContainerDimensions} from '@parca/dynamicsize';
|
|
18
30
|
import {getNewSpanColor} from '@parca/functions';
|
|
19
31
|
import {CloseIcon} from '@parca/icons';
|
|
20
|
-
import {
|
|
21
|
-
import {QueryServiceClient, Flamegraph, Top, Callgraph as CallgraphType} from '@parca/client';
|
|
22
|
-
import {Button, Card, useParcaContext, KeyDownProvider, useURLState} from '@parca/components';
|
|
23
|
-
import {useContainerDimensions} from '@parca/dynamicsize';
|
|
24
|
-
import {useAppSelector, selectDarkMode} from '@parca/store';
|
|
25
|
-
import {DragDropContext, Droppable, Draggable} from 'react-beautiful-dnd';
|
|
26
|
-
import type {DropResult, DraggableLocation} from 'react-beautiful-dnd';
|
|
32
|
+
import {selectDarkMode, useAppSelector} from '@parca/store';
|
|
27
33
|
|
|
28
34
|
import {Callgraph} from '../';
|
|
29
|
-
import ProfileShareButton from '../components/ProfileShareButton';
|
|
30
|
-
import FilterByFunctionButton from './FilterByFunctionButton';
|
|
31
|
-
import ViewSelector from './ViewSelector';
|
|
32
35
|
import ProfileIcicleGraph, {ResizeHandler} from '../ProfileIcicleGraph';
|
|
33
36
|
import {ProfileSource} from '../ProfileSource';
|
|
34
37
|
import {TopTable} from '../TopTable';
|
|
38
|
+
import ProfileShareButton from '../components/ProfileShareButton';
|
|
35
39
|
import useDelayedLoader from '../useDelayedLoader';
|
|
36
|
-
|
|
37
|
-
import '
|
|
40
|
+
import FilterByFunctionButton from './FilterByFunctionButton';
|
|
41
|
+
import ViewSelector from './ViewSelector';
|
|
38
42
|
|
|
39
43
|
type NavigateFunction = (path: string, queryParams: any, options?: {replace?: boolean}) => void;
|
|
40
44
|
|
|
@@ -12,16 +12,17 @@
|
|
|
12
12
|
// limitations under the License.
|
|
13
13
|
|
|
14
14
|
import {useEffect, useState} from 'react';
|
|
15
|
-
|
|
16
|
-
import {
|
|
17
|
-
import {ProfileView} from './ProfileView';
|
|
18
|
-
import {ProfileSource} from './ProfileSource';
|
|
19
|
-
import {downloadPprof} from './utils';
|
|
15
|
+
|
|
16
|
+
import {QueryRequest_ReportType, QueryServiceClient} from '@parca/client';
|
|
20
17
|
import {useGrpcMetadata, useParcaContext, useURLState} from '@parca/components';
|
|
21
|
-
import {saveAsBlob} from '@parca/functions';
|
|
22
|
-
import type {NavigateFunction} from '@parca/functions';
|
|
18
|
+
import {saveAsBlob, type NavigateFunction} from '@parca/functions';
|
|
23
19
|
import useUserPreference, {USER_PREFERENCES} from '@parca/functions/useUserPreference';
|
|
24
20
|
|
|
21
|
+
import {ProfileSource} from './ProfileSource';
|
|
22
|
+
import {ProfileView} from './ProfileView';
|
|
23
|
+
import {useQuery} from './useQuery';
|
|
24
|
+
import {downloadPprof} from './utils';
|
|
25
|
+
|
|
25
26
|
interface ProfileViewWithDataProps {
|
|
26
27
|
queryClient: QueryServiceClient;
|
|
27
28
|
profileSource: ProfileSource;
|
package/src/TopTable/index.tsx
CHANGED
|
@@ -13,17 +13,20 @@
|
|
|
13
13
|
|
|
14
14
|
import {useCallback, useMemo} from 'react';
|
|
15
15
|
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
import {TopNode, TopNodeMeta
|
|
16
|
+
import {createColumnHelper, type ColumnDef} from '@tanstack/react-table';
|
|
17
|
+
|
|
18
|
+
import {Top, TopNode, TopNodeMeta} from '@parca/client';
|
|
19
19
|
import {Button, Table, useURLState} from '@parca/components';
|
|
20
|
-
import {
|
|
21
|
-
|
|
20
|
+
import {
|
|
21
|
+
getLastItem,
|
|
22
|
+
isSearchMatch,
|
|
23
|
+
parseParams,
|
|
24
|
+
valueFormatter,
|
|
25
|
+
type NavigateFunction,
|
|
26
|
+
} from '@parca/functions';
|
|
22
27
|
|
|
23
28
|
import {hexifyAddress} from '../utils';
|
|
24
29
|
|
|
25
|
-
import '../TopTable.styles.css';
|
|
26
|
-
|
|
27
30
|
interface TopTableProps {
|
|
28
31
|
loading: boolean;
|
|
29
32
|
data?: Top;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
// See the License for the specific language governing permissions and
|
|
12
12
|
// limitations under the License.
|
|
13
13
|
|
|
14
|
-
import {
|
|
14
|
+
import {ParseLabels, SuffixParams} from '../ProfileSource';
|
|
15
15
|
|
|
16
16
|
test('prefixes keys', () => {
|
|
17
17
|
const input = {key: 'value'};
|
|
@@ -12,11 +12,13 @@
|
|
|
12
12
|
// limitations under the License.
|
|
13
13
|
|
|
14
14
|
import {Fragment, useState} from 'react';
|
|
15
|
+
|
|
15
16
|
import {Popover, Transition} from '@headlessui/react';
|
|
16
|
-
import {useAppSelector, selectDarkMode} from '@parca/store';
|
|
17
|
-
import {getNewSpanColor, getIncreasedSpanColor, getReducedSpanColor} from '@parca/functions';
|
|
18
17
|
import {usePopper} from 'react-popper';
|
|
19
18
|
|
|
19
|
+
import {getIncreasedSpanColor, getNewSpanColor, getReducedSpanColor} from '@parca/functions';
|
|
20
|
+
import {selectDarkMode, useAppSelector} from '@parca/store';
|
|
21
|
+
|
|
20
22
|
const transparencyValues = [-100, -80, -60, -40, -20, 0, 20, 40, 60, 80, 100];
|
|
21
23
|
|
|
22
24
|
const DiffLegendBar = ({
|
|
@@ -12,11 +12,13 @@
|
|
|
12
12
|
// limitations under the License.
|
|
13
13
|
|
|
14
14
|
import {useState} from 'react';
|
|
15
|
-
|
|
15
|
+
|
|
16
16
|
import {Icon} from '@iconify/react';
|
|
17
|
-
import
|
|
17
|
+
import cx from 'classnames';
|
|
18
18
|
import {CopyToClipboard} from 'react-copy-to-clipboard';
|
|
19
19
|
|
|
20
|
+
import {Button} from '@parca/components';
|
|
21
|
+
|
|
20
22
|
interface Props {
|
|
21
23
|
value: string;
|
|
22
24
|
className?: string;
|
|
@@ -12,9 +12,12 @@
|
|
|
12
12
|
// limitations under the License.
|
|
13
13
|
|
|
14
14
|
import {useState} from 'react';
|
|
15
|
-
|
|
15
|
+
|
|
16
16
|
import {Icon} from '@iconify/react';
|
|
17
|
+
|
|
17
18
|
import {QueryRequest, QueryServiceClient} from '@parca/client';
|
|
19
|
+
import {Button, Modal, useGrpcMetadata} from '@parca/components';
|
|
20
|
+
|
|
18
21
|
import ResultBox from './ResultBox';
|
|
19
22
|
|
|
20
23
|
interface Props {
|
package/src/index.tsx
CHANGED
|
@@ -12,11 +12,13 @@
|
|
|
12
12
|
// limitations under the License.
|
|
13
13
|
|
|
14
14
|
import {lazy} from 'react';
|
|
15
|
+
|
|
16
|
+
import {QueryServiceClient} from '@parca/client';
|
|
15
17
|
import type {Props as CallgraphProps} from '@parca/profile/src/Callgraph';
|
|
18
|
+
|
|
16
19
|
import ProfileExplorer from './ProfileExplorer';
|
|
17
20
|
import ProfileTypeSelector from './ProfileTypeSelector';
|
|
18
21
|
import type {FlamegraphData, TopTableData} from './ProfileView';
|
|
19
|
-
import {QueryServiceClient} from '@parca/client';
|
|
20
22
|
|
|
21
23
|
export * from './ProfileIcicleGraph/IcicleGraph';
|
|
22
24
|
export * from './ProfileIcicleGraph';
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
// See the License for the specific language governing permissions and
|
|
12
12
|
// limitations under the License.
|
|
13
13
|
|
|
14
|
-
import {
|
|
14
|
+
import {UseQueryResult, useQuery} from 'react-query';
|
|
15
15
|
|
|
16
16
|
interface Props<IRes> {
|
|
17
17
|
key: string | any[];
|
package/src/useQuery.tsx
CHANGED
|
@@ -11,8 +11,9 @@
|
|
|
11
11
|
// See the License for the specific language governing permissions and
|
|
12
12
|
// limitations under the License.
|
|
13
13
|
|
|
14
|
-
import {QueryServiceClient, QueryResponse, QueryRequest_ReportType} from '@parca/client';
|
|
15
14
|
import {RpcError} from '@protobuf-ts/runtime-rpc';
|
|
15
|
+
|
|
16
|
+
import {QueryRequest_ReportType, QueryResponse, QueryServiceClient} from '@parca/client';
|
|
16
17
|
import {useGrpcMetadata} from '@parca/components';
|
|
17
18
|
|
|
18
19
|
import {ProfileSource} from './ProfileSource';
|
package/src/utils.ts
CHANGED
|
@@ -11,9 +11,10 @@
|
|
|
11
11
|
// See the License for the specific language governing permissions and
|
|
12
12
|
// limitations under the License.
|
|
13
13
|
|
|
14
|
-
import {QueryRequest, QueryRequest_ReportType, QueryServiceClient} from '@parca/client';
|
|
15
14
|
import type {RpcMetadata} from '@protobuf-ts/runtime-rpc';
|
|
16
15
|
|
|
16
|
+
import {QueryRequest, QueryRequest_ReportType, QueryServiceClient} from '@parca/client';
|
|
17
|
+
|
|
17
18
|
export const hexifyAddress = (address?: string): string => {
|
|
18
19
|
if (address == null) {
|
|
19
20
|
return '';
|
package/dist/TopTable.styles.css
DELETED