-----------------------
The :ref:`tracing subsystem <outcomes_vizu>` can be configured in
-several different ways depending on the nature of the simulator (MSG,
-SimDag, SMPI) and the kind of traces that need to be obtained. See the
+several different ways depending on the used interface (S4U, SMPI, SimDag)
+and the kind of traces that needs to be obtained. See the
:ref:`Tracing Configuration Options subsection
-<tracing_tracing_options>` to get a detailed description of each
+<tracing_tracing_options>` for a full description of each
configuration option.
We detail here a simple way to get the traces working for you, even if
This section explains how to configure this logging features. You can also refer to the documentation of the :ref:`programmer's interface <logging_prog>`, that allows to produce
messages from your code.
-Most of the time, the logging mechanism is configured at runtime using the ``--log`` command-line argument, even if you can also use :ref:`xbt_log_control_set()` to control it from
+Most of the time, the logging mechanism is configured at runtime using the ``--log`` command-line argument, even if you can also use :c:func:`xbt_log_control_set()` to control it from
your program. To pass configure more than one setting, you can either pass several ``--log`` arguments, or separate your settings with spaces, that must be quoted accordingly. In
practice, the following is equivalent to the above settings: ``--log=root.thresh:error --log=s4u_host.thresh:debug``.
:cpp:member:`Actor::on_resume <simgrid::s4u::Actor::on_resume>`
:cpp:member:`Actor::on_sleep <simgrid::s4u::Actor::on_sleep>`
:cpp:member:`Actor::on_wake_up <simgrid::s4u::Actor::on_wake_up>`
- :cpp:member:`Actor::on_migration_start <simgrid::s4u::Actor::on_migration_start>`
- :cpp:member:`Actor::on_migration_end <simgrid::s4u::Actor::on_migration_end>`
+ :cpp:member:`Actor::on_host_change <simgrid::s4u::Actor::on_host_change>`
:cpp:member:`Actor::on_termination <simgrid::s4u::Actor::on_termination>`
:cpp:member:`Actor::on_destruction <simgrid::s4u::Actor::on_destruction>`
-- :cpp:member:`Comm::on_sender_start <simgrid::s4u::Comm::on_sender_start>`
- :cpp:member:`Comm::on_receiver_start <simgrid::s4u::Comm::on_receiver_start>`
+- :cpp:member:`Comm::on_start <simgrid::s4u::Comm::on_start>`
:cpp:member:`Comm::on_completion <simgrid::s4u::Comm::on_completion>`
- :cpp:member:`Engine::on_platform_creation <simgrid::s4u::Engine::on_platform_creation>`
:cpp:member:`Engine::on_platform_created <simgrid::s4u::Engine::on_platform_created>`
rtype_el_ref = rtype_el.find('ref')
if rtype_el_ref is not None:
rtype = text(rtype_el) + text(rtype_el_ref) + tail(rtype_el_ref)
+# print(" --> rtype_el: {} rtype_el_ref: {}".format(text(rtype_el), text(rtype_el_ref)))
else:
rtype = rtype_el.text
-# print("rtype: {}".format(rtype))
+ print("rtype: {}".format(rtype))
signame = (rtype and (rtype + ' ') or '') + self.klassname + "::" + self.objname
- return fix_namespaces(self.format_template_name() + signame)
+ res = fix_namespaces(self.format_template_name() + signame)
+# print("formatted name: {}".format(res))
+ return res
def get_doc(self, encoding=None): # This method is called with 1 parameter in Sphinx 2.x and 2 parameters in Sphinx 1.x
detaileddescription = self.object.find('detaileddescription')
doc = [format_xml_paragraph(detaileddescription)]
+# print ("doc: {}".format(doc))
return doc
def format_template_name(self):
.. group-tab:: C++
.. autodoxyvar:: simgrid::s4u::Link::on_bandwidth_change
- .. cpp:var:: xbt::signal<void(kernel::resource::NetworkAction&, Host* src, Host* dst)> Link::on_communicate
+ .. autodoxyvar:: simgrid::s4u::Link::on_communicate
.. autodoxyvar:: simgrid::s4u::Link::on_communication_state_change
.. autodoxyvar:: simgrid::s4u::Link::on_creation
.. autodoxyvar:: simgrid::s4u::Link::on_destruction
.. group-tab:: C++
- .. cpp:var:: xbt::signal<void(Actor const&, Exec const&)> Exec::on_completion
- .. cpp:var:: xbt::signal<void(Actor const&, Exec const&)> Exec::on_start
+ .. autodoxyvar:: simgrid::s4u::Exec::on_start
+ .. autodoxyvar:: simgrid::s4u::Exec::on_completion
.. _API_s4u_Io:
For more information, please refer to the :ref:`programmer's interface <logging_prog>` to learn how to produce messages from your code, or to :ref:`logging_config` to see how to
change the settings at runtime.
+.. _outcome_vizu:
+
Graphical and statistical logging
*********************************
<link_ctn id="link2"/>
</route>
-.. _understanding_lv08
+.. _understanding_lv08:
Understanding the default TCP model
***********************************
/** Signal to others that an actor wakes up for a sleep **/
static xbt::signal<void(Actor const&)> on_wake_up;
/** Signal to others that an actor is has been migrated to another host **/
- static xbt::signal<void(Actor const&, Host const& previous_location)> on_host_change;
+ static xbt::signal<void(const Actor&, const Host& previous_location)> on_host_change;
#ifndef DOXYGEN
static xbt::signal<void(Actor const&)> on_migration_start; // XBT_ATTRIB_DEPRECATED_v329
static xbt::signal<void(Actor const&)> on_migration_end; // XBT_ATTRIB_DEPRECATED_v329
xbt::signal<void(Actor const&)> s4u::Actor::on_resume;
xbt::signal<void(Actor const&)> s4u::Actor::on_sleep;
xbt::signal<void(Actor const&)> s4u::Actor::on_wake_up;
+#ifndef DOXYGEN
xbt::signal<void(Actor const&)> s4u::Actor::on_migration_start; // XBT_ATTRIB_DEPRECATED_v329
xbt::signal<void(Actor const&)> s4u::Actor::on_migration_end; // XBT_ATTRIB_DEPRECATED_v329
+#endif
xbt::signal<void(Actor const&, Host const& previous_location)> s4u::Actor::on_host_change;
xbt::signal<void(Actor const&)> s4u::Actor::on_termination;
xbt::signal<void(Actor const&)> s4u::Actor::on_destruction;