You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-monitor/insights/set-up-code-optimizations.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Set up Code Optimizations (Preview)
3
-
description: Learn how to enable and set up Azure Monitor's Code Optimizations feature
3
+
description: Learn how to enable and set up Azure Monitor's Code Optimizations feature.
4
4
ms.topic: conceptual
5
5
ms.service: azure-monitor
6
6
ms.subservice: optimization-insights
@@ -14,7 +14,7 @@ ms.reviewer: ryankahng
14
14
15
15
Setting up Code Optimizations to identify and analyze CPU and memory bottlenecks in your web applications is a simple process in the Azure portal. In this guide, you learn how to:
16
16
17
-
- Connect your web pp to Application Insights.
17
+
- Connect your web app to Application Insights.
18
18
- Enable the Profiler on your web app.
19
19
20
20
## Demo video
@@ -23,38 +23,38 @@ Setting up Code Optimizations to identify and analyze CPU and memory bottlenecks
23
23
24
24
## Connect your web app to Application Insights
25
25
26
-
Before setting up Code Optimizations for your web app, you need to ensure that it's connected to an Application Insights resource.
26
+
Before setting up Code Optimizations for your web app, ensure that your app is connected to an Application Insights resource.
27
27
28
28
1. In the Azure portal, navigate to your web application.
29
29
1. From the left menu, select **Settings** > **Application Insights**.
30
-
1. In the Application Insights blade for your web application, determine the following:
30
+
1. In the Application Insights blade for your web application, determine the following options:
31
31
32
32
-**If your web app is already connected to an Application Insights resource:**
33
-
- A banner at the top of the blade will read**Your app is connected to Application Insights resource: {NAME-OF-RESOURCE}**.
33
+
- A banner at the top of the blade reads:**Your app is connected to Application Insights resource: {NAME-OF-RESOURCE}**.
34
34
35
35
:::image type="content" source="media/set-up-code-optimizations/already-enabled-app-insights.png" alt-text="Screenshot of the banner explaining that your app is already connected to App Insights.":::
36
36
37
37
-**If your web app still needs to be connected to an Application Insights resource:**
38
-
- A banner at the top of the blade will read**Your app will be connected to an auto-created Application Insights resource: {NAME-OF-RESOURCE}**.
38
+
- A banner at the top of the blade reads:**Your app will be connected to an auto-created Application Insights resource: {NAME-OF-RESOURCE}**.
39
39
40
40
:::image type="content" source="media/set-up-code-optimizations/need-to-enable-app-insights.png" alt-text="Screenshot of the banner telling you to enable App Insights and the name of the App Insights resource.":::
41
41
42
42
1. Click **Apply** at the bottom of the Application Insights pane.
43
43
44
44
## Enable Profiler on your web app
45
45
46
-
Profiler collects traces on your web app for Code Optimizations to analyze. In a few hours, if Code Optimization notices any performance bottlenecks in your application, you'll be able to see and review Code Optimizations insights.
46
+
Profiler collects traces on your web app for Code Optimizations to analyze. In a few hours, if Code Optimization notices any performance bottlenecks in your application, you can see and review Code Optimizations insights.
47
47
48
48
1. Still in the Application Insights blade, under **Instrument your application**, select the **.NET** tab.
49
-
1. Under **Profiler**, select the toggle to turn Profiler on for your web app.
49
+
1. Under **Profiler**, select the toggle to turn on Profiler for your web app.
50
50
51
51
:::image type="content" source="media/set-up-code-optimizations/enable-profiler.png" alt-text="Screenshot of how to enable Profiler for your web app.":::
52
52
53
53
1. Verify the Profiler is collecting traces.
54
54
1. Navigate to your Application Insights resource.
55
55
1. From the left menu, select **Investigate** > **Performance**.
56
56
1. In the Performance blade, select **Profiler** from the top menu.
57
-
1. Review the profiler traces colleted from your web app. [If you don't see any traces, see the troubleshooting guide](../profiler/profiler-troubleshooting.md).
57
+
1. Review the profiler traces collected from your web app. [If you don't see any traces, see the troubleshooting guide](../profiler/profiler-troubleshooting.md).
Copy file name to clipboardExpand all lines: articles/azure-monitor/insights/view-code-optimizations.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: View Code Optimizations results (Preview)
3
-
description: Learn how to access the results provided by Azure Monitor's Code Optimizations feature
3
+
description: Learn how to access the results provided by Azure Monitor's Code Optimizations feature.
4
4
ms.topic: conceptual
5
5
ms.service: azure-monitor
6
6
ms.subservice: optimization-insights
@@ -12,7 +12,7 @@ ms.reviewer: ryankahng
12
12
13
13
# View Code Optimizations results (Preview)
14
14
15
-
Now that you've enabled and configured Code Optimizations on your app, access and view any insights you've received via the Azure portal. You can access Code Optimizations through the **Performance** blade from the left navigation pane and select **Code Optimizations (preview)** from the top menu.
15
+
Now that you set up and configured Code Optimizations on your app, access and view any insights you received via the Azure portal. You can access Code Optimizations through the **Performance** blade from the left navigation pane and select **Code Optimizations (preview)** from the top menu.
16
16
17
17
:::image type="content" source="./media/code-optimizations/code-optimizations-performance-blade.png" alt-text="Screenshot of Code Optimizations located in the Performance blade.":::
18
18
@@ -27,7 +27,7 @@ The estimated CPU and Memory are determined based on the amount of activity in y
27
27
For Memory, the number is just a percentage of all allocations made within the trace. For example, if an issue takes 24% memory, you spent 24% of all your allocations within that call.
28
28
29
29
### CPU
30
-
For CPU, the percentage is based on the number of CPUs in your machine (four core, eight core, etc.) and the trace time. For example, let's say your trace is 10 seconds long and you have 4 CPUs, you have a total of 40 seconds of CPU time. If the insight says the line of code is using 5% of the CPU, it’s using 5% of 40 seconds, or 2 seconds.
30
+
For CPU, the percentage is based on the number of CPUs in your machine (four core, eight core, etc.) and the trace time. For example, let's say your trace is 10 seconds long and you have 4 CPUs: you have a total of 40 seconds of CPU time. If the insight says the line of code is using 5% of the CPU, it’s using 5% of 40 seconds, or 2 seconds.
31
31
32
32
## Filter and sort results
33
33
@@ -71,7 +71,7 @@ In the insights details pane, under the **Call Stack** heading, you can:
71
71
72
72
### Trend impact
73
73
74
-
You can also view a graph depicting a specific performance issue's impact and threshold. The trend impact results vary depending on the filters you've set. For example, a CPU `String.SubString()` performance issue's insights seen over a seven day time frame may look like:
74
+
You can also view a graph depicting a specific performance issue's impact and threshold. The trend impact results vary depending on the filters you set. For example, a CPU `String.SubString()` performance issue's insights seen over a seven day time frame may look like:
75
75
76
76
:::image type="content" source="./media/code-optimizations/code-optimizations-trend-impact.png" alt-text="Screenshot of the C-P-U trend impact over the course of seven days.":::
0 commit comments