| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 HP(external_fragmentation_old_pointer_space, \ | 56 HP(external_fragmentation_old_pointer_space, \ |
| 57 V8.MemoryExternalFragmentationOldPointerSpace) \ | 57 V8.MemoryExternalFragmentationOldPointerSpace) \ |
| 58 HP(external_fragmentation_old_data_space, \ | 58 HP(external_fragmentation_old_data_space, \ |
| 59 V8.MemoryExternalFragmentationOldDataSpace) \ | 59 V8.MemoryExternalFragmentationOldDataSpace) \ |
| 60 HP(external_fragmentation_code_space, \ | 60 HP(external_fragmentation_code_space, \ |
| 61 V8.MemoryExternalFragmentationCodeSpace) \ | 61 V8.MemoryExternalFragmentationCodeSpace) \ |
| 62 HP(external_fragmentation_map_space, \ | 62 HP(external_fragmentation_map_space, \ |
| 63 V8.MemoryExternalFragmentationMapSpace) \ | 63 V8.MemoryExternalFragmentationMapSpace) \ |
| 64 HP(external_fragmentation_cell_space, \ | 64 HP(external_fragmentation_cell_space, \ |
| 65 V8.MemoryExternalFragmentationCellSpace) \ | 65 V8.MemoryExternalFragmentationCellSpace) \ |
| 66 HP(external_fragmentation_property_cell_space, \ |
| 67 V8.MemoryExternalFragmentationPropertyCellSpace) \ |
| 66 HP(external_fragmentation_lo_space, \ | 68 HP(external_fragmentation_lo_space, \ |
| 67 V8.MemoryExternalFragmentationLoSpace) \ | 69 V8.MemoryExternalFragmentationLoSpace) \ |
| 68 HP(heap_fraction_map_space, \ | 70 HP(heap_fraction_map_space, \ |
| 69 V8.MemoryHeapFractionMapSpace) \ | 71 V8.MemoryHeapFractionMapSpace) \ |
| 70 HP(heap_fraction_cell_space, \ | 72 HP(heap_fraction_cell_space, \ |
| 71 V8.MemoryHeapFractionCellSpace) \ | 73 V8.MemoryHeapFractionCellSpace) \ |
| 74 HP(heap_fraction_property_cell_space, \ |
| 75 V8.MemoryHeapFractionPropertyCellSpace) \ |
| 72 | 76 |
| 73 | 77 |
| 74 #define HISTOGRAM_MEMORY_LIST(HM) \ | 78 #define HISTOGRAM_MEMORY_LIST(HM) \ |
| 75 HM(heap_sample_total_committed, V8.MemoryHeapSampleTotalCommitted) \ | 79 HM(heap_sample_total_committed, V8.MemoryHeapSampleTotalCommitted) \ |
| 76 HM(heap_sample_total_used, V8.MemoryHeapSampleTotalUsed) \ | 80 HM(heap_sample_total_used, V8.MemoryHeapSampleTotalUsed) \ |
| 77 HM(heap_sample_map_space_committed, \ | 81 HM(heap_sample_map_space_committed, \ |
| 78 V8.MemoryHeapSampleMapSpaceCommitted) \ | 82 V8.MemoryHeapSampleMapSpaceCommitted) \ |
| 79 HM(heap_sample_cell_space_committed, \ | 83 HM(heap_sample_cell_space_committed, \ |
| 80 V8.MemoryHeapSampleCellSpaceCommitted) | 84 V8.MemoryHeapSampleCellSpaceCommitted) \ |
| 85 HM(heap_sample_property_cell_space_committed, \ |
| 86 V8.MemoryHeapSamplePropertyCellSpaceCommitted) \ |
| 81 | 87 |
| 82 | 88 |
| 83 // WARNING: STATS_COUNTER_LIST_* is a very large macro that is causing MSVC | 89 // WARNING: STATS_COUNTER_LIST_* is a very large macro that is causing MSVC |
| 84 // Intellisense to crash. It was broken into two macros (each of length 40 | 90 // Intellisense to crash. It was broken into two macros (each of length 40 |
| 85 // lines) rather than one macro (of length about 80 lines) to work around | 91 // lines) rather than one macro (of length about 80 lines) to work around |
| 86 // this problem. Please avoid using recursive macros of this length when | 92 // this problem. Please avoid using recursive macros of this length when |
| 87 // possible. | 93 // possible. |
| 88 #define STATS_COUNTER_LIST_1(SC) \ | 94 #define STATS_COUNTER_LIST_1(SC) \ |
| 89 /* Global Handle Count*/ \ | 95 /* Global Handle Count*/ \ |
| 90 SC(global_handles, V8.GlobalHandles) \ | 96 SC(global_handles, V8.GlobalHandles) \ |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 SC(old_data_space_bytes_used, V8.MemoryOldDataSpaceBytesUsed) \ | 296 SC(old_data_space_bytes_used, V8.MemoryOldDataSpaceBytesUsed) \ |
| 291 SC(code_space_bytes_available, V8.MemoryCodeSpaceBytesAvailable) \ | 297 SC(code_space_bytes_available, V8.MemoryCodeSpaceBytesAvailable) \ |
| 292 SC(code_space_bytes_committed, V8.MemoryCodeSpaceBytesCommitted) \ | 298 SC(code_space_bytes_committed, V8.MemoryCodeSpaceBytesCommitted) \ |
| 293 SC(code_space_bytes_used, V8.MemoryCodeSpaceBytesUsed) \ | 299 SC(code_space_bytes_used, V8.MemoryCodeSpaceBytesUsed) \ |
| 294 SC(map_space_bytes_available, V8.MemoryMapSpaceBytesAvailable) \ | 300 SC(map_space_bytes_available, V8.MemoryMapSpaceBytesAvailable) \ |
| 295 SC(map_space_bytes_committed, V8.MemoryMapSpaceBytesCommitted) \ | 301 SC(map_space_bytes_committed, V8.MemoryMapSpaceBytesCommitted) \ |
| 296 SC(map_space_bytes_used, V8.MemoryMapSpaceBytesUsed) \ | 302 SC(map_space_bytes_used, V8.MemoryMapSpaceBytesUsed) \ |
| 297 SC(cell_space_bytes_available, V8.MemoryCellSpaceBytesAvailable) \ | 303 SC(cell_space_bytes_available, V8.MemoryCellSpaceBytesAvailable) \ |
| 298 SC(cell_space_bytes_committed, V8.MemoryCellSpaceBytesCommitted) \ | 304 SC(cell_space_bytes_committed, V8.MemoryCellSpaceBytesCommitted) \ |
| 299 SC(cell_space_bytes_used, V8.MemoryCellSpaceBytesUsed) \ | 305 SC(cell_space_bytes_used, V8.MemoryCellSpaceBytesUsed) \ |
| 306 SC(property_cell_space_bytes_available, \ |
| 307 V8.MemoryPropertyCellSpaceBytesAvailable) \ |
| 308 SC(property_cell_space_bytes_committed, \ |
| 309 V8.MemoryPropertyCellSpaceBytesCommitted) \ |
| 310 SC(property_cell_space_bytes_used, \ |
| 311 V8.MemoryPropertyCellSpaceBytesUsed) \ |
| 300 SC(lo_space_bytes_available, V8.MemoryLoSpaceBytesAvailable) \ | 312 SC(lo_space_bytes_available, V8.MemoryLoSpaceBytesAvailable) \ |
| 301 SC(lo_space_bytes_committed, V8.MemoryLoSpaceBytesCommitted) \ | 313 SC(lo_space_bytes_committed, V8.MemoryLoSpaceBytesCommitted) \ |
| 302 SC(lo_space_bytes_used, V8.MemoryLoSpaceBytesUsed) | 314 SC(lo_space_bytes_used, V8.MemoryLoSpaceBytesUsed) |
| 303 | 315 |
| 304 | 316 |
| 305 // This file contains all the v8 counters that are in use. | 317 // This file contains all the v8 counters that are in use. |
| 306 class Counters { | 318 class Counters { |
| 307 public: | 319 public: |
| 308 #define HT(name, caption) \ | 320 #define HT(name, caption) \ |
| 309 HistogramTimer* name() { return &name##_; } | 321 HistogramTimer* name() { return &name##_; } |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 friend class Isolate; | 433 friend class Isolate; |
| 422 | 434 |
| 423 explicit Counters(Isolate* isolate); | 435 explicit Counters(Isolate* isolate); |
| 424 | 436 |
| 425 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); | 437 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); |
| 426 }; | 438 }; |
| 427 | 439 |
| 428 } } // namespace v8::internal | 440 } } // namespace v8::internal |
| 429 | 441 |
| 430 #endif // V8_V8_COUNTERS_H_ | 442 #endif // V8_V8_COUNTERS_H_ |
| OLD | NEW |