English

SPACE-Timers -- A Stack-Based Hierarchical Timing System for C++

Instrumentation and Methods for Astrophysics 2026-04-13 v3

Abstract

SPACE-Timers are a lightweight hierarchical profiling framework for C++ designed for modern high-performance computing (HPC) applications. It uses a stack-based timing model to capture deeply nested execution patterns with minimal overhead, representing runtime behaviour as a tree of timing nodes with precise attribution. The framework provides structured reports with recursive aggregation, detection of unaccounted time, and compact visual summaries of runtime distribution, supporting both quick inspection and detailed analysis. It also includes checkpointing and error detection mechanisms. SPACE-Timers supports multiple profiling backends, including NVTX, ITT, ROCtx, and Omnitrace, and integrates with the MERIC runtime system to enable energy-aware optimisation. Its successful use in OpenGadget3 demonstrates its effectiveness for large-scale scientific applications.

Keywords

Cite

@article{arxiv.2603.01618,
  title  = {SPACE-Timers -- A Stack-Based Hierarchical Timing System for C++},
  author = {Geray S. Karademir and Klaus Dolag},
  journal= {arXiv preprint arXiv:2603.01618},
  year   = {2026}
}

Comments

Submitted to Astronomy and Computing, 8 pages, 1 figure

R2 v1 2026-07-01T10:58:47.388Z