EUVIMEDDescoperă EUVIMED
Open access · CC BY 4.0

PROMPT: A Fast and Extensible Memory Profiling Framework

Ziyang Xu, Yebin Chon, Yian Su, Zujun Tan, Sotiris Apostolakis, Simone Campanoni, David I. August

Proceedings of the ACM on Programming Languages · 2024-04-29 · 8 (OOPSLA1) · 449-473

DOI: 10.1145/3649827 ↗

At a glance

Journal article in Proceedings of the ACM on Programming Languages, published online on 2024-04-29. Written by Ziyang Xu and 6 co-authors. Cited 7 times so far (Crossref); 58 references. The full text is freely available (open access, CC BY 4.0). Funded by: NSF, DOE U.S. Department of Energy.

RezumatDate bibliograficeCiteRelated studies

Abstract (original language)

Memory profiling captures programs’ dynamic memory behavior, assisting programmers in debugging, tuning, and enabling advanced compiler optimizations like speculation-based automatic parallelization. As each use case demands its unique program trace summary, various memory profiler types have been developed. Yet, designing practical memory profilers often requires extensive compiler expertise, adeptness in program optimization, and significant implementation effort. This often results in a void where aspirations for fast and robust profilers remain unfulfilled. To bridge this gap, this paper presents PROMPT, a framework for streamlined development of fast memory profilers. With PROMPT, developers need only specify profiling events and define the core profiling logic, bypassing the complexities of custom instrumentation and intricate memory profiling components and optimizations. Two state-of-the-art memory profilers were ported with PROMPT where all features preserved. By focusing on the core profiling logic, the code was reduced by more than 65% and the profiling overhead was improved by 5.3× and 7.1× respectively. To further underscore PROMPT’s impact, a tailored memory profiling workflow was constructed for a sophisticated compiler optimization client. In 570 lines of code, this redesigned workflow satisfies the client’s memory profiling needs while achieving more than 90% reduction in profiling overhead and improved robustness compared to the original profilers.

Funding

  • NSF
  • DOE U.S. Department of Energy

Cite

APA

Xu, Z., Chon, Y., Su, Y., Tan, Z., Apostolakis, S., Campanoni, S., & August, D. I. (2024). PROMPT: A Fast and Extensible Memory Profiling Framework. Proceedings of the ACM on Programming Languages, 8(OOPSLA1), 449-473. https://doi.org/10.1145/3649827

Vancouver

Xu Z, Chon Y, Su Y, Tan Z, Apostolakis S, Campanoni S, et al. PROMPT: A Fast and Extensible Memory Profiling Framework. Proceedings of the ACM on Programming Languages. 2024;8(OOPSLA1):449-473. doi:10.1145/3649827

BibTeX
@article{Xu2024,
  author = {Xu, Ziyang and Chon, Yebin and Su, Yian and Tan, Zujun and Apostolakis, Sotiris and Campanoni, Simone and August, David I.},
  title = {PROMPT: A Fast and Extensible Memory Profiling Framework},
  journal = {Proceedings of the ACM on Programming Languages},
  year = {2024},
  volume = {8},
  number = {OOPSLA1},
  pages = {449--473},
  doi = {10.1145/3649827}
}
Start for free →