mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
some fix
This commit is contained in:
parent
ec366c15c6
commit
907a1b7713
@ -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"
|
||||
|
||||
#if PK_ENABLE_PROFILER
|
||||
namespace pkpy {
|
||||
|
||||
static std::string left_pad(std::string s, int width) {
|
||||
@ -126,3 +127,5 @@ LineProfiler::~LineProfiler() {
|
||||
}
|
||||
|
||||
} // namespace pkpy
|
||||
|
||||
#endif
|
Loading…
x
Reference in New Issue
Block a user