Skip to content

Commit 2616cdc

Browse files
authored
Updated disassembler contribution docs (#1675)
1 parent 314a27f commit 2616cdc

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

docs/articles/contributing/disassembler.md

+7-9
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,13 @@ namespace Sample
3636
{
3737
var result = Benchmark(); // execute the benchmark do method gets jitted
3838
39-
Console.WriteLine($"{Process.GetCurrentProcess().Id} " + // process Id
39+
Console.WriteLine(
40+
$"{Process.GetCurrentProcess().Id} " + // process Id
4041
$"\"{typeof(Program).FullName}\" " + // full type name
41-
$"{nameof(Benchmark)} " + // benchmarked method name
42-
$"{bool.TrueString} " + // printAsm
43-
$"{bool.FalseString} " + // printIL
44-
$"{bool.FalseString} " + // print Source
45-
$"{bool.FalseString} " + // print prolog and epilog
46-
"2 " + // recursive depth
47-
$"{Path.GetTempFileName()}.xml"); // result xml file path
42+
$"{nameof(Benchmark)} " + // benchmarked method name
43+
$"{bool.FalseString} " + // print Source
44+
"2 " + // recursive depth
45+
$"{Path.GetTempFileName()}.xml"); // result xml file path
4846
4947
while(true)
5048
{
@@ -78,7 +76,7 @@ namespace Sample
7876

7977
Once you configure your app, you should run it. It will give you an output similar to this:
8078

81-
`13672 ConsoleApp1.RandomSort ArraySort True True True True 7 C:\Users\adsitnik\AppData\Local\Temp\tmpDCB9.tmp.xml`
79+
`13672 ConsoleApp1.RandomSort ArraySort True 7 C:\Users\adsitnik\AppData\Local\Temp\tmpDCB9.tmp.xml`
8280

8381
Now you go to BenchmarkDotNet solution, select desired Disassembler project in the Solution Explorer and Set it as Startup project. After this you go to the project's properties and in the Debug tab copy-paste the arguments for the disassembler. Now when you start debugging, your IDE will spawn new process of the disassembler with the right arguments to attach to the desired exe. You should be able to debug it like any other app.
8482

0 commit comments

Comments
 (0)