| Index: src/cpu-profiler.h
|
| diff --git a/src/cpu-profiler.h b/src/cpu-profiler.h
|
| index ecf774ce6e35fff37600bfbf94f74b253cece0d9..9d54984f9520b4d5e7cd2f140deb1a16ffe3621f 100644
|
| --- a/src/cpu-profiler.h
|
| +++ b/src/cpu-profiler.h
|
| @@ -226,6 +226,8 @@ class ProfilerEventsProcessor : public Thread {
|
| namespace v8 {
|
| namespace internal {
|
|
|
| +
|
| +// TODO(isolates): isolatify this class.
|
| class CpuProfiler {
|
| public:
|
| static void Setup();
|
| @@ -270,7 +272,10 @@ class CpuProfiler {
|
| static void SetterCallbackEvent(String* name, Address entry_point);
|
|
|
| static INLINE(bool is_profiling()) {
|
| - Isolate* isolate = Isolate::Current();
|
| + return is_profiling(Isolate::Current());
|
| + }
|
| +
|
| + static INLINE(bool is_profiling(Isolate* isolate)) {
|
| return isolate->cpu_profiler() != NULL &&
|
| isolate->cpu_profiler()->processor_ != NULL;
|
| }
|
|
|