summaryrefslogtreecommitdiff
path: root/lib/common/Utils/include/Tracer.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/common/Utils/include/Tracer.h')
-rw-r--r--lib/common/Utils/include/Tracer.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/lib/common/Utils/include/Tracer.h b/lib/common/Utils/include/Tracer.h
new file mode 100644
index 0000000..898fcb1
--- /dev/null
+++ b/lib/common/Utils/include/Tracer.h
@@ -0,0 +1,37 @@
+/*
+ * Copyright 2012-2013 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.1 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://floralicense.org/license/
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef __UTILS_TRACER_H__
+#define __UTILS_TRACER_H__
+
+#include <time.h>
+
+namespace Utils
+{
+ class Tracer
+ {
+ private:
+ const char * m_Tag;
+ const char * m_File;
+ const char * m_Func;
+ timespec m_startTime;
+ public:
+ Tracer(const char *tag, const char *file, int line, const char *func);
+ ~Tracer();
+ };
+}
+
+#endif /* __UTILS_TRACER_H__ */