Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Document some plugins
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Sun, 11 Oct 2020 22:12:15 +0000 (00:12 +0200)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Sun, 11 Oct 2020 22:12:15 +0000 (00:12 +0200)
examples/README.rst

index 311b756..cbc0136 100644 (file)
@@ -953,6 +953,34 @@ Model-Related Examples
          .. showfile:: examples/platforms/wifi.xml
             :language: xml
 
+===============
+Plugin Examples
+===============
+
+It is possible to extend SimGrid without modifying its internals by
+attaching code to the existing signals and by adding extra data to the
+simulation objects through extensions. How to do that is not exactly
+documented yet, and you should look for examples in the src/plugins
+directory.
+
+This section documents how the existing plugins can be used. Remember
+that you are very welcome to modify the plugins to fit your needs. It
+should be much easier than modifying the SimGrid kernel.
+
+  - **Monitoring the host load**
+
+    .. tabs::
+
+      .. example-tab:: examples/s4u/plugin-host-load/s4u-plugin-host-load.cpp
+
+      .. example-tab:: examples/c/plugin-host-load/plugin-host-load.c
+
+  - **Monitoring the link load**
+
+    .. tabs::
+
+      .. example-tab:: examples/s4u/plugin-link-load/s4u-plugin-link-load.cpp
+
 =======================
 Model-Checking Examples
 =======================