Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 28 additions & 9 deletions content/docs/tooling/tooling-performance-analysis.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,17 +209,18 @@ where the naming pattern is `participant-rank-file_number`. To find and merge th
$ ls
A
B
$ precice-cli profiling merge A B
Searching A : found 1 files in A/precice-profiling
Searching B : found 1 files in B/precice-profiling
Found 2 unique event files
$ precice-cli profiling merge
Found 2 files in .
Found a single run for participant B
Found a single run for participant A
Loading event files
Globalizing event names
Grouping events
Aligning B (-179us) with A
Writing to profiling.db
Loading 2 event files
Loading precice-profiling/B-0-1.txt
Processing precice-profiling/B-0-1.txt
Loading precice-profiling/A-0-1.txt
Processing precice-profiling/A-0-1.txt
Align participant ranks
Align participants
Aligning B with A shift latter by 5
$ ls
A
B
Expand All @@ -228,6 +229,24 @@ profiling.db

The merge command searches passed directories for the event files.
Copy link
Copy Markdown
Member

@carme-hp carme-hp Mar 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the default directory if nothing is specified? I get that you are looking at the current directory, but I think it is not obvious that it searches inside subdirectories as well.

You can also pass individual files if you are not interested in all ranks.
To tell the merge to search only folders A and B run:

```console
precice-cli profiling merge A B
Found 1 files in A
Found 1 files in B
Found 2 profiling files in total
Found a single run for participant A
Found a single run for participant B
Loading 2 event files
Loading A/precice-profiling/A-0-1.txt
Processing A/precice-profiling/A-0-1.txt
Loading B/precice-profiling/B-0-1.txt
Processing B/precice-profiling/B-0-1.txt
Align participant ranks
Align participants
Aligning B with A shift latter by 5
```

The merge command is written in pure Python, without external dependencies, to make it easy to use on clusters.
After you run `precice-cli profiling merge`, you end up with a single file, which can be additionally compressed and transferred to another machine.
Expand Down
Loading