~/talk

System metrics: learning to avoid pitfalls

Talkat .NET Summit 2019 · on Saturday, 2019-06-08· [observability]
links:none on file
slides:none on file

Benchmarks show System.Diagnostics.Process queries allocate megabytes and take milliseconds (one test wastes ~1.5 MB per call) while calling native GetProcessMemoryInfo returns the same numbers five orders of magnitude faster; reading per-process metrics via Performance Counters hits the registry, returns all instances and causes large allocations (category calls ~26 ms and ~4 MB alloc), whereas Performance Data Helpers cuts many counters to microseconds but process-category stays slow; switch to ETW/runtime events for low-overhead GC and runtime telemetry, but watch session limits and localization traps.

AI-written summary · about

  1. 0:00Introduction
  2. 1:10Memory metrics pitfalls
  3. 5:08Process.Diagnostics.Process issues
  4. 7:40Performance Counters overview
  5. 10:11Performance Counters in code
  6. 15:38Performance Counters pitfalls
  7. 26:42Performance Counters vs WinAPI
  8. 28:05Summary of Performance Counters
  9. 29:10ETW tracing introduction
  10. 31:22ETW tracing details
  11. 34:14ETW tracing limitations
  12. 36:47Runtime Events in .NET Core
  13. 38:53Conclusion and recommendations
  14. 41:04Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.