Skip to content

v0.2.53..v0.2.54 changeset ScriptMatch.cpp

Garret Voltz edited this page Mar 31, 2020 · 1 revision
diff --git a/hoot-js/src/main/cpp/hoot/js/conflate/matching/ScriptMatch.cpp b/hoot-js/src/main/cpp/hoot/js/conflate/matching/ScriptMatch.cpp
index 78ba30f..6db4d20 100644
--- a/hoot-js/src/main/cpp/hoot/js/conflate/matching/ScriptMatch.cpp
+++ b/hoot-js/src/main/cpp/hoot/js/conflate/matching/ScriptMatch.cpp
@@ -41,6 +41,7 @@
 
 // Qt
 #include <qnumeric.h>
+#include <QElapsedTimer>
 
 // Standard
 #include <sstream>
@@ -332,6 +333,10 @@ bool ScriptMatch::_isOrderedConflicting(const ConstOsmMapPtr& map, ElementId sha
 Handle<Value> ScriptMatch::_call(const ConstOsmMapPtr& map, Handle<Object> mapObj,
   Handle<Object> plugin)
 {
+//  QElapsedTimer timer;
+//  timer.start();
+//  const int interval = 100;
+
   Isolate* current = v8::Isolate::GetCurrent();
   EscapableHandleScope handleScope(current);
   Context::Scope context_scope(_script->getContext(current));
@@ -360,6 +365,11 @@ Handle<Value> ScriptMatch::_call(const ConstOsmMapPtr& map, Handle<Object> mapOb
   Handle<Value> result = func->Call(plugin, argc, jsArgs);
   HootExceptionJs::checkV8Exception(result, trycatch);
 
+//  if (timer.elapsed() > interval)
+//  {
+//    LOG_DEBUG("match score: " << timer.elapsed());
+//  }
+
   return handleScope.Escape(result);
 }
 
Clone this wiki locally