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

Side by Side Diff: src/v8-counters.h

Issue 29203003: Add counters to track the maximum amount of memory committed by the heap. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Synced and rebased. Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « src/spaces.cc ('k') | no next file » | 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 // 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 HM(heap_sample_total_committed, V8.MemoryHeapSampleTotalCommitted) \ 94 HM(heap_sample_total_committed, V8.MemoryHeapSampleTotalCommitted) \
95 HM(heap_sample_total_used, V8.MemoryHeapSampleTotalUsed) \ 95 HM(heap_sample_total_used, V8.MemoryHeapSampleTotalUsed) \
96 HM(heap_sample_map_space_committed, \ 96 HM(heap_sample_map_space_committed, \
97 V8.MemoryHeapSampleMapSpaceCommitted) \ 97 V8.MemoryHeapSampleMapSpaceCommitted) \
98 HM(heap_sample_cell_space_committed, \ 98 HM(heap_sample_cell_space_committed, \
99 V8.MemoryHeapSampleCellSpaceCommitted) \ 99 V8.MemoryHeapSampleCellSpaceCommitted) \
100 HM(heap_sample_property_cell_space_committed, \ 100 HM(heap_sample_property_cell_space_committed, \
101 V8.MemoryHeapSamplePropertyCellSpaceCommitted) \ 101 V8.MemoryHeapSamplePropertyCellSpaceCommitted) \
102 HM(heap_sample_code_space_committed, \ 102 HM(heap_sample_code_space_committed, \
103 V8.MemoryHeapSampleCodeSpaceCommitted) \ 103 V8.MemoryHeapSampleCodeSpaceCommitted) \
104 HM(heap_sample_maximum_committed, \
105 V8.MemoryHeapSampleMaximumCommitted) \
104 106
105 107
106 // WARNING: STATS_COUNTER_LIST_* is a very large macro that is causing MSVC 108 // WARNING: STATS_COUNTER_LIST_* is a very large macro that is causing MSVC
107 // Intellisense to crash. It was broken into two macros (each of length 40 109 // Intellisense to crash. It was broken into two macros (each of length 40
108 // lines) rather than one macro (of length about 80 lines) to work around 110 // lines) rather than one macro (of length about 80 lines) to work around
109 // this problem. Please avoid using recursive macros of this length when 111 // this problem. Please avoid using recursive macros of this length when
110 // possible. 112 // possible.
111 #define STATS_COUNTER_LIST_1(SC) \ 113 #define STATS_COUNTER_LIST_1(SC) \
112 /* Global Handle Count*/ \ 114 /* Global Handle Count*/ \
113 SC(global_handles, V8.GlobalHandles) \ 115 SC(global_handles, V8.GlobalHandles) \
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 friend class Isolate; 429 friend class Isolate;
428 430
429 explicit Counters(Isolate* isolate); 431 explicit Counters(Isolate* isolate);
430 432
431 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); 433 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters);
432 }; 434 };
433 435
434 } } // namespace v8::internal 436 } } // namespace v8::internal
435 437
436 #endif // V8_V8_COUNTERS_H_ 438 #endif // V8_V8_COUNTERS_H_
OLDNEW
« no previous file with comments | « src/spaces.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698