| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_COUNTERS_H_ | 5 #ifndef V8_COUNTERS_H_ |
| 6 #define V8_COUNTERS_H_ | 6 #define V8_COUNTERS_H_ |
| 7 | 7 |
| 8 #include "include/v8.h" | 8 #include "include/v8.h" |
| 9 #include "src/allocation.h" | 9 #include "src/allocation.h" |
| 10 #include "src/base/platform/elapsed-timer.h" | 10 #include "src/base/platform/elapsed-timer.h" |
| (...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 856 HT(gc_context, V8.GCContext, 10000, \ | 856 HT(gc_context, V8.GCContext, 10000, \ |
| 857 MILLISECOND) /* GC context cleanup time */ \ | 857 MILLISECOND) /* GC context cleanup time */ \ |
| 858 HT(gc_idle_notification, V8.GCIdleNotification, 10000, MILLISECOND) \ | 858 HT(gc_idle_notification, V8.GCIdleNotification, 10000, MILLISECOND) \ |
| 859 HT(gc_incremental_marking, V8.GCIncrementalMarking, 10000, MILLISECOND) \ | 859 HT(gc_incremental_marking, V8.GCIncrementalMarking, 10000, MILLISECOND) \ |
| 860 HT(gc_incremental_marking_start, V8.GCIncrementalMarkingStart, 10000, \ | 860 HT(gc_incremental_marking_start, V8.GCIncrementalMarkingStart, 10000, \ |
| 861 MILLISECOND) \ | 861 MILLISECOND) \ |
| 862 HT(gc_incremental_marking_finalize, V8.GCIncrementalMarkingFinalize, 10000, \ | 862 HT(gc_incremental_marking_finalize, V8.GCIncrementalMarkingFinalize, 10000, \ |
| 863 MILLISECOND) \ | 863 MILLISECOND) \ |
| 864 HT(gc_low_memory_notification, V8.GCLowMemoryNotification, 10000, \ | 864 HT(gc_low_memory_notification, V8.GCLowMemoryNotification, 10000, \ |
| 865 MILLISECOND) \ | 865 MILLISECOND) \ |
| 866 /* Parsing timers. */ \ | |
| 867 HT(parse, V8.ParseMicroSeconds, 1000000, MICROSECOND) \ | |
| 868 HT(parse_lazy, V8.ParseLazyMicroSeconds, 1000000, MICROSECOND) \ | |
| 869 HT(pre_parse, V8.PreParseMicroSeconds, 1000000, MICROSECOND) \ | |
| 870 /* Compilation times. */ \ | 866 /* Compilation times. */ \ |
| 871 HT(compile, V8.CompileMicroSeconds, 1000000, MICROSECOND) \ | 867 HT(compile, V8.CompileMicroSeconds, 1000000, MICROSECOND) \ |
| 872 HT(compile_eval, V8.CompileEvalMicroSeconds, 1000000, MICROSECOND) \ | 868 HT(compile_eval, V8.CompileEvalMicroSeconds, 1000000, MICROSECOND) \ |
| 873 /* Serialization as part of compilation (code caching) */ \ | 869 /* Serialization as part of compilation (code caching) */ \ |
| 874 HT(compile_serialize, V8.CompileSerializeMicroSeconds, 100000, MICROSECOND) \ | 870 HT(compile_serialize, V8.CompileSerializeMicroSeconds, 100000, MICROSECOND) \ |
| 875 HT(compile_deserialize, V8.CompileDeserializeMicroSeconds, 1000000, \ | 871 HT(compile_deserialize, V8.CompileDeserializeMicroSeconds, 1000000, \ |
| 876 MICROSECOND) \ | 872 MICROSECOND) \ |
| 877 /* Total compilation time incl. caching/parsing */ \ | 873 /* Total compilation time incl. caching/parsing */ \ |
| 878 HT(compile_script, V8.CompileScriptMicroSeconds, 1000000, MICROSECOND) \ | 874 HT(compile_script, V8.CompileScriptMicroSeconds, 1000000, MICROSECOND) \ |
| 879 /* Total JavaScript execution time (including callbacks and runtime calls */ \ | 875 /* Total JavaScript execution time (including callbacks and runtime calls */ \ |
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1272 } | 1268 } |
| 1273 | 1269 |
| 1274 Isolate* isolate_ = nullptr; | 1270 Isolate* isolate_ = nullptr; |
| 1275 RuntimeCallTimer timer_; | 1271 RuntimeCallTimer timer_; |
| 1276 }; | 1272 }; |
| 1277 | 1273 |
| 1278 } // namespace internal | 1274 } // namespace internal |
| 1279 } // namespace v8 | 1275 } // namespace v8 |
| 1280 | 1276 |
| 1281 #endif // V8_COUNTERS_H_ | 1277 #endif // V8_COUNTERS_H_ |
| OLD | NEW |