Re: CPU profiling an MS unit test

2024-02-22 Thread Greg Keogh via ozdotnet
Nah. When you click start, it starts whichever project is set to Start, which in my case was some WinForms old test project of no use. You can't set a library to start. I created a mini test project which did some CPU and IO work. If I start the profiler it starts and waits, and when I run a unit

Re: CPU profiling an MS unit test

2024-02-20 Thread Greg Harris via ozdotnet
I asked Chat GPT... Far too late at night for me to read / understand the response How do I run a CPU performance profiler over a [TestMethod] in my c# unit test project. ChatGPT Running a CPU performance profiler over a [TestMethod] in your C# unit test project involves several steps and can

CPU profiling an MS unit test

2024-02-14 Thread Greg Keogh via ozdotnet
It's not Friday, but I can't find any way of running the CPU performance profiler over a [TestMethod] in my unit test project. Web searches produce no useful results, some hint that I can right-click a test in the test explorer and pick Profile..., but I have no such menu. Is this possible or not