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