@parca/profile 0.19.86 → 0.19.88
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/ProfileView/components/ProfileFilters/index.d.ts.map +1 -1
- package/dist/ProfileView/components/ProfileFilters/index.js +14 -0
- package/dist/ProfileView/components/ProfileFilters/useProfileFilters.d.ts +1 -1
- package/dist/ProfileView/components/ProfileFilters/useProfileFilters.d.ts.map +1 -1
- package/dist/ProfileView/components/ProfileFilters/useProfileFilters.js +7 -1
- package/dist/ProfileView/components/ProfileFilters/useProfileFiltersUrlState.d.ts.map +1 -1
- package/dist/ProfileView/components/ProfileFilters/useProfileFiltersUrlState.js +2 -0
- package/package.json +7 -7
- package/src/ProfileView/components/ProfileFilters/index.tsx +14 -0
- package/src/ProfileView/components/ProfileFilters/useProfileFilters.ts +13 -1
- package/src/ProfileView/components/ProfileFilters/useProfileFiltersUrlState.ts +2 -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.88](https://github.com/parca-dev/parca/compare/@parca/profile@0.19.87...@parca/profile@0.19.88) (2025-11-28)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @parca/profile
|
|
9
|
+
|
|
10
|
+
## [0.19.87](https://github.com/parca-dev/parca/compare/@parca/profile@0.19.86...@parca/profile@0.19.87) (2025-11-28)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @parca/profile
|
|
13
|
+
|
|
6
14
|
## [0.19.86](https://github.com/parca-dev/parca/compare/@parca/profile@0.19.85...@parca/profile@0.19.86) (2025-11-27)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @parca/profile
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ProfileView/components/ProfileFilters/index.tsx"],"names":[],"mappings":"AAuBA,OAAO,EAAoB,KAAK,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAE1E,eAAO,MAAM,gBAAgB,GAAI,QAAQ,aAAa,KAAG,OASxD,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ProfileView/components/ProfileFilters/index.tsx"],"names":[],"mappings":"AAuBA,OAAO,EAAoB,KAAK,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAE1E,eAAO,MAAM,gBAAgB,GAAI,QAAQ,aAAa,KAAG,OASxD,CAAC;AAuJF,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,cAAc,GAAI,eAAoB,mBAAwB,KAAG,GAAG,CAAC,OAyN1E,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -123,6 +123,20 @@ const stringMatchTypeItems = [
|
|
|
123
123
|
expanded: _jsx(_Fragment, { children: "Not Contains" }),
|
|
124
124
|
},
|
|
125
125
|
},
|
|
126
|
+
{
|
|
127
|
+
key: 'starts_with',
|
|
128
|
+
element: {
|
|
129
|
+
active: _jsx(_Fragment, { children: "Starts With" }),
|
|
130
|
+
expanded: _jsx(_Fragment, { children: "Starts With" }),
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
key: 'not_starts_with',
|
|
135
|
+
element: {
|
|
136
|
+
active: _jsx(_Fragment, { children: "Not Starts With" }),
|
|
137
|
+
expanded: _jsx(_Fragment, { children: "Not Starts With" }),
|
|
138
|
+
},
|
|
139
|
+
},
|
|
126
140
|
];
|
|
127
141
|
const numberMatchTypeItems = [
|
|
128
142
|
{
|
|
@@ -3,7 +3,7 @@ export interface ProfileFilter {
|
|
|
3
3
|
id: string;
|
|
4
4
|
type?: 'stack' | 'frame' | string;
|
|
5
5
|
field?: 'function_name' | 'binary' | 'system_name' | 'filename' | 'address' | 'line_number';
|
|
6
|
-
matchType?: 'equal' | 'not_equal' | 'contains' | 'not_contains';
|
|
6
|
+
matchType?: 'equal' | 'not_equal' | 'contains' | 'not_contains' | 'starts_with' | 'not_starts_with';
|
|
7
7
|
value: string;
|
|
8
8
|
}
|
|
9
9
|
export declare const convertFromProtoFilters: (protoFilters: Filter[]) => ProfileFilter[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useProfileFilters.d.ts","sourceRoot":"","sources":["../../../../src/ProfileView/components/ProfileFilters/useProfileFilters.ts"],"names":[],"mappings":"AAeA,OAAO,EAAC,KAAK,MAAM,EAA6C,MAAM,eAAe,CAAC;AAMtF,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;IAClC,KAAK,CAAC,EAAE,eAAe,GAAG,QAAQ,GAAG,aAAa,GAAG,UAAU,GAAG,SAAS,GAAG,aAAa,CAAC;IAC5F,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"useProfileFilters.d.ts","sourceRoot":"","sources":["../../../../src/ProfileView/components/ProfileFilters/useProfileFilters.ts"],"names":[],"mappings":"AAeA,OAAO,EAAC,KAAK,MAAM,EAA6C,MAAM,eAAe,CAAC;AAMtF,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;IAClC,KAAK,CAAC,EAAE,eAAe,GAAG,QAAQ,GAAG,aAAa,GAAG,UAAU,GAAG,SAAS,GAAG,aAAa,CAAC;IAC5F,SAAS,CAAC,EACN,OAAO,GACP,WAAW,GACX,UAAU,GACV,cAAc,GACd,aAAa,GACb,iBAAiB,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;CACf;AA2BD,eAAO,MAAM,uBAAuB,GAAI,cAAc,MAAM,EAAE,KAAG,aAAa,EA+E7E,CAAC;AAGF,eAAO,MAAM,qBAAqB,GAAI,gBAAgB,aAAa,EAAE,KAAG,MAAM,EAmF7E,CAAC;AAEF,eAAO,MAAM,iBAAiB,QAAO;IACnC,YAAY,EAAE,aAAa,EAAE,CAAC;IAC9B,cAAc,EAAE,aAAa,EAAE,CAAC;IAChC,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,aAAa,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,mBAAmB,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;IACpE,YAAY,EAAE,MAAM,IAAI,CAAC;CA2L1B,CAAC"}
|
|
@@ -21,7 +21,13 @@ const createStringCondition = (matchType, value) => ({
|
|
|
21
21
|
? { oneofKind: 'notEqual', notEqual: value }
|
|
22
22
|
: matchType === 'contains'
|
|
23
23
|
? { oneofKind: 'contains', contains: value }
|
|
24
|
-
:
|
|
24
|
+
: matchType === 'not_contains'
|
|
25
|
+
? { oneofKind: 'notContains', notContains: value }
|
|
26
|
+
: matchType === 'starts_with'
|
|
27
|
+
? { oneofKind: 'startsWith', startsWith: value }
|
|
28
|
+
: matchType === 'not_starts_with'
|
|
29
|
+
? { oneofKind: 'notStartsWith', notStartsWith: value }
|
|
30
|
+
: { oneofKind: 'notContains', notContains: value },
|
|
25
31
|
});
|
|
26
32
|
const createNumberCondition = (matchType, value) => ({
|
|
27
33
|
condition: matchType === 'equal'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useProfileFiltersUrlState.d.ts","sourceRoot":"","sources":["../../../../src/ProfileView/components/ProfileFilters/useProfileFiltersUrlState.ts"],"names":[],"mappings":"AAeA,OAAO,EAAoB,KAAK,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;AAIjF,OAAO,EAAC,KAAK,aAAa,EAAC,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"useProfileFiltersUrlState.d.ts","sourceRoot":"","sources":["../../../../src/ProfileView/components/ProfileFilters/useProfileFiltersUrlState.ts"],"names":[],"mappings":"AAeA,OAAO,EAAoB,KAAK,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;AAIjF,OAAO,EAAC,KAAK,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAsEvD,eAAO,MAAM,oBAAoB,GAAI,SAAS,MAAM,KAAG,aAAa,EAgDnE,CAAC;AAEF,eAAO,MAAM,yBAAyB,QAAO;IAC3C,cAAc,EAAE,aAAa,EAAE,CAAC;IAChC,iBAAiB,EAAE,sBAAsB,CAAC,aAAa,EAAE,CAAC,CAAC;CAwB5D,CAAC"}
|
|
@@ -32,6 +32,8 @@ const MATCH_MAP = {
|
|
|
32
32
|
not_equal: '!=',
|
|
33
33
|
contains: '~',
|
|
34
34
|
not_contains: '!~',
|
|
35
|
+
starts_with: '^',
|
|
36
|
+
not_starts_with: '!^',
|
|
35
37
|
};
|
|
36
38
|
// Reverse mappings for decoding
|
|
37
39
|
const TYPE_MAP_REVERSE = Object.fromEntries(Object.entries(TYPE_MAP).map(([k, v]) => [v, k]));
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parca/profile",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.88",
|
|
4
4
|
"description": "Profile viewing libraries",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@floating-ui/react": "^0.27.12",
|
|
7
7
|
"@headlessui/react": "^1.7.19",
|
|
8
8
|
"@iconify/react": "^4.0.0",
|
|
9
|
-
"@parca/client": "0.17.
|
|
10
|
-
"@parca/components": "0.16.
|
|
9
|
+
"@parca/client": "0.17.9",
|
|
10
|
+
"@parca/components": "0.16.384",
|
|
11
11
|
"@parca/dynamicsize": "0.16.67",
|
|
12
|
-
"@parca/hooks": "0.0.
|
|
12
|
+
"@parca/hooks": "0.0.109",
|
|
13
13
|
"@parca/icons": "0.16.74",
|
|
14
14
|
"@parca/parser": "0.16.81",
|
|
15
|
-
"@parca/store": "0.16.
|
|
15
|
+
"@parca/store": "0.16.192",
|
|
16
16
|
"@parca/test-utils": "0.0.17",
|
|
17
|
-
"@parca/utilities": "0.0.
|
|
17
|
+
"@parca/utilities": "0.0.115",
|
|
18
18
|
"@popperjs/core": "^2.11.8",
|
|
19
19
|
"@protobuf-ts/runtime-rpc": "^2.5.0",
|
|
20
20
|
"@storybook/preview-api": "^8.4.3",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"access": "public",
|
|
80
80
|
"registry": "https://registry.npmjs.org/"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "279aba38f71b448972b6eeba1254ccfdfc16441f"
|
|
83
83
|
}
|
|
@@ -150,6 +150,20 @@ const stringMatchTypeItems: SelectItem[] = [
|
|
|
150
150
|
expanded: <>Not Contains</>,
|
|
151
151
|
},
|
|
152
152
|
},
|
|
153
|
+
{
|
|
154
|
+
key: 'starts_with',
|
|
155
|
+
element: {
|
|
156
|
+
active: <>Starts With</>,
|
|
157
|
+
expanded: <>Starts With</>,
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
key: 'not_starts_with',
|
|
162
|
+
element: {
|
|
163
|
+
active: <>Not Starts With</>,
|
|
164
|
+
expanded: <>Not Starts With</>,
|
|
165
|
+
},
|
|
166
|
+
},
|
|
153
167
|
];
|
|
154
168
|
|
|
155
169
|
const numberMatchTypeItems: SelectItem[] = [
|
|
@@ -23,7 +23,13 @@ export interface ProfileFilter {
|
|
|
23
23
|
id: string;
|
|
24
24
|
type?: 'stack' | 'frame' | string; // string allows preset keys
|
|
25
25
|
field?: 'function_name' | 'binary' | 'system_name' | 'filename' | 'address' | 'line_number';
|
|
26
|
-
matchType?:
|
|
26
|
+
matchType?:
|
|
27
|
+
| 'equal'
|
|
28
|
+
| 'not_equal'
|
|
29
|
+
| 'contains'
|
|
30
|
+
| 'not_contains'
|
|
31
|
+
| 'starts_with'
|
|
32
|
+
| 'not_starts_with';
|
|
27
33
|
value: string;
|
|
28
34
|
}
|
|
29
35
|
|
|
@@ -35,6 +41,12 @@ const createStringCondition = (matchType: string, value: string): StringConditio
|
|
|
35
41
|
? {oneofKind: 'notEqual' as const, notEqual: value}
|
|
36
42
|
: matchType === 'contains'
|
|
37
43
|
? {oneofKind: 'contains' as const, contains: value}
|
|
44
|
+
: matchType === 'not_contains'
|
|
45
|
+
? {oneofKind: 'notContains' as const, notContains: value}
|
|
46
|
+
: matchType === 'starts_with'
|
|
47
|
+
? {oneofKind: 'startsWith' as const, startsWith: value}
|
|
48
|
+
: matchType === 'not_starts_with'
|
|
49
|
+
? {oneofKind: 'notStartsWith' as const, notStartsWith: value}
|
|
38
50
|
: {oneofKind: 'notContains' as const, notContains: value},
|
|
39
51
|
});
|
|
40
52
|
|