| Index: components/safe_browsing_db/util.cc
|
| diff --git a/components/safe_browsing_db/util.cc b/components/safe_browsing_db/util.cc
|
| index da26b2a74bfcf925973cefaee3c5f6ef4448f457..0dcf907ca20904ae8259a71fa44055d82f4c6b19 100644
|
| --- a/components/safe_browsing_db/util.cc
|
| +++ b/components/safe_browsing_db/util.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include <stddef.h>
|
|
|
| +#include "base/trace_event/trace_event.h"
|
| #include "base/macros.h"
|
| #include "base/strings/string_util.h"
|
| #include "base/trace_event/trace_event.h"
|
| @@ -317,6 +318,7 @@ void CanonicalizeUrl(const GURL& url,
|
| void UrlToFullHashes(const GURL& url,
|
| bool include_whitelist_hashes,
|
| std::vector<SBFullHash>* full_hashes) {
|
| + TRACE_EVENT0("toplevel", "UrlToFullHashes");
|
| // Include this function in traces because it's not cheap so it should be
|
| // called sparingly.
|
| TRACE_EVENT2("loader", "safe_browsing::UrlToFullHashes", "url", url.spec(),
|
| @@ -349,6 +351,8 @@ void UrlToFullHashes(const GURL& url,
|
| }
|
|
|
| void GenerateHostsToCheck(const GURL& url, std::vector<std::string>* hosts) {
|
| + TRACE_EVENT0("toplevel", "GenerateHostsToCheck");
|
| +
|
| hosts->clear();
|
|
|
| std::string canon_host;
|
| @@ -386,6 +390,8 @@ void GenerateHostsToCheck(const GURL& url, std::vector<std::string>* hosts) {
|
| }
|
|
|
| void GeneratePathsToCheck(const GURL& url, std::vector<std::string>* paths) {
|
| + TRACE_EVENT0("toplevel", "GeneratePathsToCheck");
|
| +
|
| paths->clear();
|
|
|
| std::string canon_path;
|
|
|