diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-21 16:46:32 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-21 16:46:32 +0000 |
commit | c2a797d2872ec1a32339adca5b8fd1441dc27934 (patch) | |
tree | faf1cbb4ecbf5b429f343e276042fbf12370884a /webkit/glue | |
parent | 538813c1332b409aae3f9a05921fddb6e6734bb5 (diff) | |
download | chromium_src-c2a797d2872ec1a32339adca5b8fd1441dc27934.zip chromium_src-c2a797d2872ec1a32339adca5b8fd1441dc27934.tar.gz chromium_src-c2a797d2872ec1a32339adca5b8fd1441dc27934.tar.bz2 |
Add histograms for tab count, RenderProcessHost count, and the number of
glyph "pages" in memory per load (to check memory consumption).
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/195104
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26688 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue')
-rw-r--r-- | webkit/glue/webkit_glue.cc | 5 | ||||
-rw-r--r-- | webkit/glue/webkit_glue.h | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/webkit/glue/webkit_glue.cc b/webkit/glue/webkit_glue.cc index 323a454..a8575f0 100644 --- a/webkit/glue/webkit_glue.cc +++ b/webkit/glue/webkit_glue.cc @@ -17,6 +17,7 @@ #include "FrameTree.h" #include "FrameView.h" #include "Frame.h" +#include "GlyphPageTreeNode.h" #include "HistoryItem.h" #include "ImageSource.h" #include "KURL.h" @@ -448,4 +449,8 @@ WebCanvas* ToWebCanvas(skia::PlatformCanvas* canvas) { #endif } +int GetGlyphPageCount() { + return WebCore::GlyphPageTreeNode::treeGlyphPageCount(); +} + } // namespace webkit_glue diff --git a/webkit/glue/webkit_glue.h b/webkit/glue/webkit_glue.h index eab53a4..cd49bf3 100644 --- a/webkit/glue/webkit_glue.h +++ b/webkit/glue/webkit_glue.h @@ -117,6 +117,11 @@ WebKit::WebString FilePathToWebString(const FilePath& file_path); // Returns a WebCanvas pointer associated with the given Skia canvas. WebKit::WebCanvas* ToWebCanvas(skia::PlatformCanvas*); +// Returns the number of currently-active glyph pages this process is using. +// There can be many such pages (maps of 256 character -> glyph) so this is +// used to get memory usage statistics. +int GetGlyphPageCount(); + //---- END FUNCTIONS IMPLEMENTED BY WEBKIT/GLUE ------------------------------- |