Discord maps API cost per feature with custom CPU profiling
Discord extended its Python profiler to label execution time by feature, then correlated those timings with cloud billing. This lets engineers see how each of the 1,700+ endpoints and related features contributes to hosting spend, enabling data‑driven cost optimisation.