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

Unified Diff: components/safe_browsing_db/util.cc

Issue 1569673002: [NOT FOR LANDING] Detailed loading traces Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 10 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: 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;
« no previous file with comments | « components/safe_browsing_db/remote_database_manager.cc ('k') | content/browser/devtools/devtools_netlog_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698