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

Side by Side Diff: base/android/dalvik_heap_size.h

Issue 10113009: Set Android/V8 memory limits from dalvik.vm.heapsize. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove redundant includes Created 8 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | base/android/dalvik_heap_size.cc » ('j') | base/android/dalvik_heap_size.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « no previous file | base/android/dalvik_heap_size.cc » ('j') | base/android/dalvik_heap_size.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698