Skip to content

Commit 4d0af46

Browse files
committed
feat: Add "Hide libc" preset filter
Added a new preset filter to hide C standard library functions from profiles. This preset filters out frames from binaries containing "libc.so". This helps users focus on their application code rather than standard C library internals.
1 parent 697382c commit 4d0af46

File tree

1 file changed

+13
-0
lines changed
  • ui/packages/shared/profile/src/ProfileView/components/ProfileFilters

1 file changed

+13
-0
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,19 @@ export const filterPresets: FilterPreset[] = [
149149
},
150150
],
151151
},
152+
{
153+
key: 'hide_libc',
154+
name: 'Hide libc',
155+
description: 'Excludes C standard library functions from the profile',
156+
filters: [
157+
{
158+
type: 'frame',
159+
field: 'binary',
160+
matchType: 'not_contains',
161+
value: 'libc.so',
162+
},
163+
],
164+
},
152165
];
153166

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

0 commit comments

Comments
 (0)