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 /** \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 4758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4769 * | 4769 * |
4770 * Instances of this class can be passed to v8::V8::HeapStatistics to | 4770 * Instances of this class can be passed to v8::V8::HeapStatistics to |
4771 * get heap statistics from V8. | 4771 * get heap statistics from V8. |
4772 */ | 4772 */ |
4773 class V8_EXPORT HeapStatistics { | 4773 class V8_EXPORT HeapStatistics { |
4774 public: | 4774 public: |
4775 HeapStatistics(); | 4775 HeapStatistics(); |
4776 size_t total_heap_size() { return total_heap_size_; } | 4776 size_t total_heap_size() { return total_heap_size_; } |
4777 size_t total_heap_size_executable() { return total_heap_size_executable_; } | 4777 size_t total_heap_size_executable() { return total_heap_size_executable_; } |
4778 size_t total_physical_size() { return total_physical_size_; } | 4778 size_t total_physical_size() { return total_physical_size_; } |
| 4779 size_t total_available_size() { return total_available_size_; } |
4779 size_t used_heap_size() { return used_heap_size_; } | 4780 size_t used_heap_size() { return used_heap_size_; } |
4780 size_t heap_size_limit() { return heap_size_limit_; } | 4781 size_t heap_size_limit() { return heap_size_limit_; } |
4781 | 4782 |
4782 private: | 4783 private: |
4783 size_t total_heap_size_; | 4784 size_t total_heap_size_; |
4784 size_t total_heap_size_executable_; | 4785 size_t total_heap_size_executable_; |
4785 size_t total_physical_size_; | 4786 size_t total_physical_size_; |
| 4787 size_t total_available_size_; |
4786 size_t used_heap_size_; | 4788 size_t used_heap_size_; |
4787 size_t heap_size_limit_; | 4789 size_t heap_size_limit_; |
4788 | 4790 |
4789 friend class V8; | 4791 friend class V8; |
4790 friend class Isolate; | 4792 friend class Isolate; |
4791 }; | 4793 }; |
4792 | 4794 |
4793 | 4795 |
4794 class V8_EXPORT HeapSpaceStatistics { | 4796 class V8_EXPORT HeapSpaceStatistics { |
4795 public: | 4797 public: |
(...skipping 3210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8006 */ | 8008 */ |
8007 | 8009 |
8008 | 8010 |
8009 } // namespace v8 | 8011 } // namespace v8 |
8010 | 8012 |
8011 | 8013 |
8012 #undef TYPE_CHECK | 8014 #undef TYPE_CHECK |
8013 | 8015 |
8014 | 8016 |
8015 #endif // V8_H_ | 8017 #endif // V8_H_ |
OLD | NEW |