TBA…
TSC vs clock_gettime tradeoffs?
https://idle-ti.me/blog/coordinated-omission/
Perf basics
Performance counters are a set of special registers in hardware (part of performance monitor unit (PMU) in CPU) that count hardware events such as cache misses, branch predict misses, etc. CPU auto keeps track of these counters.
- perf stat: count the occurrences of supported events during process execution
- perf list: list the supported events
- perf record: collect profile data, outputs into a binary file named “perf.data” by default
- perf report: reads this profile data file and generates a concise execution profile. By default, samples are sorted by functions with the most samples first
- perf trace: strace but measured time spent!
Awk basics
run execute programs written in the awk programming language, which is specialized for textual data manipulation
TBA…
objdump basics
…
cmake basics
Cmake = cross platform make, a build generator
concepts
- build tools like make, ninja, etc. are called generators (configured with -G option!)