Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index c16920b336166aaba3d0f5a7421250a5eb02b563..5eda4de96a4c29c5432e180e6bf5b4eb1c92fdf9 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -3123,12 +3123,23 @@ void V8::PauseProfiler() { |
#endif |
} |
+ |
void V8::ResumeProfiler() { |
#ifdef ENABLE_LOGGING_AND_PROFILING |
i::Logger::ResumeProfiler(); |
#endif |
} |
+ |
+bool V8::IsProfilerPaused() { |
+#ifdef ENABLE_LOGGING_AND_PROFILING |
+ return i::Logger::IsProfilerPaused(); |
+#else |
+ return true; |
+#endif |
+} |
+ |
+ |
int V8::GetLogLines(int from_pos, char* dest_buf, int max_size) { |
#ifdef ENABLE_LOGGING_AND_PROFILING |
return i::Logger::GetLogLines(from_pos, dest_buf, max_size); |