| 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 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 HT(compile_script, V8.CompileScriptMicroSeconds, 1000000, MICROSECOND) | 392 HT(compile_script, V8.CompileScriptMicroSeconds, 1000000, MICROSECOND) |
| 393 | 393 |
| 394 | 394 |
| 395 #define AGGREGATABLE_HISTOGRAM_TIMER_LIST(AHT) \ | 395 #define AGGREGATABLE_HISTOGRAM_TIMER_LIST(AHT) \ |
| 396 AHT(compile_lazy, V8.CompileLazyMicroSeconds) | 396 AHT(compile_lazy, V8.CompileLazyMicroSeconds) |
| 397 | 397 |
| 398 | 398 |
| 399 #define HISTOGRAM_PERCENTAGE_LIST(HP) \ | 399 #define HISTOGRAM_PERCENTAGE_LIST(HP) \ |
| 400 /* Heap fragmentation. */ \ | 400 /* Heap fragmentation. */ \ |
| 401 HP(external_fragmentation_total, V8.MemoryExternalFragmentationTotal) \ | 401 HP(external_fragmentation_total, V8.MemoryExternalFragmentationTotal) \ |
| 402 HP(external_fragmentation_old_pointer_space, \ | 402 HP(external_fragmentation_old_space, V8.MemoryExternalFragmentationOldSpace) \ |
| 403 V8.MemoryExternalFragmentationOldPointerSpace) \ | |
| 404 HP(external_fragmentation_old_data_space, \ | |
| 405 V8.MemoryExternalFragmentationOldDataSpace) \ | |
| 406 HP(external_fragmentation_code_space, \ | 403 HP(external_fragmentation_code_space, \ |
| 407 V8.MemoryExternalFragmentationCodeSpace) \ | 404 V8.MemoryExternalFragmentationCodeSpace) \ |
| 408 HP(external_fragmentation_map_space, V8.MemoryExternalFragmentationMapSpace) \ | 405 HP(external_fragmentation_map_space, V8.MemoryExternalFragmentationMapSpace) \ |
| 409 HP(external_fragmentation_cell_space, \ | 406 HP(external_fragmentation_cell_space, \ |
| 410 V8.MemoryExternalFragmentationCellSpace) \ | 407 V8.MemoryExternalFragmentationCellSpace) \ |
| 411 HP(external_fragmentation_lo_space, V8.MemoryExternalFragmentationLoSpace) \ | 408 HP(external_fragmentation_lo_space, V8.MemoryExternalFragmentationLoSpace) \ |
| 412 /* Percentages of heap committed to each space. */ \ | 409 /* Percentages of heap committed to each space. */ \ |
| 413 HP(heap_fraction_new_space, V8.MemoryHeapFractionNewSpace) \ | 410 HP(heap_fraction_new_space, V8.MemoryHeapFractionNewSpace) \ |
| 414 HP(heap_fraction_old_pointer_space, V8.MemoryHeapFractionOldPointerSpace) \ | 411 HP(heap_fraction_old_space, V8.MemoryHeapFractionOldSpace) \ |
| 415 HP(heap_fraction_old_data_space, V8.MemoryHeapFractionOldDataSpace) \ | |
| 416 HP(heap_fraction_code_space, V8.MemoryHeapFractionCodeSpace) \ | 412 HP(heap_fraction_code_space, V8.MemoryHeapFractionCodeSpace) \ |
| 417 HP(heap_fraction_map_space, V8.MemoryHeapFractionMapSpace) \ | 413 HP(heap_fraction_map_space, V8.MemoryHeapFractionMapSpace) \ |
| 418 HP(heap_fraction_cell_space, V8.MemoryHeapFractionCellSpace) \ | 414 HP(heap_fraction_cell_space, V8.MemoryHeapFractionCellSpace) \ |
| 419 HP(heap_fraction_lo_space, V8.MemoryHeapFractionLoSpace) \ | 415 HP(heap_fraction_lo_space, V8.MemoryHeapFractionLoSpace) \ |
| 420 /* Percentage of crankshafted codegen. */ \ | 416 /* Percentage of crankshafted codegen. */ \ |
| 421 HP(codegen_fraction_crankshaft, V8.CodegenFractionCrankshaft) | 417 HP(codegen_fraction_crankshaft, V8.CodegenFractionCrankshaft) |
| 422 | 418 |
| 423 | 419 |
| 424 #define HISTOGRAM_MEMORY_LIST(HM) \ | 420 #define HISTOGRAM_MEMORY_LIST(HM) \ |
| 425 HM(heap_sample_total_committed, V8.MemoryHeapSampleTotalCommitted) \ | 421 HM(heap_sample_total_committed, V8.MemoryHeapSampleTotalCommitted) \ |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 583 SC(bounds_checks_hoisted, V8.BoundsChecksHoisted) \ | 579 SC(bounds_checks_hoisted, V8.BoundsChecksHoisted) \ |
| 584 SC(soft_deopts_requested, V8.SoftDeoptsRequested) \ | 580 SC(soft_deopts_requested, V8.SoftDeoptsRequested) \ |
| 585 SC(soft_deopts_inserted, V8.SoftDeoptsInserted) \ | 581 SC(soft_deopts_inserted, V8.SoftDeoptsInserted) \ |
| 586 SC(soft_deopts_executed, V8.SoftDeoptsExecuted) \ | 582 SC(soft_deopts_executed, V8.SoftDeoptsExecuted) \ |
| 587 /* Number of write barriers in generated code. */ \ | 583 /* Number of write barriers in generated code. */ \ |
| 588 SC(write_barriers_dynamic, V8.WriteBarriersDynamic) \ | 584 SC(write_barriers_dynamic, V8.WriteBarriersDynamic) \ |
| 589 SC(write_barriers_static, V8.WriteBarriersStatic) \ | 585 SC(write_barriers_static, V8.WriteBarriersStatic) \ |
| 590 SC(new_space_bytes_available, V8.MemoryNewSpaceBytesAvailable) \ | 586 SC(new_space_bytes_available, V8.MemoryNewSpaceBytesAvailable) \ |
| 591 SC(new_space_bytes_committed, V8.MemoryNewSpaceBytesCommitted) \ | 587 SC(new_space_bytes_committed, V8.MemoryNewSpaceBytesCommitted) \ |
| 592 SC(new_space_bytes_used, V8.MemoryNewSpaceBytesUsed) \ | 588 SC(new_space_bytes_used, V8.MemoryNewSpaceBytesUsed) \ |
| 593 SC(old_pointer_space_bytes_available, \ | 589 SC(old_space_bytes_available, V8.MemoryOldSpaceBytesAvailable) \ |
| 594 V8.MemoryOldPointerSpaceBytesAvailable) \ | 590 SC(old_space_bytes_committed, V8.MemoryOldSpaceBytesCommitted) \ |
| 595 SC(old_pointer_space_bytes_committed, \ | 591 SC(old_space_bytes_used, V8.MemoryOldSpaceBytesUsed) \ |
| 596 V8.MemoryOldPointerSpaceBytesCommitted) \ | |
| 597 SC(old_pointer_space_bytes_used, V8.MemoryOldPointerSpaceBytesUsed) \ | |
| 598 SC(old_data_space_bytes_available, V8.MemoryOldDataSpaceBytesAvailable) \ | |
| 599 SC(old_data_space_bytes_committed, V8.MemoryOldDataSpaceBytesCommitted) \ | |
| 600 SC(old_data_space_bytes_used, V8.MemoryOldDataSpaceBytesUsed) \ | |
| 601 SC(code_space_bytes_available, V8.MemoryCodeSpaceBytesAvailable) \ | 592 SC(code_space_bytes_available, V8.MemoryCodeSpaceBytesAvailable) \ |
| 602 SC(code_space_bytes_committed, V8.MemoryCodeSpaceBytesCommitted) \ | 593 SC(code_space_bytes_committed, V8.MemoryCodeSpaceBytesCommitted) \ |
| 603 SC(code_space_bytes_used, V8.MemoryCodeSpaceBytesUsed) \ | 594 SC(code_space_bytes_used, V8.MemoryCodeSpaceBytesUsed) \ |
| 604 SC(map_space_bytes_available, V8.MemoryMapSpaceBytesAvailable) \ | 595 SC(map_space_bytes_available, V8.MemoryMapSpaceBytesAvailable) \ |
| 605 SC(map_space_bytes_committed, V8.MemoryMapSpaceBytesCommitted) \ | 596 SC(map_space_bytes_committed, V8.MemoryMapSpaceBytesCommitted) \ |
| 606 SC(map_space_bytes_used, V8.MemoryMapSpaceBytesUsed) \ | 597 SC(map_space_bytes_used, V8.MemoryMapSpaceBytesUsed) \ |
| 607 SC(cell_space_bytes_available, V8.MemoryCellSpaceBytesAvailable) \ | 598 SC(cell_space_bytes_available, V8.MemoryCellSpaceBytesAvailable) \ |
| 608 SC(cell_space_bytes_committed, V8.MemoryCellSpaceBytesCommitted) \ | 599 SC(cell_space_bytes_committed, V8.MemoryCellSpaceBytesCommitted) \ |
| 609 SC(cell_space_bytes_used, V8.MemoryCellSpaceBytesUsed) \ | 600 SC(cell_space_bytes_used, V8.MemoryCellSpaceBytesUsed) \ |
| 610 SC(lo_space_bytes_available, V8.MemoryLoSpaceBytesAvailable) \ | 601 SC(lo_space_bytes_available, V8.MemoryLoSpaceBytesAvailable) \ |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 771 friend class Isolate; | 762 friend class Isolate; |
| 772 | 763 |
| 773 explicit Counters(Isolate* isolate); | 764 explicit Counters(Isolate* isolate); |
| 774 | 765 |
| 775 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); | 766 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); |
| 776 }; | 767 }; |
| 777 | 768 |
| 778 } } // namespace v8::internal | 769 } } // namespace v8::internal |
| 779 | 770 |
| 780 #endif // V8_COUNTERS_H_ | 771 #endif // V8_COUNTERS_H_ |
| OLD | NEW |