Commit 31a5bf70 authored by Ben Kelly's avatar Ben Kelly Committed by Commit Bot

ServiceWorker: Add some tracing to installed script loading.

Change-Id: I4d2a85675a73a09f48e94ec504e089621ca0ede3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1541896
Commit-Queue: Ben Kelly <wanderview@chromium.org>
Reviewed-by: default avatarKenichi Ishibashi <bashi@chromium.org>
Reviewed-by: default avatarMatt Falkenhagen <falken@chromium.org>
Cr-Commit-Position: refs/heads/master@{#646341}
parent 81b890e0
...@@ -267,6 +267,9 @@ bool ServiceWorkerInstalledScriptsManager::IsScriptInstalled( ...@@ -267,6 +267,9 @@ bool ServiceWorkerInstalledScriptsManager::IsScriptInstalled(
std::unique_ptr<InstalledScriptsManager::ScriptData> std::unique_ptr<InstalledScriptsManager::ScriptData>
ServiceWorkerInstalledScriptsManager::GetScriptData(const KURL& script_url) { ServiceWorkerInstalledScriptsManager::GetScriptData(const KURL& script_url) {
DCHECK(!IsMainThread()); DCHECK(!IsMainThread());
TRACE_EVENT1("ServiceWorker",
"ServiceWorkerInstalledScriptsManager::GetScriptData", "url",
script_url.GetString().Utf8().data());
if (!IsScriptInstalled(script_url)) if (!IsScriptInstalled(script_url))
return nullptr; return nullptr;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment