| 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 1001 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 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   HM(wasm_min_mem_pages_count, V8.WasmMinMemPagesCount)                        \ | 
| 1021   HM(wasm_max_mem_pages_count, V8.WasmMaxMemPagesCount)                        \ | 1021   HM(wasm_max_mem_pages_count, V8.WasmMaxMemPagesCount)                        \ | 
| 1022   HM(wasm_function_size_bytes, V8.WasmFunctionSizeBytes)                       \ | 1022   /* TODO(karlschimpf) Update chrome flags to reflect asm/wasm split. */       \ | 
|  | 1023   HM(wasm_asm_function_size_bytes, V8.WasmFunctionSizeBytes)                   \ | 
|  | 1024   HM(wasm_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)                                      \ | 
| 1031   /* Global Handle Count*/                                            \ | 1033   /* Global Handle Count*/                                            \ | 
| 1032   SC(global_handles, V8.GlobalHandles)                                \ | 1034   SC(global_handles, V8.GlobalHandles)                                \ | 
| (...skipping 299 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 | 
|---|