@@ -1,7 +1,9 @@
#pragma once
+#include "pocketpy/common/config.h"
#include "pocketpy/interpreter/frame.hpp"
+#if PK_ENABLE_PROFILER
#include <ctime>
namespace pkpy {
@@ -38,3 +40,5 @@ struct LineProfiler {
};
} // namespace pkpy
+
+#endif
@@ -1,5 +1,6 @@
#include "pocketpy/interpreter/profiler.hpp"
static std::string left_pad(std::string s, int width) {
@@ -126,3 +127,5 @@ LineProfiler::~LineProfiler() {
}