~/talk

How to easily measure CPU performance and allocation patterns

Talkat DotNext 2020 Moscow · 2020-12-02..12-05· [dotnet, observability]
links:none on file
slides:none on file

Shows how to build small C# profilers that use TraceEvent/ETW and EventPipe to get allocation and CPU samples, demonstrating allocation-tick vs GC sample (tick gives type name but not size; GC sample gives exact counts and sizes but requires starting before the process), capturing stacks via TraceEvent/TraceLog and mapping JIT/native frames, using kernel profile for millisecond CPU sampling, and a Linux flow with perf + perfmap and perf script to produce files openable in PerfView. Demos work end‑to‑end though live demos suffer environment hiccups.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 1:35Tool overview and goals
  3. 10:33Memory profiling basics
  4. 14:24Allocation tick events
  5. 20:07GC sample object allocation
  6. 30:02CPU sampling profiling
  7. 45:05Linux profiling introduction
  8. 51:43Perf tool control
  9. 1:02:58Conclusion and Q&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.