ProfInfer: An eBPF-based Fine-Grained LLM Inference Profiler
Bohua ZouDRDebayan RoyDhimankumar Yogesh AiraoWeihao XuBSBinqi SunYutao Liu
Haibo Chen Bohua Zou
DRDebayan Roy
Dhimankumar Yogesh Airao
Weihao Xu
BSBinqi Sun
Yutao Liu

Haibo Chen
+7
ProfInfer is an eBPF-based, non-intrusive profiler for LLM inference engines such as llama-cpp. It dynamically attaches probes to runtime functions without modifying the source, collecting traces that are transformed into visualizations of operators, graphs, timelines, and hardware counters. This exposes whether a workload is memory- or compute-bound, and how features like dense inference, Mixture-of-Experts routing, and operator offloading behave. With less than 4% overhead, it makes performance profiling practical for optimization and deployment.

arXiv ·
· January 28, 2026