add PerfMon for addFlowFast()
diff --git a/src/main/java/net/onrc/onos/ofcontroller/flowmanager/FlowDatabaseOperation.java b/src/main/java/net/onrc/onos/ofcontroller/flowmanager/FlowDatabaseOperation.java
index 30234b6..944991e 100644
--- a/src/main/java/net/onrc/onos/ofcontroller/flowmanager/FlowDatabaseOperation.java
+++ b/src/main/java/net/onrc/onos/ofcontroller/flowmanager/FlowDatabaseOperation.java
@@ -327,8 +327,13 @@
* @return true on success, otherwise false.
*/
static boolean addFlow(DBOperation dbHandler, FlowPath flowPath) {
- if (useFastAddFlow)
- return addFlowFast(dbHandler, flowPath);
+ if (useFastAddFlow) {
+ PerfMon pm = PerfMon.getInstance();
+ pm.addflowpath_start();
+ boolean retValue = addFlowFast(dbHandler, flowPath);
+ pm.addflowpath_end();
+ return retValue;
+ }
IFlowPath flowObj = null;
boolean found = false;