@parca/profile 0.16.435 → 0.16.436
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
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
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.436](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.435...@parca/profile@0.16.436) (2024-10-15)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @parca/profile
|
|
9
|
+
|
|
6
10
|
## 0.16.435 (2024-10-14)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @parca/profile
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProfileViewWithData.d.ts","sourceRoot":"","sources":["../src/ProfileViewWithData.tsx"],"names":[],"mappings":"AAeA,OAAO,EAA0B,kBAAkB,EAAC,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"ProfileViewWithData.d.ts","sourceRoot":"","sources":["../src/ProfileViewWithData.tsx"],"names":[],"mappings":"AAeA,OAAO,EAA0B,kBAAkB,EAAC,MAAM,eAAe,CAAC;AAK1E,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAK9C,UAAU,wBAAwB;IAChC,WAAW,EAAE,kBAAkB,CAAC;IAChC,aAAa,EAAE,aAAa,CAAC;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,mBAAmB,oCAG7B,wBAAwB,KAAG,GAAG,CAAC,OAmNjC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -15,7 +15,6 @@ import { useEffect, useMemo, useState } from 'react';
|
|
|
15
15
|
import { QueryRequest_ReportType } from '@parca/client';
|
|
16
16
|
import { useGrpcMetadata, useParcaContext, useURLState } from '@parca/components';
|
|
17
17
|
import { saveAsBlob } from '@parca/utilities';
|
|
18
|
-
import { useLabelNames } from './MatchersInput';
|
|
19
18
|
import { FIELD_FUNCTION_NAME } from './ProfileIcicleGraph/IcicleGraphArrow';
|
|
20
19
|
import { ProfileView } from './ProfileView';
|
|
21
20
|
import { useQuery } from './useQuery';
|
|
@@ -53,10 +52,7 @@ export const ProfileViewWithData = ({ queryClient, profileSource, }) => {
|
|
|
53
52
|
invertCallStack,
|
|
54
53
|
binaryFrameFilter,
|
|
55
54
|
});
|
|
56
|
-
const
|
|
57
|
-
const matchers = mergedProfileSource.query.matchers.map(m => `${m.key}${m.matcherType}"${m.value}"`);
|
|
58
|
-
const { result: profileLabelsResponse } = useLabelNames(queryClient, profileSource.ProfileType().toString(), undefined, undefined, matchers);
|
|
59
|
-
const { isLoading: profilemetadataLoading, response: profilemetadataResponse } = useQuery(queryClient, profileSource, QueryRequest_ReportType.PROFILE_METADATA, {
|
|
55
|
+
const { isLoading: profileMetadataLoading, response: profileMetadataResponse } = useQuery(queryClient, profileSource, QueryRequest_ReportType.PROFILE_METADATA, {
|
|
60
56
|
skip: !dashboardItems.includes('icicle'),
|
|
61
57
|
nodeTrimThreshold,
|
|
62
58
|
groupBy,
|
|
@@ -136,7 +132,7 @@ export const ProfileViewWithData = ({ queryClient, profileSource, }) => {
|
|
|
136
132
|
filtered = BigInt(sourceResponse.filtered);
|
|
137
133
|
}
|
|
138
134
|
return (_jsx(ProfileView, { total: total, filtered: filtered, flamegraphData: {
|
|
139
|
-
loading: flamegraphLoading &&
|
|
135
|
+
loading: flamegraphLoading && profileMetadataLoading,
|
|
140
136
|
data: flamegraphResponse?.report.oneofKind === 'flamegraph'
|
|
141
137
|
? flamegraphResponse?.report?.flamegraph
|
|
142
138
|
: undefined,
|
|
@@ -146,11 +142,13 @@ export const ProfileViewWithData = ({ queryClient, profileSource, }) => {
|
|
|
146
142
|
total: BigInt(flamegraphResponse?.total ?? '0'),
|
|
147
143
|
filtered: BigInt(flamegraphResponse?.filtered ?? '0'),
|
|
148
144
|
error: flamegraphError,
|
|
149
|
-
mappings:
|
|
150
|
-
?
|
|
145
|
+
mappings: profileMetadataResponse?.report.oneofKind === 'profileMetadata'
|
|
146
|
+
? profileMetadataResponse?.report?.profileMetadata?.mappingFiles
|
|
151
147
|
: undefined,
|
|
152
|
-
mappingsLoading:
|
|
153
|
-
groupByLabels:
|
|
148
|
+
mappingsLoading: profileMetadataLoading,
|
|
149
|
+
groupByLabels: profileMetadataResponse?.report.oneofKind === 'profileMetadata'
|
|
150
|
+
? profileMetadataResponse?.report?.profileMetadata?.labels
|
|
151
|
+
: [],
|
|
154
152
|
}, topTableData: {
|
|
155
153
|
loading: tableLoading,
|
|
156
154
|
arrow: tableResponse?.report.oneofKind === 'tableArrow'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parca/profile",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.436",
|
|
4
4
|
"description": "Profile viewing libraries",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@headlessui/react": "^1.7.19",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"access": "public",
|
|
74
74
|
"registry": "https://registry.npmjs.org/"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "7bff5494e031481a579d942db5d271071ac9afa6"
|
|
77
77
|
}
|
|
@@ -17,9 +17,8 @@ import {QueryRequest_ReportType, QueryServiceClient} from '@parca/client';
|
|
|
17
17
|
import {useGrpcMetadata, useParcaContext, useURLState} from '@parca/components';
|
|
18
18
|
import {saveAsBlob} from '@parca/utilities';
|
|
19
19
|
|
|
20
|
-
import {useLabelNames} from './MatchersInput';
|
|
21
20
|
import {FIELD_FUNCTION_NAME} from './ProfileIcicleGraph/IcicleGraphArrow';
|
|
22
|
-
import {
|
|
21
|
+
import {ProfileSource} from './ProfileSource';
|
|
23
22
|
import {ProfileView} from './ProfileView';
|
|
24
23
|
import {useQuery} from './useQuery';
|
|
25
24
|
import {downloadPprof} from './utils';
|
|
@@ -77,20 +76,7 @@ export const ProfileViewWithData = ({
|
|
|
77
76
|
binaryFrameFilter,
|
|
78
77
|
});
|
|
79
78
|
|
|
80
|
-
const
|
|
81
|
-
const matchers = mergedProfileSource.query.matchers.map(
|
|
82
|
-
m => `${m.key}${m.matcherType}"${m.value}"`
|
|
83
|
-
);
|
|
84
|
-
|
|
85
|
-
const {result: profileLabelsResponse} = useLabelNames(
|
|
86
|
-
queryClient,
|
|
87
|
-
profileSource.ProfileType().toString(),
|
|
88
|
-
undefined,
|
|
89
|
-
undefined,
|
|
90
|
-
matchers
|
|
91
|
-
);
|
|
92
|
-
|
|
93
|
-
const {isLoading: profilemetadataLoading, response: profilemetadataResponse} = useQuery(
|
|
79
|
+
const {isLoading: profileMetadataLoading, response: profileMetadataResponse} = useQuery(
|
|
94
80
|
queryClient,
|
|
95
81
|
profileSource,
|
|
96
82
|
QueryRequest_ReportType.PROFILE_METADATA,
|
|
@@ -201,7 +187,7 @@ export const ProfileViewWithData = ({
|
|
|
201
187
|
total={total}
|
|
202
188
|
filtered={filtered}
|
|
203
189
|
flamegraphData={{
|
|
204
|
-
loading: flamegraphLoading &&
|
|
190
|
+
loading: flamegraphLoading && profileMetadataLoading,
|
|
205
191
|
data:
|
|
206
192
|
flamegraphResponse?.report.oneofKind === 'flamegraph'
|
|
207
193
|
? flamegraphResponse?.report?.flamegraph
|
|
@@ -214,11 +200,14 @@ export const ProfileViewWithData = ({
|
|
|
214
200
|
filtered: BigInt(flamegraphResponse?.filtered ?? '0'),
|
|
215
201
|
error: flamegraphError,
|
|
216
202
|
mappings:
|
|
217
|
-
|
|
218
|
-
?
|
|
203
|
+
profileMetadataResponse?.report.oneofKind === 'profileMetadata'
|
|
204
|
+
? profileMetadataResponse?.report?.profileMetadata?.mappingFiles
|
|
219
205
|
: undefined,
|
|
220
|
-
mappingsLoading:
|
|
221
|
-
groupByLabels:
|
|
206
|
+
mappingsLoading: profileMetadataLoading,
|
|
207
|
+
groupByLabels:
|
|
208
|
+
profileMetadataResponse?.report.oneofKind === 'profileMetadata'
|
|
209
|
+
? profileMetadataResponse?.report?.profileMetadata?.labels
|
|
210
|
+
: [],
|
|
222
211
|
}}
|
|
223
212
|
topTableData={{
|
|
224
213
|
loading: tableLoading,
|