arXiv:2609.31228cs.SESep 2026

Manuscript Offprint

arXiv:2609.31228

Joule-Profiler: Profiling the Energy Consumption of Build Automation Tools Made Easy

Jérémy Woirhaye, François Gibier, Romain Rouvoy

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Jérémy Woirhaye*

Inria / Univ. Lille / CNRS, CRISTAL

France

jeremy.woirhaye@inria.fr

François Gibier*

Inria / Univ. Lille / CNRS, CRISTAL

France

francois.gibier@inria.fr

Romain Rouvoy

Inria / Univ. Lille / CNRS, CRISTAL

France

romain.rouvoy@inria.fr

Abstract—Build pipelines are integral to modern software development, yet their energy footprint remains largely invisible to practitioners. Existing CI energy tools either rely on model-based estimation (due to hardware access restrictions in cloud runners) or report only total pipeline energy without decomposing it into meaningful phases. Joule-Profiler is an open-source command-line tool for Linux that measures hardware energy consumption via Intel RAPL (CPU), NVML (NVIDIA GPU), and attributes it to user-defined program phases by monitoring standard output. In this tool paper, we demonstrate Joule-Profiler in the context of Maven build pipelines using Google Gson as a case study. By applying a token pattern-matching Maven plugin invocations, we analyze builds across the 5 most recent Gson releases into per-phase energy profiles, comparing cold builds (empty local repository) and warm builds (cached dependencies).

A screencast demonstrating Joule Profiler is available at: https://www.youtube.com/watch?v=v64Lactu5HQ, the source code is available at: https://github.com/joule-profiler/joule-profiler, and the reproduction package, including the Nix flake, scripts, raw data, and analysis notebooks, is available at: https://github.com/joule-profiler/reproduction-package-icse-2027

Index Terms—Energy profiling, Phase-based measurement, RAPL, Maven, CI/CD, Build pipelines, Joule Profiler

I. INTRODUCTION

Software energy consumption has emerged as a first-class concern for both practitioners and researchers. CI/CD pipelines run continuously, triggered by every commit, pull request, or scheduled job, and their cumulative energy cost across large projects and organizations is non-negligible [1], [2]. Understanding where energy is spent within a pipeline execution is a prerequisite for targeted optimization.

Existing approaches fall into two categories. Model-based tools, such as Eco CI [3], estimate energy from CPU utilization metrics and are compatible with cloud-hosted runners, but are limited to estimations and cannot attribute energy to fine-grained phases within a single pipeline step. Direct-measurement tools, such as PowerAPI [4], Alumet [5], Scaphandre [6], and EnergiBridge [7], provide hardware-accurate readings but are designed for system- or container-level monitoring rather than intra-process phase decomposition.

Joule-Profiler [8] fills this gap by combining hardware-accurate measurement (Intel RAPL via perf_event) with a lightweight phase-detection mechanism. It monitors the target process's standard output and matches lines against a user-defined regular expression to mark phase boundaries. No instrumentation library or code modification is required.

In this paper, we showcase Joule-Profiler on a concrete software engineering use case: profiling the energy consumption of Maven builds across the release history of Google Gson [9]. This scenario is representative of a broad class of build-system workflows and illustrates how Joule-Profiler can support energy regression in projects, detecting phases that become more energy-intensive as a project evolves, a workflow not supported by existing tools.