| 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/atomic-utils.h" | 10 #include "src/base/atomic-utils.h" |
| (...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1010 HM(heap_sample_code_space_committed, V8.MemoryHeapSampleCodeSpaceCommitted) \ | 1010 HM(heap_sample_code_space_committed, V8.MemoryHeapSampleCodeSpaceCommitted) \ |
| 1011 HM(heap_sample_maximum_committed, V8.MemoryHeapSampleMaximumCommitted) | 1011 HM(heap_sample_maximum_committed, V8.MemoryHeapSampleMaximumCommitted) |
| 1012 | 1012 |
| 1013 #define HISTOGRAM_MEMORY_LIST(HM) \ | 1013 #define HISTOGRAM_MEMORY_LIST(HM) \ |
| 1014 HM(memory_heap_committed, V8.MemoryHeapCommitted) \ | 1014 HM(memory_heap_committed, V8.MemoryHeapCommitted) \ |
| 1015 HM(memory_heap_used, V8.MemoryHeapUsed) \ | 1015 HM(memory_heap_used, V8.MemoryHeapUsed) \ |
| 1016 /* Asm/Wasm */ \ | 1016 /* Asm/Wasm */ \ |
| 1017 HM(wasm_decode_module_peak_memory_bytes, V8.WasmDecodeModulePeakMemoryBytes) \ | 1017 HM(wasm_decode_module_peak_memory_bytes, V8.WasmDecodeModulePeakMemoryBytes) \ |
| 1018 HM(wasm_compile_function_peak_memory_bytes, \ | 1018 HM(wasm_compile_function_peak_memory_bytes, \ |
| 1019 V8.WasmCompileFunctionPeakMemoryBytes) \ | 1019 V8.WasmCompileFunctionPeakMemoryBytes) \ |
| 1020 HM(wasm_min_mem_pages_count, V8.WasmMinMemPagesCount) \ | 1020 /* TODO(karlschimpf) Update chrome flags to reflect asm/wasm split. */ \ |
| 1021 HM(wasm_asm_min_mem_pages_count, V8.WasmMinMemPagesCount) \ |
| 1022 HM(wasm_wasm_min_mem_pages_count, V8.WasmMinMemPagesCount) \ |
| 1021 HM(wasm_max_mem_pages_count, V8.WasmMaxMemPagesCount) \ | 1023 HM(wasm_max_mem_pages_count, V8.WasmMaxMemPagesCount) \ |
| 1022 HM(wasm_function_size_bytes, V8.WasmFunctionSizeBytes) \ | 1024 HM(wasm_function_size_bytes, V8.WasmFunctionSizeBytes) \ |
| 1023 HM(wasm_module_size_bytes, V8.WasmModuleSizeBytes) | 1025 HM(wasm_module_size_bytes, V8.WasmModuleSizeBytes) |
| 1024 | 1026 |
| 1025 // WARNING: STATS_COUNTER_LIST_* is a very large macro that is causing MSVC | 1027 // WARNING: STATS_COUNTER_LIST_* is a very large macro that is causing MSVC |
| 1026 // Intellisense to crash. It was broken into two macros (each of length 40 | 1028 // Intellisense to crash. It was broken into two macros (each of length 40 |
| 1027 // lines) rather than one macro (of length about 80 lines) to work around | 1029 // lines) rather than one macro (of length about 80 lines) to work around |
| 1028 // this problem. Please avoid using recursive macros of this length when | 1030 // this problem. Please avoid using recursive macros of this length when |
| 1029 // possible. | 1031 // possible. |
| 1030 #define STATS_COUNTER_LIST_1(SC) \ | 1032 #define STATS_COUNTER_LIST_1(SC) \ |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1332 | 1334 |
| 1333 explicit Counters(Isolate* isolate); | 1335 explicit Counters(Isolate* isolate); |
| 1334 | 1336 |
| 1335 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); | 1337 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); |
| 1336 }; | 1338 }; |
| 1337 | 1339 |
| 1338 } // namespace internal | 1340 } // namespace internal |
| 1339 } // namespace v8 | 1341 } // namespace v8 |
| 1340 | 1342 |
| 1341 #endif // V8_COUNTERS_H_ | 1343 #endif // V8_COUNTERS_H_ |
| OLD | NEW |