| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_COMPILER_DISPATCHER_COMPILER_DISPATCHER_TRACER_H_ | 5 #ifndef V8_COMPILER_DISPATCHER_COMPILER_DISPATCHER_TRACER_H_ |
| 6 #define V8_COMPILER_DISPATCHER_COMPILER_DISPATCHER_TRACER_H_ | 6 #define V8_COMPILER_DISPATCHER_COMPILER_DISPATCHER_TRACER_H_ |
| 7 | 7 |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "src/base/macros.h" | 10 #include "src/base/macros.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 Scope(CompilerDispatcherTracer* tracer, ScopeID scope_id, size_t num = 0); | 45 Scope(CompilerDispatcherTracer* tracer, ScopeID scope_id, size_t num = 0); |
| 46 ~Scope(); | 46 ~Scope(); |
| 47 | 47 |
| 48 static const char* Name(ScopeID scoped_id); | 48 static const char* Name(ScopeID scoped_id); |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 CompilerDispatcherTracer* tracer_; | 51 CompilerDispatcherTracer* tracer_; |
| 52 ScopeID scope_id_; | 52 ScopeID scope_id_; |
| 53 size_t num_; | 53 size_t num_; |
| 54 double start_time_; | 54 double start_time_; |
| 55 RuntimeCallTimer timer_; | |
| 56 | 55 |
| 57 DISALLOW_COPY_AND_ASSIGN(Scope); | 56 DISALLOW_COPY_AND_ASSIGN(Scope); |
| 58 }; | 57 }; |
| 59 | 58 |
| 60 explicit CompilerDispatcherTracer(Isolate* isolate); | 59 explicit CompilerDispatcherTracer(Isolate* isolate); |
| 61 ~CompilerDispatcherTracer(); | 60 ~CompilerDispatcherTracer(); |
| 62 | 61 |
| 63 void RecordPrepareToParse(double duration_ms); | 62 void RecordPrepareToParse(double duration_ms); |
| 64 void RecordParse(double duration_ms, size_t source_length); | 63 void RecordParse(double duration_ms, size_t source_length); |
| 65 void RecordFinalizeParsing(double duration_ms); | 64 void RecordFinalizeParsing(double duration_ms); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 89 | 88 |
| 90 RuntimeCallStats* runtime_call_stats_; | 89 RuntimeCallStats* runtime_call_stats_; |
| 91 | 90 |
| 92 DISALLOW_COPY_AND_ASSIGN(CompilerDispatcherTracer); | 91 DISALLOW_COPY_AND_ASSIGN(CompilerDispatcherTracer); |
| 93 }; | 92 }; |
| 94 | 93 |
| 95 } // namespace internal | 94 } // namespace internal |
| 96 } // namespace v8 | 95 } // namespace v8 |
| 97 | 96 |
| 98 #endif // V8_COMPILER_DISPATCHER_COMPILER_DISPATCHER_TRACER_H_ | 97 #endif // V8_COMPILER_DISPATCHER_COMPILER_DISPATCHER_TRACER_H_ |
| OLD | NEW |