- Optional Enable
<profiling mode="all"/>in the preCICE configuration of your case to get the profiling information. - Run the preCICE simulation.
- Run
precice-profiling-mergeto combine all emitted profiling files of the simulation into a singleprofiling.jsonfile. - Analyze the solvers:
- Use
precice-profiling-analyzeto get a breakdown of an individual solver. - Use
precice-profiling-traceto visualize the data. - Use
precice-profiling-exportto export the data as CSV to import in other software.
- Use
Merges profiling files emitted by each rank of each participant into a single easily portable file.
Creates a profiling.json by default.
Transforms all events to a tabular format and exports the result as a CSV format.
The columns Participant, and Rank can be used to filter the dataset to extract individual participants or specific ranks.
Reads profiling.json and creates profiling.csv by default.
Transforms all events to the Google Trace Format which can be visualized by tools such as about::tracing in Chromium based browsers or perfetto.dev.
Reads profiling.json and creates trace.json by default.
Analyzes a given solver and returns a table of all timings including some statistics based on their duration.
Reads profiling.json by default.
HPC users or users of locked down clusters without easy access to pip can download the merge command as a standalone file and run it without installing additional dependencies.
wget -O precice-profiling-merge https://raw.githubusercontent.com/precice/profiling/refs/heads/main/preciceprofiling/merge.py
chmod +x precice-profiling-mergeThis repository contains modified part of the the precice-profiling script, which is part of the preCICE library (precice/precice tools/profiling/precice-profiling) and licensed under the LGPv3 license.
The two copyright holders David Schneider (@davidscn david.schneider@ipvs.uni-stuttgart.de) and Frédéric Simonis (@fsimonis frederic.simonis@ipvs.uni-stuttgart.de) decided on 23. June 2025 15:00 CET to rerelease the content of the precice-profiling script in this repository under the MIT license.