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

Side by Side Diff: include/v8.h

Issue 1847543002: Expose a lower bound of malloc'd memory via heap statistics (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 4 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 | « BUILD.gn ('k') | src/api.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 /** \mainpage V8 API Reference Guide 5 /** \mainpage V8 API Reference Guide
6 * 6 *
7 * V8 is Google's open source JavaScript engine. 7 * V8 is Google's open source JavaScript engine.
8 * 8 *
9 * This set of documents provides reference material generated from the 9 * This set of documents provides reference material generated from the
10 * V8 header file, include/v8.h. 10 * V8 header file, include/v8.h.
(...skipping 5168 matching lines...) Expand 10 before | Expand all | Expand 10 after
5179 */ 5179 */
5180 class V8_EXPORT HeapStatistics { 5180 class V8_EXPORT HeapStatistics {
5181 public: 5181 public:
5182 HeapStatistics(); 5182 HeapStatistics();
5183 size_t total_heap_size() { return total_heap_size_; } 5183 size_t total_heap_size() { return total_heap_size_; }
5184 size_t total_heap_size_executable() { return total_heap_size_executable_; } 5184 size_t total_heap_size_executable() { return total_heap_size_executable_; }
5185 size_t total_physical_size() { return total_physical_size_; } 5185 size_t total_physical_size() { return total_physical_size_; }
5186 size_t total_available_size() { return total_available_size_; } 5186 size_t total_available_size() { return total_available_size_; }
5187 size_t used_heap_size() { return used_heap_size_; } 5187 size_t used_heap_size() { return used_heap_size_; }
5188 size_t heap_size_limit() { return heap_size_limit_; } 5188 size_t heap_size_limit() { return heap_size_limit_; }
5189 size_t malloced_memory() { return malloced_memory_; }
5189 size_t does_zap_garbage() { return does_zap_garbage_; } 5190 size_t does_zap_garbage() { return does_zap_garbage_; }
5190 5191
5191 private: 5192 private:
5192 size_t total_heap_size_; 5193 size_t total_heap_size_;
5193 size_t total_heap_size_executable_; 5194 size_t total_heap_size_executable_;
5194 size_t total_physical_size_; 5195 size_t total_physical_size_;
5195 size_t total_available_size_; 5196 size_t total_available_size_;
5196 size_t used_heap_size_; 5197 size_t used_heap_size_;
5197 size_t heap_size_limit_; 5198 size_t heap_size_limit_;
5199 size_t malloced_memory_;
5198 bool does_zap_garbage_; 5200 bool does_zap_garbage_;
5199 5201
5200 friend class V8; 5202 friend class V8;
5201 friend class Isolate; 5203 friend class Isolate;
5202 }; 5204 };
5203 5205
5204 5206
5205 class V8_EXPORT HeapSpaceStatistics { 5207 class V8_EXPORT HeapSpaceStatistics {
5206 public: 5208 public:
5207 HeapSpaceStatistics(); 5209 HeapSpaceStatistics();
(...skipping 3539 matching lines...) Expand 10 before | Expand all | Expand 10 after
8747 */ 8749 */
8748 8750
8749 8751
8750 } // namespace v8 8752 } // namespace v8
8751 8753
8752 8754
8753 #undef TYPE_CHECK 8755 #undef TYPE_CHECK
8754 8756
8755 8757
8756 #endif // INCLUDE_V8_H_ 8758 #endif // INCLUDE_V8_H_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698