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
Cut k/m/Resource.[ch] to its own files
[simgrid.git]
/
src
/
instr
/
instr_paje_events.cpp
diff --git
a/src/instr/instr_paje_events.cpp
b/src/instr/instr_paje_events.cpp
index
2a6ef0c
..
9719ce5
100644
(file)
--- a/
src/instr/instr_paje_events.cpp
+++ b/
src/instr/instr_paje_events.cpp
@@
-137,7
+137,7
@@
void StateEvent::print()
stream << " " << value->getId();
if (TRACE_display_sizes())
stream << " " << value->getId();
if (TRACE_display_sizes())
- stream << " " << (
extra_ != nullptr) ? extra_->display_size() : 0
;
+ stream << " " << (
(extra_ != nullptr) ? extra_->display_size() : 0)
;
#if HAVE_SMPI
if (xbt_cfg_get_boolean("smpi/trace-call-location")) {
#if HAVE_SMPI
if (xbt_cfg_get_boolean("smpi/trace-call-location")) {
@@
-156,7
+156,8
@@
void StateEvent::print()
if (getContainer()->getName().find("rank-") != 0)
stream << getContainer()->getName() << " " << extra_->print();
else
if (getContainer()->getName().find("rank-") != 0)
stream << getContainer()->getName() << " " << extra_->print();
else
- stream << getContainer()->getName().erase(0, 5) << " " << extra_->print();
+ /* Subtract -1 because this is the process id and we transform it to the rank id */
+ stream << stoi(getContainer()->getName().erase(0, 5)) - 1 << " " << extra_->print();
fprintf(tracing_files.at(getContainer()), "%s\n", stream.str().c_str());
} else {
fprintf(tracing_files.at(getContainer()), "%s\n", stream.str().c_str());
} else {