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/atomic-utils.h" | 10 #include "src/base/atomic-utils.h" |
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
793 V(StoreIC_StoreCallback) \ | 793 V(StoreIC_StoreCallback) \ |
794 V(StoreIC_StoreField) \ | 794 V(StoreIC_StoreField) \ |
795 V(StoreIC_StoreFieldDH) \ | 795 V(StoreIC_StoreFieldDH) \ |
796 V(StoreIC_StoreFieldStub) \ | 796 V(StoreIC_StoreFieldStub) \ |
797 V(StoreIC_StoreGlobal) \ | 797 V(StoreIC_StoreGlobal) \ |
798 V(StoreIC_StoreGlobalTransition) \ | 798 V(StoreIC_StoreGlobalTransition) \ |
799 V(StoreIC_StoreInterceptorStub) \ | 799 V(StoreIC_StoreInterceptorStub) \ |
800 V(StoreIC_StoreNormal) \ | 800 V(StoreIC_StoreNormal) \ |
801 V(StoreIC_StoreScriptContextFieldStub) \ | 801 V(StoreIC_StoreScriptContextFieldStub) \ |
802 V(StoreIC_StoreTransition) \ | 802 V(StoreIC_StoreTransition) \ |
| 803 V(StoreIC_StoreTransitionDH) \ |
803 V(StoreIC_StoreViaSetter) | 804 V(StoreIC_StoreViaSetter) |
804 | 805 |
805 class RuntimeCallStats { | 806 class RuntimeCallStats { |
806 public: | 807 public: |
807 typedef RuntimeCallCounter RuntimeCallStats::*CounterId; | 808 typedef RuntimeCallCounter RuntimeCallStats::*CounterId; |
808 | 809 |
809 #define CALL_RUNTIME_COUNTER(name) \ | 810 #define CALL_RUNTIME_COUNTER(name) \ |
810 RuntimeCallCounter name = RuntimeCallCounter(#name); | 811 RuntimeCallCounter name = RuntimeCallCounter(#name); |
811 FOR_EACH_MANUAL_COUNTER(CALL_RUNTIME_COUNTER) | 812 FOR_EACH_MANUAL_COUNTER(CALL_RUNTIME_COUNTER) |
812 #undef CALL_RUNTIME_COUNTER | 813 #undef CALL_RUNTIME_COUNTER |
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1311 } | 1312 } |
1312 | 1313 |
1313 Isolate* isolate_ = nullptr; | 1314 Isolate* isolate_ = nullptr; |
1314 RuntimeCallTimer timer_; | 1315 RuntimeCallTimer timer_; |
1315 }; | 1316 }; |
1316 | 1317 |
1317 } // namespace internal | 1318 } // namespace internal |
1318 } // namespace v8 | 1319 } // namespace v8 |
1319 | 1320 |
1320 #endif // V8_COUNTERS_H_ | 1321 #endif // V8_COUNTERS_H_ |
OLD | NEW |