File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed
core/diagnostics/DiagnosticScenarios Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ The sample debug target is a simple `webapi` application. The sample triggers un
16
16
17
17
After downloading the source, you can easily run the webapi using:
18
18
19
- ``` console
19
+ ``` dotnetcli
20
20
dotnet build
21
21
dotnet run
22
22
```
@@ -27,24 +27,32 @@ The target triggers undesirable behaviors when hitting specific URLs.
27
27
28
28
### Deadlock
29
29
30
- ` http://localhost:5000/api/diagscenario/deadlock `
30
+ ``` http
31
+ http://localhost:5000/api/diagscenario/deadlock
32
+ ```
31
33
32
34
This method will cause the target to hang and accumulate many threads.
33
35
34
36
### High CPU usage
35
37
36
- ` http://localhost:5000/api/diagscenario/highcpu/{milliseconds} `
38
+ ``` http
39
+ http://localhost:5000/api/diagscenario/highcpu/{milliseconds}
40
+ ```
37
41
38
42
The method will cause to target to heavily use the CPU for a duration specified by {milliseconds}.
39
43
40
44
### Memory leak
41
45
42
- ` http://localhost:5000/api/diagscenario/memleak/{kb} `
46
+ ``` http
47
+ http://localhost:5000/api/diagscenario/memleak/{kb}
48
+ ```
43
49
44
50
This method will cause the target to leak memory (amount specified by {kb}).
45
51
46
52
### Memory usage spike
47
53
48
- ` http://localhost:5000/api/diagscenario/memspike/{seconds} `
54
+ ``` http
55
+ http://localhost:5000/api/diagscenario/memspike/{seconds}
56
+ ```
49
57
50
58
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.
You can’t perform that action at this time.
0 commit comments