Index: content/renderer/render_thread_impl.cc |
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc |
index 32109c0d41ac8dfc4a4456a06aad7e015f458788..c7f8ef49e0f71891acc540257b26b766acfb5324 100644 |
--- a/content/renderer/render_thread_impl.cc |
+++ b/content/renderer/render_thread_impl.cc |
@@ -36,6 +36,7 @@ |
#include "content/child/runtime_features.h" |
#include "content/child/thread_safe_sender.h" |
#include "content/child/web_database_observer_impl.h" |
+#include "content/common/content_constants_internal.h" |
#include "content/common/child_process_messages.h" |
#include "content/common/database_messages.h" |
#include "content/common/db_message_filter.h" |
@@ -316,6 +317,10 @@ RenderThreadImpl::RenderThreadImpl(const std::string& channel_name) |
void RenderThreadImpl::Init() { |
TRACE_EVENT_BEGIN_ETW("RenderThreadImpl::Init", 0, ""); |
+ base::debug::TraceLog::GetInstance()->SetThreadSortIndex( |
+ base::PlatformThread::CurrentId(), |
+ kTraceEventRendererMainThreadSortIndex); |
+ |
v8::V8::SetCounterFunction(base::StatsTable::FindLocation); |
v8::V8::SetCreateHistogramFunction(CreateHistogram); |
v8::V8::SetAddHistogramSampleFunction(AddHistogramSample); |