~/talk

Scalene: A high-performance, high-precision CPU+GPU+memory profiler for Python

Talkat PyCon US 2021 · 2021-05-14..05-15· [python]
slides:none on file

Scalene is a CPU+memory+GPU profiler for Python that claims high precision with low overhead by combining timer-driven sampling, virtual-clock inference, and allocation sampling to separate python vs native vs system time, measure copy volume, and detect leaks. Benchmarks show default runs at about 20% overhead versus memory profiler’s extreme ~300x slowdown. A concrete case eliminates a redundant np.array copy, cutting peak memory from 1.6GB to 900MB and trimming runtime ~15%. It handles threads, multiprocessing, numpy and GPU workloads (PyTorch) and produces actionable line-level guidance.

AI-written summary · about

  1. 0:00Intro
  2. 0:22Profilers
  3. 8:37Options
  4. 16:25Technical challenges
  5. 20:11GPU profiling
  6. 21:31Memory leak detection
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.