Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 0207f51eb428f19dced5e0c519472636424ed777..5a7c0d5dd27636c394b8c50e5e406c375663def0 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -4979,12 +4979,18 @@ void V8::RemoveMemoryAllocationCallback(MemoryAllocationCallback callback) { |
void V8::PauseProfiler() { |
+ ApiCheck(i::FLAG_prof, |
+ "V8::ResumeProfiler", |
Jakob Kummerow
2011/09/08 09:48:54
s/Resume/Pause/
|
+ "Profiling has to be enabled with --prof"); |
i::Isolate* isolate = i::Isolate::Current(); |
isolate->logger()->PauseProfiler(); |
} |
void V8::ResumeProfiler() { |
+ ApiCheck(i::FLAG_prof, |
+ "V8::ResumeProfiler", |
+ "Profiling has to be enabled with --prof"); |
i::Isolate* isolate = i::Isolate::Current(); |
isolate->logger()->ResumeProfiler(); |
} |