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 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
595 /* Amount of source code compiled with the full codegen. */ \ | 595 /* Amount of source code compiled with the full codegen. */ \ |
596 SC(total_full_codegen_source_size, V8.TotalFullCodegenSourceSize) \ | 596 SC(total_full_codegen_source_size, V8.TotalFullCodegenSourceSize) \ |
597 /* Number of contexts created from scratch. */ \ | 597 /* Number of contexts created from scratch. */ \ |
598 SC(contexts_created_from_scratch, V8.ContextsCreatedFromScratch) \ | 598 SC(contexts_created_from_scratch, V8.ContextsCreatedFromScratch) \ |
599 /* Number of contexts created by partial snapshot. */ \ | 599 /* Number of contexts created by partial snapshot. */ \ |
600 SC(contexts_created_by_snapshot, V8.ContextsCreatedBySnapshot) \ | 600 SC(contexts_created_by_snapshot, V8.ContextsCreatedBySnapshot) \ |
601 /* Number of code objects found from pc. */ \ | 601 /* Number of code objects found from pc. */ \ |
602 SC(pc_to_code, V8.PcToCode) \ | 602 SC(pc_to_code, V8.PcToCode) \ |
603 SC(pc_to_code_cached, V8.PcToCodeCached) \ | 603 SC(pc_to_code_cached, V8.PcToCodeCached) \ |
604 /* The store-buffer implementation of the write barrier. */ \ | 604 /* The store-buffer implementation of the write barrier. */ \ |
605 SC(store_buffer_compactions, V8.StoreBufferCompactions) \ | |
606 SC(store_buffer_overflows, V8.StoreBufferOverflows) | 605 SC(store_buffer_overflows, V8.StoreBufferOverflows) |
607 | 606 |
608 | 607 |
609 #define STATS_COUNTER_LIST_2(SC) \ | 608 #define STATS_COUNTER_LIST_2(SC) \ |
610 /* Number of code stubs. */ \ | 609 /* Number of code stubs. */ \ |
611 SC(code_stubs, V8.CodeStubs) \ | 610 SC(code_stubs, V8.CodeStubs) \ |
612 /* Amount of stub code. */ \ | 611 /* Amount of stub code. */ \ |
613 SC(total_stubs_code_size, V8.TotalStubsCodeSize) \ | 612 SC(total_stubs_code_size, V8.TotalStubsCodeSize) \ |
614 /* Amount of (JS) compiled code. */ \ | 613 /* Amount of (JS) compiled code. */ \ |
615 SC(total_compiled_code_size, V8.TotalCompiledCodeSize) \ | 614 SC(total_compiled_code_size, V8.TotalCompiledCodeSize) \ |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
896 | 895 |
897 explicit Counters(Isolate* isolate); | 896 explicit Counters(Isolate* isolate); |
898 | 897 |
899 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); | 898 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); |
900 }; | 899 }; |
901 | 900 |
902 } // namespace internal | 901 } // namespace internal |
903 } // namespace v8 | 902 } // namespace v8 |
904 | 903 |
905 #endif // V8_COUNTERS_H_ | 904 #endif // V8_COUNTERS_H_ |
OLD | NEW |