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: core/diagnostics/DiagnosticScenarios/readme.md
+17-8Lines changed: 17 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,38 +4,47 @@ languages:
4
4
products:
5
5
- dotnet-core
6
6
page_type: sample
7
-
name: "Diagnostic Scenarios"
7
+
name: "Diagnostic scenarios sample debug target"
8
8
urlFragment: "diagnostic-scenarios"
9
9
description: "A .NET Core sample with methods that trigger undesirable behaviors to diagnose."
10
10
---
11
-
# DiagnosticScenarios sample debug target
11
+
# Diagnostic scenarios sample debug target
12
12
13
-
This sample is for the [diagnostics tutorials](https://docs.microsoft.com/dotnet/core/diagnostics/tutorial/diagnostic-scenarios) in the .NET Core Guide.
13
+
The sample debug target is a simple `webapi` application. The sample triggers undesirable behaviors for the [.NET Core diagnostics tutorials](https://docs.microsoft.com/dotnet/core/diagnostics/index#net-core-diagnostics-tutorials) to diagnose.
14
14
15
-
The scenarios are implemented using a `webapi` target with methods that trigger undesirable behaviors for us to diagnose.
15
+
## Build and run the target
16
+
17
+
After downloading the source, you can easily run the webapi using:
18
+
19
+
```console
20
+
dotnet build
21
+
dotnet run
22
+
```
16
23
17
24
## Target methods
18
25
26
+
The target triggers undesirable behaviors when hitting specific URLs.
27
+
19
28
### Deadlock
20
29
21
-
http://localhost:5000/api/diagscenario/deadlock
30
+
`http://localhost:5000/api/diagscenario/deadlock`
22
31
23
32
This method will cause the target to hang and accumulate many threads.
This method will cause intermittent memory spikes over the specified number of seconds. Memory will go from base line to spike and back to baseline several times.
0 commit comments