@parca/profile 0.19.111 → 0.19.113
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 +8 -0
- package/dist/GraphTooltipArrow/Content.d.ts +2 -2
- package/dist/GraphTooltipArrow/Content.d.ts.map +1 -1
- package/dist/GraphTooltipArrow/DockedGraphTooltip/index.d.ts +2 -2
- package/dist/GraphTooltipArrow/DockedGraphTooltip/index.d.ts.map +1 -1
- package/dist/GraphTooltipArrow/useGraphTooltip/index.d.ts +2 -2
- package/dist/GraphTooltipArrow/useGraphTooltip/index.d.ts.map +1 -1
- package/dist/GraphTooltipArrow/useGraphTooltipMetaInfo/index.d.ts +2 -2
- package/dist/GraphTooltipArrow/useGraphTooltipMetaInfo/index.d.ts.map +1 -1
- package/dist/ProfileFlameGraph/FlameGraphArrow/ContextMenu.d.ts +2 -2
- package/dist/ProfileFlameGraph/FlameGraphArrow/ContextMenu.d.ts.map +1 -1
- package/dist/ProfileFlameGraph/FlameGraphArrow/ContextMenuWrapper.d.ts +2 -2
- package/dist/ProfileFlameGraph/FlameGraphArrow/ContextMenuWrapper.d.ts.map +1 -1
- package/dist/ProfileFlameGraph/FlameGraphArrow/FlameGraphNodes.d.ts +2 -2
- package/dist/ProfileFlameGraph/FlameGraphArrow/FlameGraphNodes.d.ts.map +1 -1
- package/dist/ProfileFlameGraph/FlameGraphArrow/TooltipContext.d.ts +3 -3
- package/dist/ProfileFlameGraph/FlameGraphArrow/TooltipContext.d.ts.map +1 -1
- package/dist/ProfileFlameGraph/FlameGraphArrow/index.d.ts.map +1 -1
- package/dist/ProfileFlameGraph/FlameGraphArrow/index.js +3 -2
- package/dist/ProfileFlameGraph/FlameGraphArrow/useMappingList.d.ts +1 -1
- package/dist/ProfileFlameGraph/FlameGraphArrow/useMappingList.d.ts.map +1 -1
- package/dist/ProfileFlameGraph/FlameGraphArrow/useMappingList.js +16 -16
- package/dist/ProfileFlameGraph/FlameGraphArrow/useVisibleNodes.d.ts +2 -2
- package/dist/ProfileFlameGraph/FlameGraphArrow/useVisibleNodes.d.ts.map +1 -1
- package/dist/ProfileFlameGraph/FlameGraphArrow/utils.d.ts +5 -5
- package/dist/ProfileFlameGraph/FlameGraphArrow/utils.d.ts.map +1 -1
- package/dist/ProfileView/hooks/useProfileMetadata.d.ts +2 -2
- package/dist/ProfileView/hooks/useProfileMetadata.d.ts.map +1 -1
- package/dist/ProfileView/hooks/useProfileMetadata.js +6 -2
- package/dist/Sandwich/components/CallersSection.d.ts.map +1 -1
- package/dist/Sandwich/components/CallersSection.js +5 -2
- package/dist/Sandwich/utils/processRowData.d.ts +1 -1
- package/dist/Sandwich/utils/processRowData.d.ts.map +1 -1
- package/dist/SourceView/Highlighter.js +1 -1
- package/dist/SourceView/index.d.ts.map +1 -1
- package/dist/SourceView/index.js +7 -9
- package/dist/Table/index.d.ts.map +1 -1
- package/dist/Table/index.js +3 -2
- package/dist/Table/utils/functions.d.ts +3 -3
- package/dist/Table/utils/functions.d.ts.map +1 -1
- package/dist/Table/utils/functions.js +3 -3
- package/dist/utils.d.ts +6 -0
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +8 -0
- package/package.json +3 -3
- package/src/GraphTooltipArrow/Content.tsx +3 -3
- package/src/GraphTooltipArrow/DockedGraphTooltip/index.tsx +2 -2
- package/src/GraphTooltipArrow/useGraphTooltip/index.ts +2 -2
- package/src/GraphTooltipArrow/useGraphTooltipMetaInfo/index.ts +2 -2
- package/src/ProfileFlameGraph/FlameGraphArrow/ContextMenu.tsx +2 -2
- package/src/ProfileFlameGraph/FlameGraphArrow/ContextMenuWrapper.tsx +2 -2
- package/src/ProfileFlameGraph/FlameGraphArrow/FlameGraphNodes.tsx +2 -2
- package/src/ProfileFlameGraph/FlameGraphArrow/TooltipContext.tsx +3 -3
- package/src/ProfileFlameGraph/FlameGraphArrow/index.tsx +4 -3
- package/src/ProfileFlameGraph/FlameGraphArrow/useMappingList.ts +19 -19
- package/src/ProfileFlameGraph/FlameGraphArrow/useVisibleNodes.ts +4 -6
- package/src/ProfileFlameGraph/FlameGraphArrow/utils.ts +6 -10
- package/src/ProfileView/hooks/useProfileMetadata.ts +8 -4
- package/src/Sandwich/components/CallersSection.tsx +6 -3
- package/src/Sandwich/utils/processRowData.ts +1 -1
- package/src/SourceView/Highlighter.tsx +1 -1
- package/src/SourceView/index.tsx +7 -9
- package/src/Table/index.tsx +3 -3
- package/src/Table/utils/functions.ts +9 -9
- package/src/utils.ts +9 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.19.113](https://github.com/parca-dev/parca/compare/@parca/profile@0.19.112...@parca/profile@0.19.113) (2026-01-29)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @parca/profile
|
|
9
|
+
|
|
10
|
+
## [0.19.112](https://github.com/parca-dev/parca/compare/@parca/profile@0.19.111...@parca/profile@0.19.112) (2026-01-15)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @parca/profile
|
|
13
|
+
|
|
6
14
|
## 0.19.111 (2026-01-15)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @parca/profile
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Table } from '
|
|
2
|
+
import { Table } from '@uwdata/flechette';
|
|
3
3
|
import { ProfileType } from '@parca/parser';
|
|
4
4
|
interface GraphTooltipArrowContentProps {
|
|
5
|
-
table: Table
|
|
5
|
+
table: Table;
|
|
6
6
|
profileType?: ProfileType;
|
|
7
7
|
unit?: string;
|
|
8
8
|
total: bigint;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../src/GraphTooltipArrow/Content.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAC,KAAK,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../src/GraphTooltipArrow/Content.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAQ1C,UAAU,6BAA6B;IACrC,KAAK,EAAE,KAAK,CAAC;IACb,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,EAAE,OAAO,CAAC;CAC1B;AAMD,QAAA,MAAM,wBAAwB,GAAI,sFAS/B,6BAA6B,KAAG,KAAK,CAAC,GAAG,CAAC,OA+E5C,CAAC;AAqFF,eAAe,wBAAwB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/GraphTooltipArrow/DockedGraphTooltip/index.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAC,KAAK,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/GraphTooltipArrow/DockedGraphTooltip/index.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAKxC,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAO1C,UAAU,KAAK;IACb,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,OAAO,CAAC;CAC1B;AAuBD,eAAO,MAAM,kBAAkB,GAAI,6EAQhC,KAAK,KAAG,GAAG,CAAC,OAuGd,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/GraphTooltipArrow/useGraphTooltip/index.ts"],"names":[],"mappings":"AAaA,OAAO,EAAC,KAAK,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/GraphTooltipArrow/useGraphTooltip/index.ts"],"names":[],"mappings":"AAaA,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAW1C,UAAU,KAAK;IACb,KAAK,EAAE,KAAK,CAAC;IACb,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,OAAO,CAAC;IACzB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CACpB;AAED,UAAU,gBAAgB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,eAAe,GAAI,6EAQ7B,KAAK,KAAG,gBAAgB,GAAG,IA4C7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/GraphTooltipArrow/useGraphTooltipMetaInfo/index.ts"],"names":[],"mappings":"AAaA,OAAO,EAAC,KAAK,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/GraphTooltipArrow/useGraphTooltipMetaInfo/index.ts"],"names":[],"mappings":"AAaA,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAqBxC,UAAU,KAAK;IACb,KAAK,EAAE,KAAK,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb;AAED,UAAU,wBAAwB;IAChC,UAAU,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACpC,gBAAgB,EAAE,MAAM,CAAC;IACzB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IACxB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,eAAO,MAAM,uBAAuB,GAAI,gBAAc,KAAK,KAAG,wBA8F7D,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Table } from '
|
|
1
|
+
import { Table } from '@uwdata/flechette';
|
|
2
2
|
import { ProfileType } from '@parca/parser';
|
|
3
3
|
interface ContextMenuProps {
|
|
4
4
|
menuId: string;
|
|
5
|
-
table: Table
|
|
5
|
+
table: Table;
|
|
6
6
|
profileType?: ProfileType;
|
|
7
7
|
unit?: string;
|
|
8
8
|
total: bigint;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextMenu.d.ts","sourceRoot":"","sources":["../../../src/ProfileFlameGraph/FlameGraphArrow/ContextMenu.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAC,KAAK,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"ContextMenu.d.ts","sourceRoot":"","sources":["../../../src/ProfileFlameGraph/FlameGraphArrow/ContextMenu.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAOxC,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAQ1C,UAAU,gBAAgB;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,KAAK,CAAC;IACb,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,eAAe,EAAE,OAAO,CAAC;IACzB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,QAAA,MAAM,WAAW,GAAI,kIAalB,gBAAgB,KAAG,GAAG,CAAC,OAyOzB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Table } from '
|
|
1
|
+
import { Table } from '@uwdata/flechette';
|
|
2
2
|
import { ProfileType } from '@parca/parser';
|
|
3
3
|
interface ContextMenuWrapperProps {
|
|
4
4
|
menuId: string;
|
|
5
|
-
table: Table
|
|
5
|
+
table: Table;
|
|
6
6
|
total: bigint;
|
|
7
7
|
totalUnfiltered: bigint;
|
|
8
8
|
profileType?: ProfileType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextMenuWrapper.d.ts","sourceRoot":"","sources":["../../../src/ProfileFlameGraph/FlameGraphArrow/ContextMenuWrapper.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAC,KAAK,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"ContextMenuWrapper.d.ts","sourceRoot":"","sources":["../../../src/ProfileFlameGraph/FlameGraphArrow/ContextMenuWrapper.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAI1C,UAAU,uBAAuB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,eAAe,EAAE,OAAO,CAAC;IACzB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,IAAI,KAAK,IAAI,CAAC;CACtD;AAED,QAAA,MAAM,kBAAkB,2HAwBvB,CAAC;AAIF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Table } from '
|
|
2
|
+
import { Table } from '@uwdata/flechette';
|
|
3
3
|
import 'react-contexify/dist/ReactContexify.css';
|
|
4
4
|
import { ProfileSource } from '../../ProfileSource';
|
|
5
5
|
export declare const RowHeight = 26;
|
|
@@ -9,7 +9,7 @@ export interface colorByColors {
|
|
|
9
9
|
export interface FlameNodeProps {
|
|
10
10
|
height: number;
|
|
11
11
|
totalWidth: number;
|
|
12
|
-
table: Table
|
|
12
|
+
table: Table;
|
|
13
13
|
row: number;
|
|
14
14
|
colors: colorByColors;
|
|
15
15
|
colorBy: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlameGraphNodes.d.ts","sourceRoot":"","sources":["../../../src/ProfileFlameGraph/FlameGraphArrow/FlameGraphNodes.tsx"],"names":[],"mappings":"AAaA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAElD,OAAO,EAAC,KAAK,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"FlameGraphNodes.d.ts","sourceRoot":"","sources":["../../../src/ProfileFlameGraph/FlameGraphArrow/FlameGraphNodes.tsx"],"names":[],"mappings":"AAaA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAElD,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAKxC,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAelD,eAAO,MAAM,SAAS,KAAK,CAAC;AAE5B,MAAM,WAAW,aAAa;IAC5B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,KAAK,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,aAAa,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,EAAE,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1D,oBAAoB,EAAE,MAAM,CAAC;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;IACtB,aAAa,EAAE,aAAa,CAAC;IAC7B,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;CACnD;AAED,eAAO,MAAM,eAAe;;;CAG3B,CAAC;AACF,eAAO,MAAM,oBAAoB;;;;CAIhC,CAAC;AAEF,eAAO,MAAM,SAAS,4CA6PrB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Table } from '
|
|
2
|
+
import { Table } from '@uwdata/flechette';
|
|
3
3
|
import { ProfileType } from '@parca/parser';
|
|
4
4
|
interface TooltipState {
|
|
5
5
|
row: number | null;
|
|
@@ -7,7 +7,7 @@ interface TooltipState {
|
|
|
7
7
|
y: number;
|
|
8
8
|
}
|
|
9
9
|
interface TooltipContextValue {
|
|
10
|
-
table: Table
|
|
10
|
+
table: Table;
|
|
11
11
|
total: bigint;
|
|
12
12
|
totalUnfiltered: bigint;
|
|
13
13
|
profileType?: ProfileType;
|
|
@@ -20,7 +20,7 @@ interface TooltipContextValue {
|
|
|
20
20
|
export declare const useTooltipContext: () => TooltipContextValue;
|
|
21
21
|
interface TooltipProviderProps {
|
|
22
22
|
children: React.ReactNode;
|
|
23
|
-
table: Table
|
|
23
|
+
table: Table;
|
|
24
24
|
total: bigint;
|
|
25
25
|
totalUnfiltered: bigint;
|
|
26
26
|
profileType?: ProfileType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TooltipContext.d.ts","sourceRoot":"","sources":["../../../src/ProfileFlameGraph/FlameGraphArrow/TooltipContext.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAgE,MAAM,OAAO,CAAC;AAErF,OAAO,EAAC,KAAK,EAAC,MAAM,
|
|
1
|
+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AAC,oBAAoB,CAqC1D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ProfileFlameGraph/FlameGraphArrow/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAQN,MAAM,OAAO,CAAC;AAKf,OAAO,EAAC,eAAe,EAAC,MAAM,eAAe,CAAC;AAG9C,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAE1C,OAAO,EAAC,KAAK,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ProfileFlameGraph/FlameGraphArrow/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAQN,MAAM,OAAO,CAAC;AAKf,OAAO,EAAC,eAAe,EAAC,MAAM,eAAe,CAAC;AAG9C,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAE1C,OAAO,EAAC,KAAK,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAKlD,OAAO,EAAuB,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAMtE,OAAO,EACL,gBAAgB,EAMjB,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,iBAAiB,gBAAgB,CAAC;AAC/C,eAAO,MAAM,kBAAkB,iBAAiB,CAAC;AACjD,eAAO,MAAM,sBAAsB,qBAAqB,CAAC;AACzD,eAAO,MAAM,sBAAsB,qBAAqB,CAAC;AACzD,eAAO,MAAM,mBAAmB,kBAAkB,CAAC;AACnD,eAAO,MAAM,aAAa,YAAY,CAAC;AACvC,eAAO,MAAM,eAAe,cAAc,CAAC;AAC3C,eAAO,MAAM,cAAc,aAAa,CAAC;AACzC,eAAO,MAAM,sBAAsB,qBAAqB,CAAC;AACzD,eAAO,MAAM,mBAAmB,kBAA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AqB,WAAW,KAC/B,aAQF,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC5B,eAAe,MAAM,EAAE,EACvB,YAAY,OAAO,EACnB,qBAAqB,WAAW,KAC/B,aAQF,CAAC;AAIF,eAAO,MAAM,eAAe,kDAkR1B,CAAC;AAEH,eAAe,eAAe,CAAC"}
|
|
@@ -12,13 +12,14 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
import { memo, useCallback, useDeferredValue, useEffect, useMemo, useRef, useState, } from 'react';
|
|
15
|
-
import { tableFromIPC } from '
|
|
15
|
+
import { tableFromIPC } from '@uwdata/flechette';
|
|
16
16
|
import { useContextMenu } from 'react-contexify';
|
|
17
17
|
import { FlameGraphSkeleton, SandwichFlameGraphSkeleton, useParcaContext } from '@parca/components';
|
|
18
18
|
import { USER_PREFERENCES, useCurrentColorProfile, useUserPreference } from '@parca/hooks';
|
|
19
19
|
import { getColorForFeature, selectDarkMode, useAppSelector } from '@parca/store';
|
|
20
20
|
import { useProfileFilters } from '../../ProfileView/components/ProfileFilters/useProfileFilters';
|
|
21
21
|
import { useProfileViewContext } from '../../ProfileView/context/ProfileViewContext';
|
|
22
|
+
import { alignedUint8Array } from '../../utils';
|
|
22
23
|
import ContextMenuWrapper from './ContextMenuWrapper';
|
|
23
24
|
import { FlameNode, RowHeight } from './FlameGraphNodes';
|
|
24
25
|
import { MemoizedTooltip } from './MemoizedTooltip';
|
|
@@ -72,7 +73,7 @@ export const FlameGraphArrow = memo(function FlameGraphArrow({ arrow, total, fil
|
|
|
72
73
|
const isDarkMode = useAppSelector(selectDarkMode);
|
|
73
74
|
const { perf } = useParcaContext();
|
|
74
75
|
const table = useMemo(() => {
|
|
75
|
-
const result = tableFromIPC(arrow.record);
|
|
76
|
+
const result = tableFromIPC(alignedUint8Array(arrow.record), { useBigInt: true });
|
|
76
77
|
if (perf?.setMeasurement != null) {
|
|
77
78
|
perf.setMeasurement('flamegraph.node_count', result.numRows);
|
|
78
79
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMappingList.d.ts","sourceRoot":"","sources":["../../../src/ProfileFlameGraph/FlameGraphArrow/useMappingList.ts"],"names":[],"mappings":"AAeA,OAAO,
|
|
1
|
+
{"version":3,"file":"useMappingList.d.ts","sourceRoot":"","sources":["../../../src/ProfileFlameGraph/FlameGraphArrow/useMappingList.ts"],"names":[],"mappings":"AAeA,OAAO,EAAS,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAOhD,QAAA,MAAM,cAAc,GAAI,UAAU,MAAM,EAAE,GAAG,SAAS,KAAG,MAAM,EAsB9D,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,OAAO,KAAK,GAAG,IAAI,KAAG,MAAM,EAyB5D,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -36,23 +36,23 @@ export const useFilenamesList = (table) => {
|
|
|
36
36
|
if (table === null) {
|
|
37
37
|
return [];
|
|
38
38
|
}
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
39
|
+
const filenamesColumn = table.getChild(FIELD_FUNCTION_FILE_NAME);
|
|
40
|
+
if (filenamesColumn === null) {
|
|
41
|
+
return [];
|
|
42
|
+
}
|
|
43
|
+
// Access dictionary directly instead of iterating all rows
|
|
44
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
45
|
+
const dictionary = filenamesColumn.data[0]?.dictionary;
|
|
46
|
+
if (dictionary == null) {
|
|
47
|
+
return [''];
|
|
48
|
+
}
|
|
49
|
+
const filenames = Array.from(dictionary.toArray())
|
|
50
|
+
.map(value => {
|
|
51
|
+
const fn = arrowToString(value);
|
|
52
|
+
return fn != null ? getLastItem(fn) ?? '' : '';
|
|
52
53
|
})
|
|
53
|
-
.
|
|
54
|
-
|
|
55
|
-
filenames.sort((a, b) => a.localeCompare(b));
|
|
54
|
+
.concat('') // Add empty string for "Everything else"
|
|
55
|
+
.sort((a, b) => a.localeCompare(b));
|
|
56
56
|
return filenames;
|
|
57
57
|
};
|
|
58
58
|
export default useMappingList;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Table } from '
|
|
1
|
+
import { Table } from '@uwdata/flechette';
|
|
2
2
|
import { ViewportState } from './useScrollViewport';
|
|
3
3
|
export interface UseVisibleNodesParams {
|
|
4
|
-
table: Table
|
|
4
|
+
table: Table;
|
|
5
5
|
viewport: ViewportState;
|
|
6
6
|
total: bigint;
|
|
7
7
|
width: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useVisibleNodes.d.ts","sourceRoot":"","sources":["../../../src/ProfileFlameGraph/FlameGraphArrow/useVisibleNodes.ts"],"names":[],"mappings":"AAeA,OAAO,EAAC,KAAK,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"useVisibleNodes.d.ts","sourceRoot":"","sources":["../../../src/ProfileFlameGraph/FlameGraphArrow/useVisibleNodes.ts"],"names":[],"mappings":"AAeA,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAIxC,OAAO,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;AA+BlD,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,KAAK,CAAC;IACb,QAAQ,EAAE,aAAa,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,eAAe,GAAI,iEAO7B,qBAAqB,KAAG,MAAM,EA4HhC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Column, Table } from '@uwdata/flechette';
|
|
2
2
|
import { type BinaryFeature, type FilenameFeature } from '@parca/store';
|
|
3
3
|
import { ProfileSource } from '../../ProfileSource';
|
|
4
4
|
import { BigIntDuo } from '../../utils';
|
|
5
|
-
export declare function nodeLabel(table: Table
|
|
5
|
+
export declare function nodeLabel(table: Table, row: number, showBinaryName: boolean): string;
|
|
6
6
|
export declare const extractFeature: (mapping: string) => BinaryFeature;
|
|
7
7
|
export declare const extractFilenameFeature: (filename: string) => FilenameFeature;
|
|
8
8
|
export declare const getTextForCumulative: (hoveringNodeCumulative: bigint, totalUnfiltered: bigint, total: bigint, unit: string) => string;
|
|
@@ -18,7 +18,7 @@ export interface CurrentPathFrame {
|
|
|
18
18
|
inlined: boolean;
|
|
19
19
|
labels?: string;
|
|
20
20
|
}
|
|
21
|
-
export declare const getCurrentPathFrameData: (table: Table
|
|
22
|
-
export declare function isCurrentPathFrameMatch(table: Table
|
|
23
|
-
export declare function getMaxDepth(depthColumn:
|
|
21
|
+
export declare const getCurrentPathFrameData: (table: Table, row: number) => CurrentPathFrame;
|
|
22
|
+
export declare function isCurrentPathFrameMatch(table: Table, row: number, b: CurrentPathFrame): boolean;
|
|
23
|
+
export declare function getMaxDepth(depthColumn: Column<number> | null): number;
|
|
24
24
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/ProfileFlameGraph/FlameGraphArrow/utils.ts"],"names":[],"mappings":"AAaA,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/ProfileFlameGraph/FlameGraphArrow/utils.ts"],"names":[],"mappings":"AAaA,OAAO,EAAC,MAAM,EAAE,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAIL,KAAK,aAAa,EAClB,KAAK,eAAe,EACrB,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAsB,aAAa,E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|
|
1
|
-
import { Table
|
|
1
|
+
import { Table } from '@uwdata/flechette';
|
|
2
2
|
import { FlamegraphArrow } from '@parca/client';
|
|
3
3
|
interface UseProfileMetadataProps {
|
|
4
4
|
flamegraphArrow?: FlamegraphArrow;
|
|
@@ -7,7 +7,7 @@ interface UseProfileMetadataProps {
|
|
|
7
7
|
colorBy: string;
|
|
8
8
|
}
|
|
9
9
|
export declare const useProfileMetadata: ({ flamegraphArrow, metadataMappingFiles, metadataLoading, colorBy, }: UseProfileMetadataProps) => {
|
|
10
|
-
table:
|
|
10
|
+
table: Table | null;
|
|
11
11
|
mappingsList: string[];
|
|
12
12
|
filenamesList: string[];
|
|
13
13
|
colorMappings: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useProfileMetadata.d.ts","sourceRoot":"","sources":["../../../src/ProfileView/hooks/useProfileMetadata.ts"],"names":[],"mappings":"AAeA,OAAO,EAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"useProfileMetadata.d.ts","sourceRoot":"","sources":["../../../src/ProfileView/hooks/useProfileMetadata.ts"],"names":[],"mappings":"AAeA,OAAO,EAAC,KAAK,EAAe,MAAM,mBAAmB,CAAC;AAEtD,OAAO,EAAC,eAAe,EAAC,MAAM,eAAe,CAAC;AAO9C,UAAU,uBAAuB;IAC/B,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;IAChC,eAAe,EAAE,OAAO,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,kBAAkB,GAAI,sEAKhC,uBAAuB,KAAG;IAC3B,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,eAAe,EAAE,OAAO,CAAC;CAqB1B,CAAC"}
|
|
@@ -11,11 +11,15 @@
|
|
|
11
11
|
// See the License for the specific language governing permissions and
|
|
12
12
|
// limitations under the License.
|
|
13
13
|
import { useMemo } from 'react';
|
|
14
|
-
import { tableFromIPC } from '
|
|
14
|
+
import { tableFromIPC } from '@uwdata/flechette';
|
|
15
15
|
import useMappingList, { useFilenamesList, } from '../../ProfileFlameGraph/FlameGraphArrow/useMappingList';
|
|
16
|
+
import { alignedUint8Array } from '../../utils';
|
|
16
17
|
export const useProfileMetadata = ({ flamegraphArrow, metadataMappingFiles, metadataLoading, colorBy, }) => {
|
|
17
18
|
const table = useMemo(() => {
|
|
18
|
-
|
|
19
|
+
if (flamegraphArrow === undefined) {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
return tableFromIPC(alignedUint8Array(flamegraphArrow.record), { useBigInt: true });
|
|
19
23
|
}, [flamegraphArrow]);
|
|
20
24
|
const mappingsList = useMappingList(metadataMappingFiles);
|
|
21
25
|
const filenamesList = useFilenamesList(table);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CallersSection.d.ts","sourceRoot":"","sources":["../../../src/Sandwich/components/CallersSection.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAgB,MAAM,OAAO,CAAC;AASrC,OAAO,EAAC,KAAK,gBAAgB,EAAC,MAAM,+CAA+C,CAAC;AACpF,OAAO,EAAC,KAAK,aAAa,EAAC,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAC,cAAc,EAAC,MAAM,uCAAuC,CAAC;
|
|
1
|
+
{"version":3,"file":"CallersSection.d.ts","sourceRoot":"","sources":["../../../src/Sandwich/components/CallersSection.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAgB,MAAM,OAAO,CAAC;AASrC,OAAO,EAAC,KAAK,gBAAgB,EAAC,MAAM,+CAA+C,CAAC;AACpF,OAAO,EAAC,KAAK,aAAa,EAAC,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAC,cAAc,EAAC,MAAM,uCAAuC,CAAC;AAgBrE,UAAU,mBAAmB;IAC3B,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IAC5C,qBAAqB,EAAE,cAAc,CAAC;IACtC,aAAa,EAAE,aAAa,CAAC;IAC7B,YAAY,EAAE,gBAAgB,EAAE,CAAC;IACjC,eAAe,EAAE,CAAC,IAAI,EAAE,gBAAgB,EAAE,KAAK,IAAI,CAAC;IACpD,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,wBAAgB,cAAc,CAAC,EAC7B,UAAU,EACV,qBAAqB,EACrB,aAAa,EACb,YAAY,EACZ,eAAe,EACf,UAAU,EACV,aAAa,EACb,gBAAgB,GACjB,EAAE,mBAAmB,GAAG,GAAG,CAAC,OAAO,CAuEnC"}
|
|
@@ -12,11 +12,12 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
import { useMemo } from 'react';
|
|
15
|
-
import { tableFromIPC } from '
|
|
15
|
+
import { tableFromIPC } from '@uwdata/flechette';
|
|
16
16
|
import { Tooltip } from 'react-tooltip';
|
|
17
17
|
import { Button } from '@parca/components';
|
|
18
18
|
import { TEST_IDS, testId } from '@parca/test-utils';
|
|
19
19
|
import ProfileFlameGraph from '../../ProfileFlameGraph';
|
|
20
|
+
import { alignedUint8Array } from '../../utils';
|
|
20
21
|
const FIELD_DEPTH = 'depth';
|
|
21
22
|
function getMaxDepth(depthColumn) {
|
|
22
23
|
if (depthColumn === null)
|
|
@@ -32,7 +33,9 @@ function getMaxDepth(depthColumn) {
|
|
|
32
33
|
export function CallersSection({ callersRef, callersFlamegraphData, profileSource, curPathArrow, setCurPathArrow, isExpanded, setIsExpanded, defaultMaxFrames, }) {
|
|
33
34
|
const maxDepth = useMemo(() => {
|
|
34
35
|
if (callersFlamegraphData?.arrow != null) {
|
|
35
|
-
const table = tableFromIPC(callersFlamegraphData.arrow.record)
|
|
36
|
+
const table = tableFromIPC(alignedUint8Array(callersFlamegraphData.arrow.record), {
|
|
37
|
+
useBigInt: true,
|
|
38
|
+
});
|
|
36
39
|
const depthColumn = table.getChild(FIELD_DEPTH);
|
|
37
40
|
return getMaxDepth(depthColumn);
|
|
38
41
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Table } from '
|
|
1
|
+
import { type Table } from '@uwdata/flechette';
|
|
2
2
|
import { type colorByColors } from '../../ProfileFlameGraph/FlameGraphArrow/FlameGraphNodes';
|
|
3
3
|
import { type DataRow } from '../../Table/utils/functions';
|
|
4
4
|
interface ProcessRowDataProps {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"processRowData.d.ts","sourceRoot":"","sources":["../../../src/Sandwich/utils/processRowData.ts"],"names":[],"mappings":"AAaA,OAAO,EAAC,KAAK,KAAK,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"processRowData.d.ts","sourceRoot":"","sources":["../../../src/Sandwich/utils/processRowData.ts"],"names":[],"mappings":"AAaA,OAAO,EAAC,KAAK,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAC,KAAK,aAAa,EAAC,MAAM,yDAAyD,CAAC;AAY3F,OAAO,EAAuB,KAAK,OAAO,EAAC,MAAM,6BAA6B,CAAC;AAE/E,UAAU,mBAAmB;IAC3B,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,aAAa,EAAE,aAAa,CAAC;IAC7B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,cAAc,CAAC,EAAC,KAAK,EAAE,aAAa,EAAE,OAAO,EAAC,EAAE,mBAAmB,GAAG,OAAO,EAAE,CA0C9F"}
|
|
@@ -51,7 +51,7 @@ const LineProfileMetadata = ({ value, total, filtered, }) => {
|
|
|
51
51
|
}
|
|
52
52
|
const unfilteredPercent = (Number(value) / Number(total + filtered)) * 100;
|
|
53
53
|
const filteredPercent = (Number(value) / Number(total)) * 100;
|
|
54
|
-
const valueWithUnit = valueFormatter(value, profileSource?.ProfileType().
|
|
54
|
+
const valueWithUnit = valueFormatter(value, profileSource?.ProfileType().periodUnit ?? '', 1, true);
|
|
55
55
|
return (_jsxs(_Fragment, { children: [_jsx("p", { className: cx('w- flex justify-end overflow-hidden text-ellipsis whitespace-nowrap', commonClasses), style: { backgroundColor: `rgba(236, 151, 6, ${intensityScale(unfilteredPercent)})` }, "data-tooltip-id": id, "data-tooltip-content": `${valueWithUnit} (${unfilteredPercent.toFixed(2)}%${filtered > 0n ? ` / ${filteredPercent.toFixed(2)}%` : ''})`, children: valueWithUnit }), _jsx(Tooltip, { id: id })] }));
|
|
56
56
|
};
|
|
57
57
|
const charsToWidth = (chars) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/SourceView/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAM7D,OAAO,EAAC,MAAM,EAAC,MAAM,eAAe,CAAC;AAQrC,UAAU,eAAe;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,KAAK,IAAI,CAAC;CACnD;AAID,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/SourceView/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAM7D,OAAO,EAAC,MAAM,EAAC,MAAM,eAAe,CAAC;AAQrC,UAAU,eAAe;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,KAAK,IAAI,CAAC;CACnD;AAID,eAAO,MAAM,UAAU,6CAqKrB,CAAC;AAEH,eAAe,UAAU,CAAC"}
|
package/dist/SourceView/index.js
CHANGED
|
@@ -12,12 +12,12 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
import React, { useCallback, useEffect, useMemo } from 'react';
|
|
15
|
-
import { tableFromIPC } from '
|
|
15
|
+
import { tableFromIPC } from '@uwdata/flechette';
|
|
16
16
|
import { AnimatePresence, motion } from 'framer-motion';
|
|
17
17
|
import { Item, Menu, useContextMenu } from 'react-contexify';
|
|
18
18
|
import { SourceSkeleton, useParcaContext, useURLState } from '@parca/components';
|
|
19
19
|
import { ExpandOnHover } from '../GraphTooltipArrow/ExpandOnHoverValue';
|
|
20
|
-
import { truncateStringReverse } from '../utils';
|
|
20
|
+
import { alignedUint8Array, truncateStringReverse } from '../utils';
|
|
21
21
|
import { Highlighter, profileAwareRenderer } from './Highlighter';
|
|
22
22
|
import useLineRange from './useSelectedLineRange';
|
|
23
23
|
const MENU_ID = 'source-view-context-menu';
|
|
@@ -39,7 +39,7 @@ export const SourceView = React.memo(function SourceView({ data, loading, total,
|
|
|
39
39
|
if (data === undefined) {
|
|
40
40
|
return null;
|
|
41
41
|
}
|
|
42
|
-
const table = tableFromIPC(data.record);
|
|
42
|
+
const table = tableFromIPC(alignedUint8Array(data.record), { useBigInt: true });
|
|
43
43
|
return {
|
|
44
44
|
numRows: table.numRows,
|
|
45
45
|
lineNumbers: table.getChild('line_number'),
|
|
@@ -72,7 +72,7 @@ export const SourceView = React.memo(function SourceView({ data, loading, total,
|
|
|
72
72
|
}
|
|
73
73
|
return undefined;
|
|
74
74
|
}, [sourceTable]);
|
|
75
|
-
const getProfileDataForLine = useCallback((line
|
|
75
|
+
const getProfileDataForLine = useCallback((line) => {
|
|
76
76
|
const data = getLineData(line);
|
|
77
77
|
if (data === undefined) {
|
|
78
78
|
return undefined;
|
|
@@ -81,7 +81,7 @@ export const SourceView = React.memo(function SourceView({ data, loading, total,
|
|
|
81
81
|
return undefined;
|
|
82
82
|
}
|
|
83
83
|
return {
|
|
84
|
-
line
|
|
84
|
+
line,
|
|
85
85
|
cumulative: Number(data.cumulative),
|
|
86
86
|
flat: Number(data.flat),
|
|
87
87
|
};
|
|
@@ -92,22 +92,20 @@ export const SourceView = React.memo(function SourceView({ data, loading, total,
|
|
|
92
92
|
}
|
|
93
93
|
if (startLine === endLine) {
|
|
94
94
|
const profileData = [];
|
|
95
|
-
const profileDataForLine = getProfileDataForLine(startLine
|
|
95
|
+
const profileDataForLine = getProfileDataForLine(startLine);
|
|
96
96
|
if (profileDataForLine != null) {
|
|
97
97
|
profileData.push(profileDataForLine);
|
|
98
98
|
}
|
|
99
99
|
return [sourceCode[startLine - 1], profileData];
|
|
100
100
|
}
|
|
101
101
|
let code = '';
|
|
102
|
-
let line = 1;
|
|
103
102
|
const profileData = [];
|
|
104
103
|
for (let i = startLine; i <= endLine; i++) {
|
|
105
104
|
code += sourceCode[i] + '\n';
|
|
106
|
-
const profileDataForLine = getProfileDataForLine(i
|
|
105
|
+
const profileDataForLine = getProfileDataForLine(i);
|
|
107
106
|
if (profileDataForLine != null) {
|
|
108
107
|
profileData.push(profileDataForLine);
|
|
109
108
|
}
|
|
110
|
-
line++;
|
|
111
109
|
}
|
|
112
110
|
return [code, profileData];
|
|
113
111
|
}, [startLine, endLine, sourceCode, getProfileDataForLine]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Table/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAgD,MAAM,OAAO,CAAC;AAErE,OAAO,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,KAAK,EAAE,QAAQ,GAAG,IAAI,CAAC;CACxB;AAED,eAAO,MAAM,KAAK,wCAyMhB,CAAC;AAEH,eAAe,KAAK,CAAC"}
|
package/dist/Table/index.js
CHANGED
|
@@ -12,13 +12,14 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
import React, { useCallback, useEffect, useMemo, useRef } from 'react';
|
|
15
|
-
import { tableFromIPC } from '
|
|
15
|
+
import { tableFromIPC } from '@uwdata/flechette';
|
|
16
16
|
import { AnimatePresence, motion } from 'framer-motion';
|
|
17
17
|
import { useContextMenu } from 'react-contexify';
|
|
18
18
|
import { Table as TableComponent, TableSkeleton, useParcaContext, useURLState, } from '@parca/components';
|
|
19
19
|
import { useCurrentColorProfile } from '@parca/hooks';
|
|
20
20
|
import useMappingList, { useFilenamesList, } from '../ProfileFlameGraph/FlameGraphArrow/useMappingList';
|
|
21
21
|
import { useProfileViewContext } from '../ProfileView/context/ProfileViewContext';
|
|
22
|
+
import { alignedUint8Array } from '../utils';
|
|
22
23
|
import TableContextMenuWrapper from './TableContextMenuWrapper';
|
|
23
24
|
import { useColorManagement } from './hooks/useColorManagement';
|
|
24
25
|
import { useTableConfiguration } from './hooks/useTableConfiguration';
|
|
@@ -52,7 +53,7 @@ export const Table = React.memo(function Table({ data, total, filtered, profileT
|
|
|
52
53
|
if (loading || data == null) {
|
|
53
54
|
return null;
|
|
54
55
|
}
|
|
55
|
-
return tableFromIPC(data);
|
|
56
|
+
return tableFromIPC(alignedUint8Array(data), { useBigInt: true });
|
|
56
57
|
}, [data, loading]);
|
|
57
58
|
const mappingsList = useMappingList(metadataMappingFiles);
|
|
58
59
|
const filenamesList = useFilenamesList(table);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Row as RowType } from '@tanstack/table-core';
|
|
2
|
-
import {
|
|
2
|
+
import { Column } from '@uwdata/flechette';
|
|
3
3
|
import { colorByColors } from '../../ProfileFlameGraph/FlameGraphArrow/FlameGraphNodes';
|
|
4
4
|
export interface DataRow {
|
|
5
5
|
id: number;
|
|
@@ -30,8 +30,8 @@ export interface DummyRow {
|
|
|
30
30
|
}
|
|
31
31
|
export type Row = DataRow | DummyRow;
|
|
32
32
|
export declare const addPlusSign: (num: string) => string;
|
|
33
|
-
export declare const getRowColor: (colorByColors: colorByColors, mappingFileColumn:
|
|
34
|
-
export declare const RowName: (mappingFileColumn:
|
|
33
|
+
export declare const getRowColor: (colorByColors: colorByColors, mappingFileColumn: Column<string> | null, row: number, functionFileNameColumn: Column<string> | null, colorBy: string) => string;
|
|
34
|
+
export declare const RowName: (mappingFileColumn: Column<string> | null, locationAddressColumn: Column<bigint> | null, functionNameColumn: Column<string> | null, row: number) => string;
|
|
35
35
|
export declare const getRowsCount: (rows: Array<RowType<Row>>) => number;
|
|
36
36
|
export declare function getScrollTargetIndex(rows: Array<RowType<Row>>, parentRow: RowType<Row>, newRow: RowType<Row>): number;
|
|
37
37
|
export declare function isSubRow(row: Row): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../src/Table/utils/functions.ts"],"names":[],"mappings":"AAaA,OAAO,EAAC,KAAK,GAAG,IAAI,OAAO,EAAC,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAC,MAAM,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../src/Table/utils/functions.ts"],"names":[],"mappings":"AAaA,OAAO,EAAC,KAAK,GAAG,IAAI,OAAO,EAAC,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAIzC,OAAO,EAAC,aAAa,EAAC,MAAM,yDAAyD,CAAC;AAGtF,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,CAAC,EAAE,MAAM,CAAC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M,CAIrE,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,SAAS,OAAO,EAAE,KAAG,GAAG,EAarD,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,SAAS,OAAO,EAAE,KAAG,GAAG,EAarD,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,OAAO,MAAM,GAAG,MAAM,EAAE,OAAO,MAAM,GAAG,MAAM,KAAG,MAOpF,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,MAAM,GAAG,MAAM,EAAE,OAAO,MAAM,EAAE,UAAU,MAAM,KAAG,MAMxF,CAAC;AAEF,eAAO,MAAM,eAAe,UAa3B,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,OAAO,MAAM,GAAG,MAAM,EAAE,OAAO,MAAM,GAAG,MAAM,KAAG,MAOjF,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,GAAG,MAAM,EAAE,OAAO,MAAM,EAAE,UAAU,MAAM,KAAG,MAMrF,CAAC"}
|
|
@@ -23,8 +23,8 @@ export const getRowColor = (colorByColors, mappingFileColumn, row, functionFileN
|
|
|
23
23
|
console.error('mapping_file column not found');
|
|
24
24
|
return '';
|
|
25
25
|
}
|
|
26
|
-
const mappingFile = mappingFileColumn?.get(row);
|
|
27
|
-
const functionFileName = functionFileNameColumn?.get(row);
|
|
26
|
+
const mappingFile = mappingFileColumn?.get(row) ?? null;
|
|
27
|
+
const functionFileName = functionFileNameColumn?.get(row) ?? null;
|
|
28
28
|
let mapping = '';
|
|
29
29
|
let filename = '';
|
|
30
30
|
if (mappingFile != null) {
|
|
@@ -53,7 +53,7 @@ export const RowName = (mappingFileColumn, locationAddressColumn, functionNameCo
|
|
|
53
53
|
if (functionName !== null && functionName !== '') {
|
|
54
54
|
return `${mapping} ${functionName}`;
|
|
55
55
|
}
|
|
56
|
-
const address = locationAddressColumn?.get(row) ??
|
|
56
|
+
const address = locationAddressColumn?.get(row) ?? 0n;
|
|
57
57
|
return hexifyAddress(address);
|
|
58
58
|
};
|
|
59
59
|
export const getRowsCount = (rows) => {
|