| Index: src/cpu-profiler.h
|
| diff --git a/src/cpu-profiler.h b/src/cpu-profiler.h
|
| index 44e63fed49f6bed50f6904d543eb0c8f95fe16f4..66e2b8bd18ca8b9d047a4f37585d2a9f07f5d4f8 100644
|
| --- a/src/cpu-profiler.h
|
| +++ b/src/cpu-profiler.h
|
| @@ -173,14 +173,14 @@ class ProfilerEventsProcessor : public Thread {
|
| };
|
|
|
|
|
| -#define PROFILE(IsolateGetter, Call) \
|
| - do { \
|
| - Isolate* cpu_profiler_isolate = (IsolateGetter); \
|
| - LOG_CODE_EVENT(cpu_profiler_isolate, Call); \
|
| - CpuProfiler* cpu_profiler = cpu_profiler_isolate->cpu_profiler(); \
|
| - if (cpu_profiler->is_profiling()) { \
|
| - cpu_profiler->Call; \
|
| - } \
|
| +#define PROFILE(IsolateGetter, Call) \
|
| + do { \
|
| + Isolate* cpu_profiler_isolate = (IsolateGetter); \
|
| + v8::internal::Logger* logger = cpu_profiler_isolate->logger(); \
|
| + CpuProfiler* cpu_profiler = cpu_profiler_isolate->cpu_profiler(); \
|
| + if (logger->is_logging_code_events() || cpu_profiler->is_profiling()) { \
|
| + logger->Call; \
|
| + } \
|
| } while (false)
|
|
|
|
|
| @@ -223,7 +223,7 @@ class CpuProfiler {
|
| Code* code,
|
| SharedFunctionInfo* shared,
|
| CompilationInfo* info,
|
| - String* source, int line);
|
| + Name* source, int line);
|
| void CodeCreateEvent(Logger::LogEventsAndTags tag,
|
| Code* code, int args_count);
|
| void CodeMovingGCEvent() {}
|
|
|