LDNUG - Progressive .NET: Profiling .NET apps with ANTS Profiler
Transcript of LDNUG - Progressive .NET: Profiling .NET apps with ANTS Profiler
Profiling .NET apps with ANTS ProfilerBart Read
Web and database performance consultantPreviously: Red Gate Software
Email: [email protected]: @bart_read
Github: https://github.com/bartread
www.bartread.com https://arcade.ly/
Demo: ANTS Performance Profiler• Download and try:
http://www.red-gate.com/products/dotnet-development/ants-performance-profiler/• Configuration• Collecting data• Analysing data• .NET code• HTTP requests• SQL• Memory usage
Grant Fritchey’s FREE eBook on execution plans:
http://www.red-gate.com/community/books/sql-server-execution-plans-ed-2
ANTS Performance Profiler: Execution Plan View• Shows execution plan for a given set of query
parameters• Based on http://www.supratimas.com/
Common SQL Performance Problems• Missing indexes• Queries with poor selectivity• WHERE columnName <> someValue• WHERE IN, WHERE NOT IN• CROSS JOIN, CROSS APPLY• Columns with poor selectivity, such as BIT
• Complex queries (e.g., nested views)• Blocking and deadlocking• Distributed queries
Demo: ANTS Memory Profiler• Download and try:
http://www.red-gate.com/products/dotnet-development/ants-memory-profiler/• Configuration (basically same as APP• Collecting data – snapshots• Analysing data• Comparing snapshots• Filtering• Identifying leaked types• Relating back to code - harder
Useful Ancillary Tools from Red Gate
Questions?Bart Read
www.bartread.comhttps://arcade.ly/
Email: [email protected]: @bart_read
Github: https://github.com/bartread