added some comments in profiling topology
authoredmaas <eduard.maas@uni-paderborn.de>
Sat, 4 Mar 2017 16:25:14 +0000 (17:25 +0100)
committeredmaas <eduard.maas@uni-paderborn.de>
Sat, 4 Mar 2017 16:25:14 +0000 (17:25 +0100)
src/emuvim/examples/profiling.py

index d7f96a4..daac301 100644 (file)
@@ -67,6 +67,9 @@ class Profiling:
 
     stop_now = False
 
+    """
+     Set up a simple topology and start it
+    """
     def __init__(self):
         GracefulKiller(self)
         # create topology
@@ -94,6 +97,9 @@ class Profiling:
         self.net.stop()
         LOG.info("Stopped topology")
 
+    """
+     Set stop value to stop the topology
+    """
     def stop_it(self):
         self.stop_now = True