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

Unified Diff: content/renderer/renderer_main.cc

Issue 2944033004: clang/win: Temporarily slow down renderer startup by 0.1s (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/renderer_main.cc
diff --git a/content/renderer/renderer_main.cc b/content/renderer/renderer_main.cc
index 99ebfe02875ed5b7ae7b36469af39752836df6cb..ea4b7b24c95efc1a5289300675e1ab773eeaeebb 100644
--- a/content/renderer/renderer_main.cc
+++ b/content/renderer/renderer_main.cc
@@ -98,6 +98,13 @@ int RendererMain(const MainFunctionParams& parameters) {
base::trace_event::TraceLog::GetInstance()->SetProcessSortIndex(
kTraceEventRendererProcessSortIndex);
+#if defined(OS_WIN) && defined(__clang__)
+ // TODO(thakis): Remove this again soon, it's here to check what effect
+ // renderer startup delays have on a particular metric in the next dev
+ // channel release.
+ base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(100));
+#endif
+
const base::CommandLine& parsed_command_line = parameters.command_line;
#if defined(OS_MACOSX)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698