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
Per default, use default ns3/TcpModel.
[simgrid.git]
/
src
/
msg
/
msg_vm.cpp
diff --git
a/src/msg/msg_vm.cpp
b/src/msg/msg_vm.cpp
index
126d3d8
..
032b24c
100644
(file)
--- a/
src/msg/msg_vm.cpp
+++ b/
src/msg/msg_vm.cpp
@@
-185,10
+185,10
@@
void MSG_vm_start(msg_vm_t vm)
{
vm->start();
if (TRACE_msg_vm_is_enabled()) {
- container_t vm_container = simgrid::instr::Container::byName(vm->getName());
- simgrid::instr::Type*
typ
e = vm_container->type_->byName("MSG_VM_STATE");
- s
imgrid::instr::Value* val = simgrid::instr::Value::byNameOrCreate("start", "0 0 1", type
); // start is blue
- new simgrid::instr::PushStateEvent(MSG_get_clock(), vm_container,
type, val
);
+ container_t vm_container
= simgrid::instr::Container::byName(vm->getName());
+ simgrid::instr::Type*
stat
e = vm_container->type_->byName("MSG_VM_STATE");
+ s
tate->addEntityValue("start", "0 0 1"
); // start is blue
+ new simgrid::instr::PushStateEvent(MSG_get_clock(), vm_container,
state, state->getEntityValue("start")
);
}
}
@@
-768,10
+768,10
@@
void MSG_vm_suspend(msg_vm_t vm)
XBT_DEBUG("vm_suspend done");
if (TRACE_msg_vm_is_enabled()) {
- container_t vm_container = simgrid::instr::Container::byName(vm->getName());
- simgrid::instr::Type*
typ
e = vm_container->type_->byName("MSG_VM_STATE");
- s
imgrid::instr::Value* val = simgrid::instr::Value::byNameOrCreate("suspend", "1 0 0", type
); // suspend is red
- new simgrid::instr::PushStateEvent(MSG_get_clock(), vm_container,
type, val
);
+ container_t vm_container
= simgrid::instr::Container::byName(vm->getName());
+ simgrid::instr::Type*
stat
e = vm_container->type_->byName("MSG_VM_STATE");
+ s
tate->addEntityValue("suspend", "1 0 0"
); // suspend is red
+ new simgrid::instr::PushStateEvent(MSG_get_clock(), vm_container,
state, state->getEntityValue("suspend")
);
}
}