Skip to content

Commit a6563a2

Browse files
Merge pull request #10606 from MicrosoftDocs/main638743142794171952sync_temp
For protected branch, push strategy should use PR and merge to target branch method to work around git push error
2 parents bf31f32 + 219f8ca commit a6563a2

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

docs/profiling/instrumentation.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ The available data is similar to the CPU Usage tool, except that it's based on w
6161

6262
If any insights show up in the **Top Insights** section, use the provided link to get more information about the issue identified. For more information, see [CPU insights](../profiling/cpu-insights.md), but be aware that information for the Instrumentation tool is specific to wall clock time and not CPU utilization.
6363

64-
In addition, if you are using Copilot, use the **Ask Copilot** button to open the Copilot chat window, and Copilot will provide suggestions based on an examination of your code and any identified issues.
64+
In addition, if you're using Copilot, use the **Ask Copilot** button to open the Copilot chat window, and Copilot will provide suggestions based on an examination of your code and any identified issues.
6565

6666
## Analyze instrumentation detailed reports
6767

@@ -75,7 +75,7 @@ The report provides different views of the diagnostic data:
7575
- Functions
7676
- Flame graph
7777

78-
In all views except Caller/callee, the diagnostic report is sorted by **Total [unit, %]**, from highest to lowest. Change the sort order or sort column by selecting the column headers. You can double-click on a function that you are interested in, and you will see the source for the function as well as highlighting that shows where time is spent in that function. The table shows columns with data such as the time spent in the function, including called functions (Total), and a second column that shows the time spent in a function, excluding called functions (Self).
78+
In all views except Caller/callee, the diagnostic report is sorted by **Total [unit, %]**, from highest to lowest. Change the sort order or sort column by selecting the column headers. You can double-click on a function that you're interested in, and you'll see the source for the function as well as highlighting that shows where time is spent in that function. The table shows columns with data such as the time spent in the function, including called functions (Total), and a second column that shows the time spent in a function, excluding called functions (Self).
7979

8080
This data can help you assess whether the function itself is a performance bottleneck. Determine how much data the method is displaying to see if third-party code or runtime libraries are the reason for your endpoints being slow or resource-consumption heavy.
8181

@@ -89,7 +89,7 @@ You can click the **Expand Hot Path** and **Show Hot Path** buttons to see the f
8989

9090
![Screenshot that shows Call tree structure.](../profiling/media/vs-2022/instrumentation-with-call-tree.png)
9191

92-
Here is more information on the column values:
92+
Here's more information on the column values:
9393

9494
- **Total** indicates how much time was spent in the function and any functions called by it. High **Total** values point to the functions that are consuming the most clock time.
9595

@@ -99,6 +99,18 @@ Here is more information on the column values:
9999

100100
- **Module** The name of the module containing the function.
101101

102+
### Async calls in the Instrumentation call tree (.NET)
103+
104+
Starting in Visual Studio 2022 version 17.13 Preview 2, views representing a visual call tree nest .NET asynchronous calls under the functions where the asynchronous call was made, making it easier to trace the execution flow within a single, unified stack trace. This can help you quickly identify performance bottlenecks.
105+
106+
The unified stack trace shows in the **Call Tree** view and the **Hot Path** section of the Summary page. Async nodes appear with the **[Async Call]** descriptor.
107+
108+
![Screenshot that shows Call tree structure for async calls.](../profiling/media/vs-2022/instrumentation-call-tree-async.png)
109+
110+
You can toggle the display of a stitched together asynchronous call stack by selecting **Stitch Async Stacks** from the **Filter** option in the profiler's Summary view. The setting is enabled by default.
111+
112+
![Screenshot that shows the Stick Async Stacks option.](../profiling/media/vs-2022/instrumentation-stitch-async-calls.png)
113+
102114
## Related content
103115

104116
- [Instrumentation](../profiling/instrumentation.md)
Loading
Loading

0 commit comments

Comments
 (0)