@parca/profile 0.16.291 → 0.16.292
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 +6 -0
- package/dist/GraphTooltipArrow/useGraphTooltipMetaInfo/index.d.ts +1 -0
- package/dist/GraphTooltipArrow/useGraphTooltipMetaInfo/index.js +3 -1
- package/dist/ProfileIcicleGraph/IcicleGraphArrow/ContextMenu.js +5 -1
- package/dist/ProfileIcicleGraph/IcicleGraphArrow/index.d.ts +1 -0
- package/dist/ProfileIcicleGraph/IcicleGraphArrow/index.js +1 -0
- package/package.json +2 -2
- package/src/GraphTooltipArrow/useGraphTooltipMetaInfo/index.ts +5 -0
- package/src/ProfileIcicleGraph/IcicleGraphArrow/ContextMenu.tsx +5 -0
- package/src/ProfileIcicleGraph/IcicleGraphArrow/index.tsx +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
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.16.292 (2023-10-31)
|
|
7
|
+
|
|
8
|
+
# 0.20.0 (2023-10-20)
|
|
9
|
+
|
|
10
|
+
**Note:** Version bump only for package @parca/profile
|
|
11
|
+
|
|
6
12
|
## 0.16.291 (2023-10-27)
|
|
7
13
|
|
|
8
14
|
**Note:** Version bump only for package @parca/profile
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
// limitations under the License.
|
|
13
13
|
import { QueryRequest_ReportType } from '@parca/client';
|
|
14
14
|
import { useParcaContext, useURLState } from '@parca/components';
|
|
15
|
-
import { FIELD_FUNCTION_FILE_NAME, FIELD_FUNCTION_START_LINE, FIELD_INLINED, FIELD_LOCATION_ADDRESS, FIELD_LOCATION_LINE, FIELD_MAPPING_BUILD_ID, FIELD_MAPPING_FILE, } from '../../ProfileIcicleGraph/IcicleGraphArrow';
|
|
15
|
+
import { FIELD_FUNCTION_FILE_NAME, FIELD_FUNCTION_START_LINE, FIELD_FUNCTION_SYSTEM_NAME, FIELD_INLINED, FIELD_LOCATION_ADDRESS, FIELD_LOCATION_LINE, FIELD_MAPPING_BUILD_ID, FIELD_MAPPING_FILE, } from '../../ProfileIcicleGraph/IcicleGraphArrow';
|
|
16
16
|
import { arrowToString } from '../../ProfileIcicleGraph/IcicleGraphArrow/utils';
|
|
17
17
|
import { useProfileViewContext } from '../../ProfileView/ProfileViewContext';
|
|
18
18
|
import { useQuery } from '../../useQuery';
|
|
@@ -23,6 +23,7 @@ export const useGraphTooltipMetaInfo = ({ table, row, navigateTo, }) => {
|
|
|
23
23
|
const inlined = table.getChild(FIELD_INLINED)?.get(row);
|
|
24
24
|
const locationLine = table.getChild(FIELD_LOCATION_LINE)?.get(row) ?? 0n;
|
|
25
25
|
const functionFilename = arrowToString(table.getChild(FIELD_FUNCTION_FILE_NAME)?.get(row)) ?? '';
|
|
26
|
+
const functionSystemName = arrowToString(table.getChild(FIELD_FUNCTION_SYSTEM_NAME)?.get(row)) ?? '';
|
|
26
27
|
const functionStartLine = table.getChild(FIELD_FUNCTION_START_LINE)?.get(row) ?? 0n;
|
|
27
28
|
const lineNumber = locationLine !== 0n ? locationLine : functionStartLine !== 0n ? functionStartLine : undefined;
|
|
28
29
|
const pprofLabelPrefix = 'pprof_labels.';
|
|
@@ -85,6 +86,7 @@ export const useGraphTooltipMetaInfo = ({ table, row, navigateTo, }) => {
|
|
|
85
86
|
return {
|
|
86
87
|
labelPairs,
|
|
87
88
|
functionFilename,
|
|
89
|
+
functionSystemName,
|
|
88
90
|
file,
|
|
89
91
|
openFile,
|
|
90
92
|
isSourceAvailable,
|
|
@@ -31,7 +31,7 @@ const ContextMenu = ({ menuId, table, unit, total, totalUnfiltered, row, level,
|
|
|
31
31
|
row,
|
|
32
32
|
level,
|
|
33
33
|
});
|
|
34
|
-
const { functionFilename, file, openFile, isSourceAvailable, locationAddress, mappingFile, mappingBuildID, inlined, } = useGraphTooltipMetaInfo({ table, row, navigateTo });
|
|
34
|
+
const { functionFilename, functionSystemName, file, openFile, isSourceAvailable, locationAddress, mappingFile, mappingBuildID, inlined, } = useGraphTooltipMetaInfo({ table, row, navigateTo });
|
|
35
35
|
if (contextMenuData === null) {
|
|
36
36
|
return _jsx(_Fragment, {});
|
|
37
37
|
}
|
|
@@ -59,6 +59,10 @@ const ContextMenu = ({ menuId, table, unit, total, totalUnfiltered, row, level,
|
|
|
59
59
|
const inlinedText = inlined === null ? 'merged' : inlined ? 'yes' : 'no';
|
|
60
60
|
const valuesToCopy = [
|
|
61
61
|
{ id: 'Function name', value: functionName },
|
|
62
|
+
{
|
|
63
|
+
id: 'Function system name',
|
|
64
|
+
value: functionSystemName === functionName ? '' : functionSystemName,
|
|
65
|
+
},
|
|
62
66
|
{ id: 'Cumulative', value: cumulativeText ?? '' },
|
|
63
67
|
{ id: 'Diff', value: diff !== 0n ? diffText : '' },
|
|
64
68
|
{
|
|
@@ -8,6 +8,7 @@ export declare const FIELD_LOCATION_ADDRESS = "location_address";
|
|
|
8
8
|
export declare const FIELD_LOCATION_LINE = "location_line";
|
|
9
9
|
export declare const FIELD_INLINED = "inlined";
|
|
10
10
|
export declare const FIELD_FUNCTION_NAME = "function_name";
|
|
11
|
+
export declare const FIELD_FUNCTION_SYSTEM_NAME = "function_system_name";
|
|
11
12
|
export declare const FIELD_FUNCTION_FILE_NAME = "function_file_name";
|
|
12
13
|
export declare const FIELD_FUNCTION_START_LINE = "function_startline";
|
|
13
14
|
export declare const FIELD_CHILDREN = "children";
|
|
@@ -31,6 +31,7 @@ export const FIELD_LOCATION_ADDRESS = 'location_address';
|
|
|
31
31
|
export const FIELD_LOCATION_LINE = 'location_line';
|
|
32
32
|
export const FIELD_INLINED = 'inlined';
|
|
33
33
|
export const FIELD_FUNCTION_NAME = 'function_name';
|
|
34
|
+
export const FIELD_FUNCTION_SYSTEM_NAME = 'function_system_name';
|
|
34
35
|
export const FIELD_FUNCTION_FILE_NAME = 'function_file_name';
|
|
35
36
|
export const FIELD_FUNCTION_START_LINE = 'function_startline';
|
|
36
37
|
export const FIELD_CHILDREN = 'children';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parca/profile",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.292",
|
|
4
4
|
"description": "Profile viewing libraries",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@parca/client": "^0.16.94",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"access": "public",
|
|
51
51
|
"registry": "https://registry.npmjs.org/"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "9ac76d46385a93281f5c5bae082b4eee175b2015"
|
|
54
54
|
}
|
|
@@ -20,6 +20,7 @@ import type {NavigateFunction} from '@parca/utilities';
|
|
|
20
20
|
import {
|
|
21
21
|
FIELD_FUNCTION_FILE_NAME,
|
|
22
22
|
FIELD_FUNCTION_START_LINE,
|
|
23
|
+
FIELD_FUNCTION_SYSTEM_NAME,
|
|
23
24
|
FIELD_INLINED,
|
|
24
25
|
FIELD_LOCATION_ADDRESS,
|
|
25
26
|
FIELD_LOCATION_LINE,
|
|
@@ -40,6 +41,7 @@ interface Props {
|
|
|
40
41
|
interface GraphTooltipMetaInfoData {
|
|
41
42
|
labelPairs: Array<[string, string]>;
|
|
42
43
|
functionFilename: string;
|
|
44
|
+
functionSystemName: string;
|
|
43
45
|
file: string;
|
|
44
46
|
openFile: () => void;
|
|
45
47
|
isSourceAvailable: boolean;
|
|
@@ -63,6 +65,8 @@ export const useGraphTooltipMetaInfo = ({
|
|
|
63
65
|
const locationLine: bigint = table.getChild(FIELD_LOCATION_LINE)?.get(row) ?? 0n;
|
|
64
66
|
const functionFilename: string =
|
|
65
67
|
arrowToString(table.getChild(FIELD_FUNCTION_FILE_NAME)?.get(row)) ?? '';
|
|
68
|
+
const functionSystemName: string =
|
|
69
|
+
arrowToString(table.getChild(FIELD_FUNCTION_SYSTEM_NAME)?.get(row)) ?? '';
|
|
66
70
|
const functionStartLine: bigint = table.getChild(FIELD_FUNCTION_START_LINE)?.get(row) ?? 0n;
|
|
67
71
|
const lineNumber =
|
|
68
72
|
locationLine !== 0n ? locationLine : functionStartLine !== 0n ? functionStartLine : undefined;
|
|
@@ -146,6 +150,7 @@ export const useGraphTooltipMetaInfo = ({
|
|
|
146
150
|
return {
|
|
147
151
|
labelPairs,
|
|
148
152
|
functionFilename,
|
|
153
|
+
functionSystemName,
|
|
149
154
|
file,
|
|
150
155
|
openFile,
|
|
151
156
|
isSourceAvailable,
|
|
@@ -69,6 +69,7 @@ const ContextMenu = ({
|
|
|
69
69
|
|
|
70
70
|
const {
|
|
71
71
|
functionFilename,
|
|
72
|
+
functionSystemName,
|
|
72
73
|
file,
|
|
73
74
|
openFile,
|
|
74
75
|
isSourceAvailable,
|
|
@@ -113,6 +114,10 @@ const ContextMenu = ({
|
|
|
113
114
|
|
|
114
115
|
const valuesToCopy = [
|
|
115
116
|
{id: 'Function name', value: functionName},
|
|
117
|
+
{
|
|
118
|
+
id: 'Function system name',
|
|
119
|
+
value: functionSystemName === functionName ? '' : functionSystemName,
|
|
120
|
+
}, // an empty string will be filtered out below
|
|
116
121
|
{id: 'Cumulative', value: cumulativeText ?? ''},
|
|
117
122
|
{id: 'Diff', value: diff !== 0n ? diffText : ''},
|
|
118
123
|
{
|
|
@@ -48,6 +48,7 @@ export const FIELD_LOCATION_ADDRESS = 'location_address';
|
|
|
48
48
|
export const FIELD_LOCATION_LINE = 'location_line';
|
|
49
49
|
export const FIELD_INLINED = 'inlined';
|
|
50
50
|
export const FIELD_FUNCTION_NAME = 'function_name';
|
|
51
|
+
export const FIELD_FUNCTION_SYSTEM_NAME = 'function_system_name';
|
|
51
52
|
export const FIELD_FUNCTION_FILE_NAME = 'function_file_name';
|
|
52
53
|
export const FIELD_FUNCTION_START_LINE = 'function_startline';
|
|
53
54
|
export const FIELD_CHILDREN = 'children';
|