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

Side by Side Diff: webkit/glue/webkitplatformsupport_impl.h

Issue 10823205: Report memory retained by memory allocator internals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Replace GetProperty with GetAllocatorWasteSize Created 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 #ifndef WEBKIT_PLATFORM_SUPPORT_IMPL_H_ 5 #ifndef WEBKIT_PLATFORM_SUPPORT_IMPL_H_
6 #define WEBKIT_PLATFORM_SUPPORT_IMPL_H_ 6 #define WEBKIT_PLATFORM_SUPPORT_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/platform_file.h" 9 #include "base/platform_file.h"
10 #include "base/threading/thread_local_storage.h" 10 #include "base/threading/thread_local_storage.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 const WebKit::WebURL& url); 65 const WebKit::WebURL& url);
66 virtual size_t memoryUsageMB(); 66 virtual size_t memoryUsageMB();
67 virtual size_t actualMemoryUsageMB(); 67 virtual size_t actualMemoryUsageMB();
68 #if defined(OS_ANDROID) // Other OSes just use the default values. 68 #if defined(OS_ANDROID) // Other OSes just use the default values.
69 virtual size_t lowMemoryUsageMB() OVERRIDE; 69 virtual size_t lowMemoryUsageMB() OVERRIDE;
70 virtual size_t highMemoryUsageMB() OVERRIDE; 70 virtual size_t highMemoryUsageMB() OVERRIDE;
71 virtual size_t highUsageDeltaMB() OVERRIDE; 71 virtual size_t highUsageDeltaMB() OVERRIDE;
72 #endif 72 #endif
73 virtual bool processMemorySizesInBytes(size_t* private_bytes, 73 virtual bool processMemorySizesInBytes(size_t* private_bytes,
74 size_t* shared_bytes); 74 size_t* shared_bytes);
75 virtual bool memoryAllocatorInternalsInBytes(size_t* size);
75 virtual WebKit::WebURLLoader* createURLLoader(); 76 virtual WebKit::WebURLLoader* createURLLoader();
76 virtual WebKit::WebSocketStreamHandle* createSocketStreamHandle(); 77 virtual WebKit::WebSocketStreamHandle* createSocketStreamHandle();
77 virtual WebKit::WebString userAgent(const WebKit::WebURL& url); 78 virtual WebKit::WebString userAgent(const WebKit::WebURL& url);
78 virtual void getPluginList(bool refresh, WebKit::WebPluginListBuilder*); 79 virtual void getPluginList(bool refresh, WebKit::WebPluginListBuilder*);
79 virtual void decrementStatsCounter(const char* name); 80 virtual void decrementStatsCounter(const char* name);
80 virtual void incrementStatsCounter(const char* name); 81 virtual void incrementStatsCounter(const char* name);
81 virtual void histogramCustomCounts( 82 virtual void histogramCustomCounts(
82 const char* name, int sample, int min, int max, int bucket_count); 83 const char* name, int sample, int min, int max, int bucket_count);
83 virtual void histogramEnumeration( 84 virtual void histogramEnumeration(
84 const char* name, int sample, int boundary_value); 85 const char* name, int sample, int boundary_value);
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 double shared_timer_fire_time_; 173 double shared_timer_fire_time_;
173 int shared_timer_suspended_; // counter 174 int shared_timer_suspended_; // counter
174 WebThemeEngineImpl theme_engine_; 175 WebThemeEngineImpl theme_engine_;
175 base::ThreadLocalStorage::Slot current_thread_slot_; 176 base::ThreadLocalStorage::Slot current_thread_slot_;
176 scoped_ptr<webkit::WebCompositorSupportImpl> compositor_support_; 177 scoped_ptr<webkit::WebCompositorSupportImpl> compositor_support_;
177 }; 178 };
178 179
179 } // namespace webkit_glue 180 } // namespace webkit_glue
180 181
181 #endif // WEBKIT_PLATFORM_SUPPORT_IMPL_H_ 182 #endif // WEBKIT_PLATFORM_SUPPORT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698