OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef BASE_ANDROID_DALVIK_VM_HEAP_SIZE_H_ |
| 6 #define BASE_ANDROID_DALVIK_VM_HEAP_SIZE_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 namespace base { |
| 11 namespace android { |
| 12 |
| 13 // A simple class to cache the heap size of the device. |
| 14 class DalvikHeapSize { |
| 15 public: |
| 16 DalvikHeapSize(); |
| 17 |
| 18 ~DalvikHeapSize(); |
| 19 |
| 20 int HeapSizeMB() const; |
| 21 |
| 22 private: |
| 23 int ParseHeapSize(const std::string& str) const; |
| 24 int heap_size_mb_; |
| 25 }; |
| 26 |
| 27 } // namespace base |
| 28 } // namespace android |
| 29 |
| 30 #endif // BASE_ANDROID_DALVIK_VM_HEAP_SIZE_ANDROID_H_ |
OLD | NEW |