From d40e72d388053ddf19353980fe830156b02a856d Mon Sep 17 00:00:00 2001 From: nctl144 Date: Fri, 13 Jul 2018 16:26:33 -0500 Subject: [PATCH] skip memory estimator --- gurl.cc | 12 ++++++------ gurl.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gurl.cc b/gurl.cc index cb31f74..9343b64 100644 --- a/gurl.cc +++ b/gurl.cc @@ -13,7 +13,7 @@ // #include "base/logging.h" #include "base/strings/string_piece.h" #include "base/strings/string_util.h" -#include "base/trace_event/memory_usage_estimator.h" +// #include "base/trace_event/memory_usage_estimator.h" #include "url/url_canon_stdstring.h" #include "url/url_util.h" @@ -464,11 +464,11 @@ void GURL::Swap(GURL* other) { inner_url_.swap(other->inner_url_); } -size_t GURL::EstimateMemoryUsage() const { - return base::trace_event::EstimateMemoryUsage(spec_) + - base::trace_event::EstimateMemoryUsage(inner_url_) + - (parsed_.inner_parsed() ? sizeof(url::Parsed) : 0); -} +// size_t GURL::EstimateMemoryUsage() const { +// return base::trace_event::EstimateMemoryUsage(spec_) + +// base::trace_event::EstimateMemoryUsage(inner_url_) + +// (parsed_.inner_parsed() ? sizeof(url::Parsed) : 0); +// } std::ostream& operator<<(std::ostream& out, const GURL& url) { return out << url.possibly_invalid_spec(); diff --git a/gurl.h b/gurl.h index 32ef5de..5cc4c48 100644 --- a/gurl.h +++ b/gurl.h @@ -423,7 +423,7 @@ class URL_EXPORT GURL { // Estimates dynamic memory usage. // See base/trace_event/memory_usage_estimator.h for more info. - size_t EstimateMemoryUsage() const; + // size_t EstimateMemoryUsage() const; private: // Variant of the string parsing constructor that allows the caller to elect