| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index 5a7c0d5dd27636c394b8c50e5e406c375663def0..0207f51eb428f19dced5e0c519472636424ed777 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -4979,18 +4979,12 @@ void V8::RemoveMemoryAllocationCallback(MemoryAllocationCallback callback) {
|
|
|
|
|
| void V8::PauseProfiler() {
|
| - ApiCheck(i::FLAG_prof,
|
| - "V8::ResumeProfiler",
|
| - "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();
|
| }
|
|
|