1 /* Copyright (c) 2008-2023. The SimGrid Team. All rights reserved. */
3 /* This program is free software; you can redistribute it and/or modify it
4 * under the terms of the license (GNU LGPL) which comes with this package. */
6 #ifndef SIMGRID_MC_REPLAY_H
7 #define SIMGRID_MC_REPLAY_H
11 /** Replay path (if any) in string representation
13 * This is using the format generated by traceToString().
14 * Use a function to avoid static initialization order fiasco.
16 inline auto& MC_record_path()
18 static std::string value;
22 /** Whether the replay mode is enabled */
23 static inline int MC_record_replay_is_active()
25 return not MC_record_path().empty();
28 /** Whether we should display extra information during this MC replay */
29 extern bool simgrid_mc_replay_show_backtraces;