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

Unified Diff: url/gurl.h

Issue 253333003: Add a histogram for size of the memory used by redirect chain. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: url/gurl.h
diff --git a/url/gurl.h b/url/gurl.h
index b8632b45e91007c52601bd14be913bd2cb876fcd..cf15ad96a3995cd91273c37fd04717f60e1d4277 100644
--- a/url/gurl.h
+++ b/url/gurl.h
@@ -362,6 +362,9 @@ class URL_EXPORT GURL {
return inner_url_.get();
}
+ // Returns approximate size of the memory taken by the instance.
+ size_t Bytesize() const;
+
private:
// Variant of the string parsing constructor that allows the caller to elect
// retain trailing whitespace, if any, on the passed URL spec but only if the

Powered by Google App Engine
This is Rietveld 408576698