profiler
A tool that records where a running program spends its time or allocates memory.
In more detail
Use one before optimising, for example before switching Task<T> to ValueTask<T>. .NET ships diagnostic tools such as dotnet-trace and dotnet-counters.
Related terms
- benchmark — A repeatable measurement of how long code takes, or how much it uses, under a fixed workload, or more broadly a standard point of comparison such as an industry average.
- hot path — Code that runs very often, such as on every request, where small costs add up.
- allocation — Reserving memory for a new object on the heap.
Taught in
- Async and Await: Managing Concurrency — Modern .NET Core, C# & Enterprise Microservices