Skip to content

Commit bf631f9

Browse files
authored
Merge branch 'main' into flamechart-improvements
2 parents 70ba4c4 + 6be2cc3 commit bf631f9

File tree

7 files changed

+63
-5
lines changed

7 files changed

+63
-5
lines changed

ui/packages/app/web/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [0.16.975](https://github.com/parca-dev/parca/compare/@parca/[email protected]...@parca/[email protected]) (2025-12-04)
7+
8+
**Note:** Version bump only for package @parca/web
9+
610
## [0.16.974](https://github.com/parca-dev/parca/compare/@parca/[email protected]...@parca/[email protected]) (2025-12-04)
711

812
**Note:** Version bump only for package @parca/web

ui/packages/app/web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@parca/web",
33
"private": true,
4-
"version": "0.16.974",
4+
"version": "0.16.975",
55
"description": "Parca Web Interface",
66
"type": "module",
77
"scripts": {

ui/packages/shared/profile/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [0.19.92](https://github.com/parca-dev/parca/compare/@parca/[email protected]...@parca/[email protected]) (2025-12-04)
7+
8+
**Note:** Version bump only for package @parca/profile
9+
610
## [0.19.91](https://github.com/parca-dev/parca/compare/@parca/[email protected]...@parca/[email protected]) (2025-12-04)
711

812
**Note:** Version bump only for package @parca/profile

ui/packages/shared/profile/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@parca/profile",
3-
"version": "0.19.91",
3+
"version": "0.19.92",
44
"description": "Profile viewing libraries",
55
"dependencies": {
66
"@floating-ui/react": "^0.27.12",

ui/packages/shared/profile/src/ProfileView/components/ProfileFilters/filterPresets.ts

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,50 @@ export const filterPresets: FilterPreset[] = [
174174
},
175175
],
176176
},
177+
{
178+
key: 'hide_tokio_frames',
179+
name: 'Hide Tokio Frames',
180+
description: 'Excludes Tokio runtime frames from the profile',
181+
filters: [
182+
{
183+
type: 'frame',
184+
field: 'function_name',
185+
matchType: 'not_starts_with',
186+
value: 'tokio::',
187+
},
188+
{
189+
type: 'frame',
190+
field: 'function_name',
191+
matchType: 'not_starts_with',
192+
value: '<tokio::',
193+
},
194+
],
195+
},
196+
{
197+
key: 'hide_rust_panic_backtrace',
198+
name: 'Hide Rust Panic Backtrace Infrastructure',
199+
description: 'Excludes Rust panic and backtrace infrastructure frames from the profile',
200+
filters: [
201+
{
202+
type: 'frame',
203+
field: 'function_name',
204+
matchType: 'not_starts_with',
205+
value: 'std::panic',
206+
},
207+
{
208+
type: 'frame',
209+
field: 'function_name',
210+
matchType: 'not_starts_with',
211+
value: '<core::panic',
212+
},
213+
{
214+
type: 'frame',
215+
field: 'function_name',
216+
matchType: 'not_starts_with',
217+
value: 'std::sys::backtrace',
218+
},
219+
],
220+
},
177221
];
178222

179223
const presetKeys = new Set(filterPresets.map(preset => preset.key));

ui/packages/shared/profile/src/ProfileView/components/VisualizationContainer/index.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,14 @@ export const VisualizationContainer: FC<VisualizationContainerProps> = ({
5151
className={cx(
5252
'w-full min-h-96',
5353
snapshot.isDragging ? 'bg-gray-200 dark:bg-gray-500' : 'bg-inherit dark:bg-gray-900',
54-
isMultiPanelView ? 'border-2 border-gray-100 dark:border-gray-700 rounded-md p-3' : ''
54+
isMultiPanelView ? 'border-2 border-gray-100 dark:border-gray-700 rounded-md p-3' : '',
55+
dashboardItem === 'source' && isMultiPanelView ? 'sticky top-0 self-start' : ''
5556
)}
57+
style={
58+
dashboardItem === 'source' && isMultiPanelView
59+
? {maxHeight: 'calc(100vh - 50px)'}
60+
: undefined
61+
}
5662
>
5763
<VisualizationPanel
5864
handleClosePanel={handleClosePanel}

ui/packages/shared/profile/src/SourceView/Highlighter.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,13 +218,13 @@ export const Highlighter = ({file, content, renderer}: HighlighterProps): JSX.El
218218
<div>Source</div>
219219
</div>
220220
</div>
221-
<div className="text-xs">
221+
<div className="text-xs overflow-auto" style={{maxHeight: 'calc(100vh - 200px)'}}>
222222
<SyntaxHighlighter
223223
language={language}
224224
style={isDarkMode ? atomOneDark : atomOneLight}
225225
showLineNumbers
226226
renderer={renderer}
227-
customStyle={{padding: 0, height: '90vh'}}
227+
customStyle={{padding: 0}}
228228
>
229229
{content}
230230
</SyntaxHighlighter>

0 commit comments

Comments
 (0)