Skip to content

Commit 8077c3e

Browse files
committed
acrolinx
Signed-off-by: Hannah Hunter <[email protected]>
1 parent 5e3ee92 commit 8077c3e

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

articles/azure-monitor/insights/set-up-code-optimizations.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
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.
44
ms.topic: conceptual
55
ms.service: azure-monitor
66
ms.subservice: optimization-insights
@@ -14,7 +14,7 @@ ms.reviewer: ryankahng
1414

1515
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:
1616

17-
- Connect your web pp to Application Insights.
17+
- Connect your web app to Application Insights.
1818
- Enable the Profiler on your web app.
1919

2020
## Demo video
@@ -23,38 +23,38 @@ Setting up Code Optimizations to identify and analyze CPU and memory bottlenecks
2323

2424
## Connect your web app to Application Insights
2525

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.
2727

2828
1. In the Azure portal, navigate to your web application.
2929
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:
3131

3232
- **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}**.
3434

3535
:::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.":::
3636

3737
- **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}**.
3939

4040
:::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.":::
4141

4242
1. Click **Apply** at the bottom of the Application Insights pane.
4343

4444
## Enable Profiler on your web app
4545

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.
4747

4848
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.
5050

5151
:::image type="content" source="media/set-up-code-optimizations/enable-profiler.png" alt-text="Screenshot of how to enable Profiler for your web app.":::
5252

5353
1. Verify the Profiler is collecting traces.
5454
1. Navigate to your Application Insights resource.
5555
1. From the left menu, select **Investigate** > **Performance**.
5656
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).
5858

5959
## Next steps
6060

articles/azure-monitor/insights/view-code-optimizations.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
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.
44
ms.topic: conceptual
55
ms.service: azure-monitor
66
ms.subservice: optimization-insights
@@ -12,7 +12,7 @@ ms.reviewer: ryankahng
1212

1313
# View Code Optimizations results (Preview)
1414

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.
1616

1717
:::image type="content" source="./media/code-optimizations/code-optimizations-performance-blade.png" alt-text="Screenshot of Code Optimizations located in the Performance blade.":::
1818

@@ -27,7 +27,7 @@ The estimated CPU and Memory are determined based on the amount of activity in y
2727
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.
2828

2929
### 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.
3131

3232
## Filter and sort results
3333

@@ -71,7 +71,7 @@ In the insights details pane, under the **Call Stack** heading, you can:
7171

7272
### Trend impact
7373

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:
7575

7676
:::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.":::
7777

0 commit comments

Comments
 (0)