Performance Profiling | .NET Async Tool

  Рет қаралды 11,166

Microsoft Visual Studio

Microsoft Visual Studio

Күн бұрын

You know that asynchronous programming makes your UI more responsive. Did you know that you can use the .NET Async tool to profile your async code? Diagnostics PM Sagar Shetty shows how to use this tool.
Learn more about profiling in Visual Studio at aka.ms/vsprofi....
Learn more about the Database tool at docs.microsoft....

Пікірлер: 6
@196charly
@196charly 3 жыл бұрын
Great tool!! Thanks for sharing
@IvarDaigon
@IvarDaigon 2 жыл бұрын
I understand the concept but using task.delay() isn't a very good example here. using a discard _ = with Task.Delay() should cause the code to move to the next line immediately because it's not being awaited and the delay should spawn on another thread if there is one available in the thread pool. This should not contribute to the elapsed time of the calling function at all nor should it hold up a thread in the thread pool because Task.Delay() simply returns the execution back to the thread pool until the delay time has elapsed. maybe if you had Task.Delay().Wait() that would block the thread but a more obvious way to block a function and the thread it is running on would be to use System.Threading.Thread.Sleep(). Task.Delay() was designed to be a non-blocking operation so forcing it to deliberately block may end up confusing people..
@BasvanderVeeken
@BasvanderVeeken 3 жыл бұрын
I don't completely understand why the Task.Delay wasn't awaited. Wouldn't it must skip the whole Task and continue to Task.FromResult? It might keep a thread in use in the background I guess, but not a direct problem for that single request.
@technical_news
@technical_news 3 жыл бұрын
Its a good effort to make it understand but I guess sample code should be more realistic and informative as using delay is quite obvious to slow up the things.
@zdavzdav86
@zdavzdav86 3 жыл бұрын
Is there any chance this tool will be available for Xamarin apps?
@sasmitadash6820
@sasmitadash6820 2 жыл бұрын
Could you please help me how to find out front end performance issues in .NET desktop application ??
Performance Profiling | .NET Object Allocation Tracking Tool
32:28
Microsoft Visual Studio
Рет қаралды 15 М.
IDisposable and Finalizers
23:00
C# Academy
Рет қаралды 22 М.
when you have plan B 😂
00:11
Andrey Grechka
Рет қаралды 51 МЛН
POV: Your kids ask to play the claw machine
00:20
Hungry FAM
Рет қаралды 12 МЛН
Whoa
01:00
Justin Flom
Рет қаралды 57 МЛН
Debugging Managed Async Code in Visual Studio 2019
13:22
Microsoft Visual Studio
Рет қаралды 41 М.
Андрей Парамонов - gRPC: наш опыт внедрения. Почему всегда он?
1:00:18
DotNext — конференция для .NET‑разработчиков
Рет қаралды 8 М.
C# Logging with Serilog and Seq - Structured Logging Made Easy
1:07:56
Kurt Seyit ve Şura 20. Bölüm
1:32:00
Kurt Seyit ve Şura
Рет қаралды 73 М.
Speed up your .NET app with the .NET memory profilers in Visual Studio 2022
8:20
Microsoft Visual Studio
Рет қаралды 25 М.