Skip to content

Commit 43ae470

Browse files
authored
Improve callspec coverage (#35437)
1 parent 0164e63 commit 43ae470

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

aspnetcore/blazor/performance/webassembly-browser-developer-tools-diagnostics.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,29 @@ Configure the sample interval in the app's project file. In the following exampl
7979

8080
## Call specification (:::no-loc text="callspec":::)
8181

82-
If you want to filter profiled methods, you can use call specification (:::no-loc text="callspec":::). For more information, see [Trace MonoVM profiler events during startup](https://github.com/dotnet/runtime/blob/main/docs/design/mono/diagnostics-tracing.md#trace-monovm-profiler-events-during-startup).
82+
If you want to filter profiled methods, use call specification (:::no-loc text="callspec":::).
8383

84-
Add `callspec` to the `browser` WebAssembly profiler in the `<WasmProfilers>` element. In the following example, the `{APP NAMESPACE}` placeholder is the app's namespace:
84+
Add `callspec` with a filter to the `browser` WebAssembly profiler in the `<WasmProfilers>` element:
85+
86+
```xml
87+
<WasmProfilers>browser:callspec={FILTER};</WasmProfilers>
88+
```
89+
90+
Permissiable `{FILTER}` placeholder values are shown in the following table.
91+
92+
Filter | Description
93+
--- | ---
94+
`all` | All assemblies
95+
`none` | No assemblies
96+
`program` | Entry point assembly
97+
`{ASSEMBLY}` | Specifies an assembly (`{ASSEMBLY}`)
98+
`M:Type:{METHOD}` | Specifies a method (`{METHOD}`)
99+
`N:{NAMESPACE}` | Specifies a namespace (`{NAMESPACE}`)
100+
`T:{TYPE}` | Specifies a type (`{TYPE}`)
101+
`+EXPR` | Includes expression
102+
`-EXPR` | Excludes expression
103+
104+
In the following example, profiled methods are filtered to the app's namespace, which is represented by the `{APP NAMESPACE}` placeholder:
85105

86106
```xml
87107
<WasmProfilers>browser:callspec=N:{APP NAMESPACE};</WasmProfilers>

0 commit comments

Comments
 (0)