Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Side by Side Diff: src/counters.h

Issue 2786913004: Add counter for new shared/array buffers that fail to allocate space. (Closed)
Patch Set: Fix merge conflict. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/objects.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 911 matching lines...) Expand 10 before | Expand all | Expand 10 after
922 HR(debug_feature_usage, V8.DebugFeatureUsage, 1, 7, 7) \ 922 HR(debug_feature_usage, V8.DebugFeatureUsage, 1, 7, 7) \
923 HR(incremental_marking_reason, V8.GCIncrementalMarkingReason, 0, 21, 22) \ 923 HR(incremental_marking_reason, V8.GCIncrementalMarkingReason, 0, 21, 22) \
924 HR(mark_compact_reason, V8.GCMarkCompactReason, 0, 21, 22) \ 924 HR(mark_compact_reason, V8.GCMarkCompactReason, 0, 21, 22) \
925 HR(scavenge_reason, V8.GCScavengeReason, 0, 21, 22) \ 925 HR(scavenge_reason, V8.GCScavengeReason, 0, 21, 22) \
926 HR(young_generation_handling, V8.GCYoungGenerationHandling, 0, 2, 3) \ 926 HR(young_generation_handling, V8.GCYoungGenerationHandling, 0, 2, 3) \
927 /* Asm/Wasm. */ \ 927 /* Asm/Wasm. */ \
928 HR(wasm_functions_per_asm_module, V8.WasmFunctionsPerModule.asm, 1, 100000, \ 928 HR(wasm_functions_per_asm_module, V8.WasmFunctionsPerModule.asm, 1, 100000, \
929 51) \ 929 51) \
930 HR(wasm_functions_per_wasm_module, V8.WasmFunctionsPerModule.wasm, 1, \ 930 HR(wasm_functions_per_wasm_module, V8.WasmFunctionsPerModule.wasm, 1, \
931 100000, 51) \ 931 100000, 51) \
932 HR(array_buffer_big_allocations, V8.ArrayBufferBigAllocations, 1, 32, 32) 932 HR(array_buffer_big_allocations, V8.ArrayBufferBigAllocations, 1, 32, 32) \
933 HR(array_buffer_new_size_failures, V8.ArrayBufferNewSizeFailures, 1, 32, 32)
933 934
934 #define HISTOGRAM_TIMER_LIST(HT) \ 935 #define HISTOGRAM_TIMER_LIST(HT) \
935 /* Garbage collection timers. */ \ 936 /* Garbage collection timers. */ \
936 HT(gc_compactor, V8.GCCompactor, 10000, MILLISECOND) \ 937 HT(gc_compactor, V8.GCCompactor, 10000, MILLISECOND) \
937 HT(gc_finalize, V8.GCFinalizeMC, 10000, MILLISECOND) \ 938 HT(gc_finalize, V8.GCFinalizeMC, 10000, MILLISECOND) \
938 HT(gc_finalize_reduce_memory, V8.GCFinalizeMCReduceMemory, 10000, \ 939 HT(gc_finalize_reduce_memory, V8.GCFinalizeMCReduceMemory, 10000, \
939 MILLISECOND) \ 940 MILLISECOND) \
940 HT(gc_scavenger, V8.GCScavenger, 10000, MILLISECOND) \ 941 HT(gc_scavenger, V8.GCScavenger, 10000, MILLISECOND) \
941 HT(gc_context, V8.GCContext, 10000, \ 942 HT(gc_context, V8.GCContext, 10000, \
942 MILLISECOND) /* GC context cleanup time */ \ 943 MILLISECOND) /* GC context cleanup time */ \
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
1337 1338
1338 explicit Counters(Isolate* isolate); 1339 explicit Counters(Isolate* isolate);
1339 1340
1340 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); 1341 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters);
1341 }; 1342 };
1342 1343
1343 } // namespace internal 1344 } // namespace internal
1344 } // namespace v8 1345 } // namespace v8
1345 1346
1346 #endif // V8_COUNTERS_H_ 1347 #endif // V8_COUNTERS_H_
OLDNEW
« no previous file with comments | « no previous file | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698