[cgma-dev] r5884 - cgm/trunk/util

janehu at mcs.anl.gov janehu at mcs.anl.gov
Mon Nov 26 11:48:07 CST 2012


Author: janehu
Date: 2012-11-26 11:48:07 -0600 (Mon, 26 Nov 2012)
New Revision: 5884

Added:
   cgm/trunk/util/CubitInstrumentation.cpp
   cgm/trunk/util/CubitProcess.cpp
   cgm/trunk/util/CubitProcess.hpp
   cgm/trunk/util/GlobalCommandFeedback.cpp
   cgm/trunk/util/GlobalCommandFeedback.hpp
   cgm/trunk/util/ManagedPtrVector.hpp
Modified:
   cgm/trunk/util/Makefile.am
Log:
Added files in Makefile.am for make check after install, still there's one testcase failing in itaps and test directory each, and seems to be the same problem. Still looking into it.

Copied: cgm/trunk/util/CubitInstrumentation.cpp (from rev 5883, cgm/branches/cubit13.1/util/CubitInstrumentation.cpp)
===================================================================
--- cgm/trunk/util/CubitInstrumentation.cpp	                        (rev 0)
+++ cgm/trunk/util/CubitInstrumentation.cpp	2012-11-26 17:48:07 UTC (rev 5884)
@@ -0,0 +1,221 @@
+
+// File:    CubitInstrumentation.cpp
+// Author:  Boyd Tidwell
+//
+// Purpose: CubitInstrumentation is used to collect and write command and 
+//          feature usage by Cubit users. 
+
+#include "CubitInstrumentation.hpp"
+#include "CubitMessage.hpp"
+
+
+//#include <iostream>
+
+CubitInstrumentation* CubitInstrumentation::thisInstance = NULL;
+
+//=============================================================================
+CubitInstrumentation* CubitInstrumentation::instance()
+{
+  if (!thisInstance)
+  {
+    thisInstance = new CubitInstrumentation;
+    if (!thisInstance)
+    {
+      PRINT_ERROR("Unable to instantiate instrumentation object!\n");
+      exit(1);
+    }
+  }
+  return thisInstance;
+}
+
+//=============================================================================
+void CubitInstrumentation::delete_instance()
+{
+  if (thisInstance)
+    delete thisInstance;
+  thisInstance = NULL;
+}
+
+//=============================================================================
+CubitInstrumentation::CubitInstrumentation()
+  : outputState(Unknown), 
+    recordTokens(true), validKeywords(false), writeKeywords(true),
+    tokenUsageStream(NULL)
+{}
+
+//=============================================================================


More information about the cgma-dev mailing list