| 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 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 739 typedef RuntimeCallCounter RuntimeCallStats::*CounterId; | 739 typedef RuntimeCallCounter RuntimeCallStats::*CounterId; |
| 740 | 740 |
| 741 #define CALL_RUNTIME_COUNTER(name) \ | 741 #define CALL_RUNTIME_COUNTER(name) \ |
| 742 RuntimeCallCounter name = RuntimeCallCounter(#name); | 742 RuntimeCallCounter name = RuntimeCallCounter(#name); |
| 743 FOR_EACH_MANUAL_COUNTER(CALL_RUNTIME_COUNTER) | 743 FOR_EACH_MANUAL_COUNTER(CALL_RUNTIME_COUNTER) |
| 744 #undef CALL_RUNTIME_COUNTER | 744 #undef CALL_RUNTIME_COUNTER |
| 745 #define CALL_RUNTIME_COUNTER(name, nargs, ressize) \ | 745 #define CALL_RUNTIME_COUNTER(name, nargs, ressize) \ |
| 746 RuntimeCallCounter Runtime_##name = RuntimeCallCounter(#name); | 746 RuntimeCallCounter Runtime_##name = RuntimeCallCounter(#name); |
| 747 FOR_EACH_INTRINSIC(CALL_RUNTIME_COUNTER) | 747 FOR_EACH_INTRINSIC(CALL_RUNTIME_COUNTER) |
| 748 #undef CALL_RUNTIME_COUNTER | 748 #undef CALL_RUNTIME_COUNTER |
| 749 #define CALL_BUILTIN_COUNTER(name, type) \ | 749 #define CALL_BUILTIN_COUNTER(name) \ |
| 750 RuntimeCallCounter Builtin_##name = RuntimeCallCounter(#name); | 750 RuntimeCallCounter Builtin_##name = RuntimeCallCounter(#name); |
| 751 BUILTIN_LIST_C(CALL_BUILTIN_COUNTER) | 751 BUILTIN_LIST_C(CALL_BUILTIN_COUNTER) |
| 752 #undef CALL_BUILTIN_COUNTER | 752 #undef CALL_BUILTIN_COUNTER |
| 753 #define CALL_BUILTIN_COUNTER(name) \ | 753 #define CALL_BUILTIN_COUNTER(name) \ |
| 754 RuntimeCallCounter API_##name = RuntimeCallCounter("API_" #name); | 754 RuntimeCallCounter API_##name = RuntimeCallCounter("API_" #name); |
| 755 FOR_EACH_API_COUNTER(CALL_BUILTIN_COUNTER) | 755 FOR_EACH_API_COUNTER(CALL_BUILTIN_COUNTER) |
| 756 #undef CALL_BUILTIN_COUNTER | 756 #undef CALL_BUILTIN_COUNTER |
| 757 #define CALL_BUILTIN_COUNTER(name) \ | 757 #define CALL_BUILTIN_COUNTER(name) \ |
| 758 RuntimeCallCounter Handler_##name = RuntimeCallCounter(#name); | 758 RuntimeCallCounter Handler_##name = RuntimeCallCounter(#name); |
| 759 FOR_EACH_HANDLER_COUNTER(CALL_BUILTIN_COUNTER) | 759 FOR_EACH_HANDLER_COUNTER(CALL_BUILTIN_COUNTER) |
| (...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1233 | 1233 |
| 1234 explicit Counters(Isolate* isolate); | 1234 explicit Counters(Isolate* isolate); |
| 1235 | 1235 |
| 1236 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); | 1236 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); |
| 1237 }; | 1237 }; |
| 1238 | 1238 |
| 1239 } // namespace internal | 1239 } // namespace internal |
| 1240 } // namespace v8 | 1240 } // namespace v8 |
| 1241 | 1241 |
| 1242 #endif // V8_COUNTERS_H_ | 1242 #endif // V8_COUNTERS_H_ |
| OLD | NEW |