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 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
590 SC(total_full_codegen_source_size, V8.TotalFullCodegenSourceSize) \ | 590 SC(total_full_codegen_source_size, V8.TotalFullCodegenSourceSize) \ |
591 /* Number of contexts created from scratch. */ \ | 591 /* Number of contexts created from scratch. */ \ |
592 SC(contexts_created_from_scratch, V8.ContextsCreatedFromScratch) \ | 592 SC(contexts_created_from_scratch, V8.ContextsCreatedFromScratch) \ |
593 /* Number of contexts created by partial snapshot. */ \ | 593 /* Number of contexts created by partial snapshot. */ \ |
594 SC(contexts_created_by_snapshot, V8.ContextsCreatedBySnapshot) \ | 594 SC(contexts_created_by_snapshot, V8.ContextsCreatedBySnapshot) \ |
595 /* Number of code objects found from pc. */ \ | 595 /* Number of code objects found from pc. */ \ |
596 SC(pc_to_code, V8.PcToCode) \ | 596 SC(pc_to_code, V8.PcToCode) \ |
597 SC(pc_to_code_cached, V8.PcToCodeCached) \ | 597 SC(pc_to_code_cached, V8.PcToCodeCached) \ |
598 /* The store-buffer implementation of the write barrier. */ \ | 598 /* The store-buffer implementation of the write barrier. */ \ |
599 SC(store_buffer_compactions, V8.StoreBufferCompactions) \ | 599 SC(store_buffer_compactions, V8.StoreBufferCompactions) \ |
600 SC(store_buffer_overflows, V8.StoreBufferOverflows) | 600 SC(store_buffer_overflows, V8.StoreBufferOverflows) \ |
| 601 /* Number of exceptions thrown */ \ |
| 602 SC(exceptions_thrown, V8.ExceptionsThrown) |
601 | 603 |
602 | 604 |
603 #define STATS_COUNTER_LIST_2(SC) \ | 605 #define STATS_COUNTER_LIST_2(SC) \ |
604 /* Number of code stubs. */ \ | 606 /* Number of code stubs. */ \ |
605 SC(code_stubs, V8.CodeStubs) \ | 607 SC(code_stubs, V8.CodeStubs) \ |
606 /* Amount of stub code. */ \ | 608 /* Amount of stub code. */ \ |
607 SC(total_stubs_code_size, V8.TotalStubsCodeSize) \ | 609 SC(total_stubs_code_size, V8.TotalStubsCodeSize) \ |
608 /* Amount of (JS) compiled code. */ \ | 610 /* Amount of (JS) compiled code. */ \ |
609 SC(total_compiled_code_size, V8.TotalCompiledCodeSize) \ | 611 SC(total_compiled_code_size, V8.TotalCompiledCodeSize) \ |
610 SC(gc_compactor_caused_by_request, V8.GCCompactorCausedByRequest) \ | 612 SC(gc_compactor_caused_by_request, V8.GCCompactorCausedByRequest) \ |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
886 | 888 |
887 explicit Counters(Isolate* isolate); | 889 explicit Counters(Isolate* isolate); |
888 | 890 |
889 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); | 891 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); |
890 }; | 892 }; |
891 | 893 |
892 } // namespace internal | 894 } // namespace internal |
893 } // namespace v8 | 895 } // namespace v8 |
894 | 896 |
895 #endif // V8_COUNTERS_H_ | 897 #endif // V8_COUNTERS_H_ |
OLD | NEW |