Index: src/cpu-profiler.h |
diff --git a/src/cpu-profiler.h b/src/cpu-profiler.h |
index 98096be090c7b6b0dfd5ebaa72791728aad17a12..61d40f02aa1a67cac39c1c8754564116f8020ddd 100644 |
--- a/src/cpu-profiler.h |
+++ b/src/cpu-profiler.h |
@@ -49,7 +49,8 @@ class TokenEnumerator; |
#define CODE_EVENTS_TYPE_LIST(V) \ |
V(CODE_CREATION, CodeCreateEventRecord) \ |
V(CODE_MOVE, CodeMoveEventRecord) \ |
- V(SHARED_FUNC_MOVE, SharedFunctionInfoMoveEventRecord) |
+ V(SHARED_FUNC_MOVE, SharedFunctionInfoMoveEventRecord) \ |
+ V(REPORT_BUILTIN, ReportBuiltinEventRecord) |
class CodeEventRecord { |
@@ -96,6 +97,15 @@ class SharedFunctionInfoMoveEventRecord : public CodeEventRecord { |
}; |
+class ReportBuiltinEventRecord : public CodeEventRecord { |
+ public: |
+ Address start; |
+ Builtins::Name builtin_id; |
+ |
+ INLINE(void UpdateCodeMap(CodeMap* code_map)); |
+}; |
+ |
+ |
class TickSampleEventRecord { |
public: |
// The parameterless constructor is used when we dequeue data from |
@@ -246,6 +256,7 @@ class CpuProfiler { |
void StopProcessorIfLastProfile(const char* title); |
void StopProcessor(); |
void ResetProfiles(); |
+ void LogBuiltins(); |
Isolate* isolate_; |
CpuProfilesCollection* profiles_; |