

If you then inspect the log you can see that it’s collecting data, obtaining symbols and then finally writing everything out to a. Set ‘ Max Collect Sec’ to 15 seconds (because our ‘HelloWorld’ app never exits, we need to ensure PerfView stops collecting data at some point).Tick ‘ Cpu Samples’ if it isn’t already selected.Click ‘Run a command’ or (Alt-R’) and “collect data while the command is running”.Download and run a recent version of ‘PerfView.exe’.PerfView is a very powerful program, but not the most user-friendly of tools, so I’ve put togerther a step-by-step guide: The Console.ReadLine() call is added because I want to ensure the process doesn’t exit whilst PerfView is still collecting data. NET Runtime is doing during program start-up, so I ensure the minimum amount of user code is runing, hence the following ‘Hello World’: using System Code Sampleįor this exercise I delibrately only look at what the. This post is a step-by-step guide to that demo.

NET Runtime is spending it’s time during start-up: From 'dotnet run' to 'hello world' from Matt Warren In the talk I demonstrate how you can use PerfView to analyse where the. Recently I gave a talk at the NYAN Conference called ‘From ‘dotnet run’ to ‘hello world’:
