Added SwitchDpid and FlowIdEvents Measurement points.
diff --git a/src/main/java/net/onrc/onos/ofcontroller/flowmanager/FlowEventHandler.java b/src/main/java/net/onrc/onos/ofcontroller/flowmanager/FlowEventHandler.java
index 1e3c67f..20d1ff6 100644
--- a/src/main/java/net/onrc/onos/ofcontroller/flowmanager/FlowEventHandler.java
+++ b/src/main/java/net/onrc/onos/ofcontroller/flowmanager/FlowEventHandler.java
@@ -296,10 +296,14 @@
Map<Long, IOFSwitch> mySwitches = flowManager.getMySwitches();
// Process the Switch Dpid events
+ PerformanceMonitor.start("EventHandler.SwitchDpid");
processSwitchDpidEvents();
+ PerformanceMonitor.stop("EventHandler.SwitchDpid");
// Process the Flow ID events
+ PerformanceMonitor.start("EventHandler.FlowIdEvents");
processFlowIdEvents(mySwitches);
+ PerformanceMonitor.stop("EventHandler.FlowIdEvents");
// Fetch the topology
PerformanceMonitor.start("EventHandler.ReadTopology");
@@ -391,6 +395,8 @@
PerformanceMonitor.stop("EventHandler.ProcessAllEvents");
+ PerformanceMonitor.report("EventHandler.SwitchDpid");
+ PerformanceMonitor.report("EventHandler.FlowIdEvents");
PerformanceMonitor.report("EventHandler.ReadTopology");
PerformanceMonitor.report("EventHandler.RecomputeFlows");
PerformanceMonitor.report("EventHandler.WriteFlowsToDb");