Performance Profiling - Visual Studio Flashcards
Why Performance Profiling
value to the Customer:
faster page loads
For azure payment or customers: BUSINESS cost to consider when hosting VM’s
CPU time or CPU cycle
Memory usage; memory allocation for different objects
Peformance tools used by
Game developers are big customers
Mishandling CPU time
Mishandling CPU time; using bad practice; using async code
if looping on big datasets
not caching properly; everytime you make api call slows down
string building - these are expensive; it slows down
Mishandling memory
allocating too much memory
not deallocating memory
for management code; the .Net run time takes the garbage collection
External dependencies
like database calls
which do not respond faster
Performance Profiling tool in visual studio
Debug -- Performance Profiler - Tools .NET Async CPU usage Database Events Viewer
it creates diagsessoin, you could share with others