summaryrefslogtreecommitdiff
path: root/src/include/debug_inner.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2019-11-24 14:56:07 +0800
committerJohn Hodge <tpg@mutabah.net>2019-11-24 14:56:07 +0800
commit25aff26fb8ced9c032c5593ad6acdd78b09d225f (patch)
tree1d47f26073416460b020d2e7714d8b1988ba8b27 /src/include/debug_inner.hpp
parent6e4f7d44b72ebb911420c8dd6279b6b57189a2fd (diff)
downloadmrust-25aff26fb8ced9c032c5593ad6acdd78b09d225f.tar.gz
main - Move debug code to `debug.cpp` (preparation for moving all logic to a library)
Diffstat (limited to 'src/include/debug_inner.hpp')
-rw-r--r--src/include/debug_inner.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/include/debug_inner.hpp b/src/include/debug_inner.hpp
new file mode 100644
index 00000000..669945a3
--- /dev/null
+++ b/src/include/debug_inner.hpp
@@ -0,0 +1,16 @@
+/*
+ */
+#pragma once
+#include <ctime>
+#include <initializer_list>
+
+extern void debug_init_phases(const char* env_var_name, std::initializer_list<const char*> il);
+
+class DebugTimedPhase
+{
+ const char* m_name;
+ clock_t m_start;
+public:
+ DebugTimedPhase(const char* name);
+ ~DebugTimedPhase();
+};