A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
correct computation time after changing pstate. Fix issue #95
[simgrid.git]
/
src
/
mc
/
Transition.hpp
diff --git
a/src/mc/Transition.hpp
b/src/mc/Transition.hpp
index 1c3bf93b3703c337a2dd819bedf59c61488e80a8..17754e6cbeb7f6cd7c8271804662494f36ba95a7 100644
(file)
--- a/
src/mc/Transition.hpp
+++ b/
src/mc/Transition.hpp
@@
-1,4
+1,4
@@
-/* Copyright (c) 2015-20
18
. The SimGrid Team.
+/* Copyright (c) 2015-20
21
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-7,6
+7,9
@@
#ifndef SIMGRID_MC_TRANSITION_HPP
#define SIMGRID_MC_TRANSITION_HPP
#ifndef SIMGRID_MC_TRANSITION_HPP
#define SIMGRID_MC_TRANSITION_HPP
+#include "simgrid/forward.h" // aid_t
+#include <string>
+
namespace simgrid {
namespace mc {
namespace simgrid {
namespace mc {
@@
-18,8
+21,9
@@
namespace mc {
* in things like waitany and for associating a given value of MC_random()
* calls.
*/
* in things like waitany and for associating a given value of MC_random()
* calls.
*/
-struct Transition {
- int pid = 0;
+class Transition {
+public:
+ aid_t aid_ = 0;
/* Which transition was executed for this simcall
*
/* Which transition was executed for this simcall
*
@@
-29,10
+33,13
@@
struct Transition {
*
* * random can produce different values.
*/
*
* * random can produce different values.
*/
- int argument = 0;
+ int times_considered_ = 0;
+
+ /* Textual representation of the transition, to display backtraces */
+ std::string textual;
};
};
-}
-}
+}
// namespace mc
+}
// namespace simgrid
#endif
#endif