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

Unified Diff: content/renderer/render_thread_impl.h

Issue 11361219: Add a histogram for renderer memory usage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 8 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.h
diff --git a/content/renderer/render_thread_impl.h b/content/renderer/render_thread_impl.h
index b1b24458562e504f7710aa844dce5bb75bc2279a..f76f004822504abec45aa7c9bf4c21369dbad460 100644
--- a/content/renderer/render_thread_impl.h
+++ b/content/renderer/render_thread_impl.h
@@ -31,6 +31,7 @@ class WebMediaStreamCenterClient;
}
namespace base {
+class Histogram;
class MessageLoopProxy;
class Thread;
@@ -266,6 +267,9 @@ class CONTENT_EXPORT RenderThreadImpl : public RenderThread,
// |histogram_name|, or |histogram_name| if it shouldn't be customized.
std::string ConvertToCustomHistogramName(const char* histogram_name) const;
+ // Custom histograms maintained by the HistogramCustomizer itself.
+ base::Histogram* memory_renderer_used();
+
private:
friend class RenderThreadImplUnittest;
@@ -283,6 +287,9 @@ class CONTENT_EXPORT RenderThreadImpl : public RenderThread,
// possible.
std::set<std::string> custom_histograms_;
+ // Custom histograms maintained by this object.
+ base::Histogram* memory_renderer_used_;
+
DISALLOW_COPY_AND_ASSIGN(HistogramCustomizer);
};
« no previous file with comments | « no previous file | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698