| Index: src/profiler/cpu-profiler.h
|
| diff --git a/src/profiler/cpu-profiler.h b/src/profiler/cpu-profiler.h
|
| index aa9f0504771431b7440e9f3d0d5001e15cc42ad0..4c8c8e9eedaea08b4553d11095d985d95d93f483 100644
|
| --- a/src/profiler/cpu-profiler.h
|
| +++ b/src/profiler/cpu-profiler.h
|
| @@ -82,6 +82,8 @@ class CodeDeoptEventRecord : public CodeEventRecord {
|
| const char* deopt_reason;
|
| SourcePosition position;
|
| int deopt_id;
|
| + void* pc;
|
| + int fp_to_sp_delta;
|
|
|
| INLINE(void UpdateCodeMap(CodeMap* code_map));
|
| };
|
| @@ -189,7 +191,7 @@ class ProfilerEventsProcessor : public base::Thread {
|
| } \
|
| } while (false)
|
|
|
| -class CpuProfiler : public CodeEventListener {
|
| +class CpuProfiler {
|
| public:
|
| explicit CpuProfiler(Isolate* isolate);
|
|
|
| @@ -198,7 +200,7 @@ class CpuProfiler : public CodeEventListener {
|
| ProfileGenerator* test_generator,
|
| ProfilerEventsProcessor* test_processor);
|
|
|
| - ~CpuProfiler() override;
|
| + ~CpuProfiler();
|
|
|
| void set_sampling_interval(base::TimeDelta value);
|
| void CollectSample();
|
| @@ -211,34 +213,12 @@ class CpuProfiler : public CodeEventListener {
|
| void DeleteAllProfiles();
|
| void DeleteProfile(CpuProfile* profile);
|
|
|
| + void CodeEventHandler(const CodeEventsContainer& evt_rec);
|
| +
|
| // Invoked from stack sampler (thread or signal handler.)
|
| inline TickSample* StartTickSample();
|
| inline void FinishTickSample();
|
|
|
| - // Must be called via PROFILE macro, otherwise will crash when
|
| - // profiling is not enabled.
|
| - void CallbackEvent(Name* name, Address entry_point) override;
|
| - void CodeCreateEvent(Logger::LogEventsAndTags tag, AbstractCode* code,
|
| - const char* comment) override;
|
| - void CodeCreateEvent(Logger::LogEventsAndTags tag, AbstractCode* code,
|
| - Name* name) override;
|
| - void CodeCreateEvent(Logger::LogEventsAndTags tag, AbstractCode* code,
|
| - SharedFunctionInfo* shared, Name* script_name) override;
|
| - void CodeCreateEvent(Logger::LogEventsAndTags tag, AbstractCode* code,
|
| - SharedFunctionInfo* shared, Name* script_name, int line,
|
| - int column) override;
|
| - void CodeCreateEvent(Logger::LogEventsAndTags tag, AbstractCode* code,
|
| - int args_count) override;
|
| - void CodeMovingGCEvent() override {}
|
| - void CodeMoveEvent(AbstractCode* from, Address to) override;
|
| - void CodeDisableOptEvent(AbstractCode* code,
|
| - SharedFunctionInfo* shared) override;
|
| - void CodeDeoptEvent(Code* code, Address pc, int fp_to_sp_delta);
|
| - void GetterCallbackEvent(Name* name, Address entry_point) override;
|
| - void RegExpCodeCreateEvent(AbstractCode* code, String* source) override;
|
| - void SetterCallbackEvent(Name* name, Address entry_point) override;
|
| - void SharedFunctionInfoMoveEvent(Address from, Address to) override {}
|
| -
|
| bool is_profiling() const { return is_profiling_; }
|
|
|
| ProfileGenerator* generator() const { return generator_; }
|
| @@ -251,9 +231,6 @@ class CpuProfiler : public CodeEventListener {
|
| void StopProcessor();
|
| void ResetProfiles();
|
| void LogBuiltins();
|
| - void RecordInliningInfo(CodeEntry* entry, AbstractCode* abstract_code);
|
| - void RecordDeoptInlinedFrames(CodeEntry* entry, AbstractCode* abstract_code);
|
| - Name* InferScriptName(Name* name, SharedFunctionInfo* info);
|
|
|
| Isolate* isolate_;
|
| base::TimeDelta sampling_interval_;
|
| @@ -262,6 +239,7 @@ class CpuProfiler : public CodeEventListener {
|
| ProfilerEventsProcessor* processor_;
|
| bool saved_is_logging_;
|
| bool is_profiling_;
|
| + bool is_testing_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(CpuProfiler);
|
| };
|
|
|