Skip to content

Draft: Make traces relative

Fabien Chaix requested to merge chaix/simgrid:make-traces-relative into master

When using multi-file traces, it is not easy to copy those traces across computers (or folders) because generally absolute path are used.

More precisely, during the trace production, an index file is created, which lists all the files actually containing trace entries (one per rank). The path used in this list currently appends the path to the index file (provided as parameter to smpirun) with stuff. Hence, the path to the index file is copied into the list of trace files, which is not great IMHO.

This pull request trims the path of the index file during the writing of the trace files index (and insert a @ character instead to allow detection later on). When reading the trace, if the @ character is detected, the current path to the index file is prepended to the filenames in the list.

Merge request reports