Skip to content

Commit 8daf94a

Browse files
branczclaude
andauthored
Add profiling filter preset for Rust futures infrastructure (#6090)
Adds a new filter preset to hide Rust futures infrastructure frames from profiling views. The preset filters out: - Functions starting with "future" - Functions starting with "<future" - Functions containing "futures_core" - Functions containing "core::future::future::Future" This helps reduce noise in profiles by hiding low-level futures implementation details. Co-authored-by: Claude <[email protected]>
1 parent 0f80a44 commit 8daf94a

File tree

1 file changed

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

1 file changed

+31
-0
lines changed

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

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,37 @@ export const filterPresets: FilterPreset[] = [
193193
},
194194
],
195195
},
196+
{
197+
key: 'hide_rust_futures',
198+
name: 'Hide Rust Futures Infrastructure',
199+
description: 'Excludes Rust futures infrastructure frames from the profile',
200+
filters: [
201+
{
202+
type: 'frame',
203+
field: 'function_name',
204+
matchType: 'not_starts_with',
205+
value: 'future',
206+
},
207+
{
208+
type: 'frame',
209+
field: 'function_name',
210+
matchType: 'not_starts_with',
211+
value: '<future',
212+
},
213+
{
214+
type: 'frame',
215+
field: 'function_name',
216+
matchType: 'not_contains',
217+
value: 'futures_core',
218+
},
219+
{
220+
type: 'frame',
221+
field: 'function_name',
222+
matchType: 'not_contains',
223+
value: 'core::future::future::Future',
224+
},
225+
],
226+
},
196227
{
197228
key: 'hide_rust_panic_backtrace',
198229
name: 'Hide Rust Panic Backtrace Infrastructure',

0 commit comments

Comments
 (0)