~/talk

Understanding the runtime behaviors of C++ programs using uftrace tool

Talkat CppCon 2017 · 2017-09-24..09-29· [observability]
links:none on file
slides:none on file

uftrace instruments binaries using compiler-provided function hooks to record every call, arguments and return values without source changes, emits console summaries, chrome trace viewer JSON and flamegraphs, and supports filters (depth, name, time) plus Python postprocessing. Examples show surprising runtime behavior: a constexpr Fibonacci runs at runtime, std::string constructors appear unless string_view is used, and an STL pushback benchmark reveals 2.1s vs 0.7s vs 2.4s for vector,deque,list caused by repeated memcpy and malloc patterns. Kernel tracing, library PLT hooking and per-call overhead mitigations are demonstrated.

AI-written summary · about

  1. 0:00Introduction to uftrace
  2. 1:25Basics of function tracing
  3. 4:03Event tracing and filters
  4. 5:26Reporting and analysis
  5. 6:30Viewing arguments and return values
  6. 7:34Chrome tracing format
  7. 8:38Tracing pre-built binaries
  8. 11:25C++ constexpr behavior
  9. 13:54STL container performance
  10. 18:58C++17 parallel algorithms
  11. 20:49Python scripting feature
  12. 25:15Q&A session
~/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.