From b83f397121447402c3b3282e48ca4f408ce182f9 Mon Sep 17 00:00:00 2001
From: "haraken@chromium.org"
 <haraken@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Date: Wed, 8 Jan 2014 12:16:57 +0000
Subject: Implement sampling profiler (chromium side change)

Trace-viewer side change is here: https://codereview.appspot.com/39310043

Screenshot of the profiler: http://haraken.info/null/sampling_tracing.png

Design document: https://docs.google.com/a/google.com/document/d/1j39sbA9ECTwFFlxbhSD1EvJnGfYeS5EUJ05yxuku6VY/edit

TBR=phajdan.jr
NOTRY=true

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=242671

Review URL: https://codereview.chromium.org/109933006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243528 0039d316-1c4b-4281-b951-d872f2087c98
---
 content/app/android/library_loader_hooks.cc | 1 +
 content/app/content_main_runner.cc          | 1 +
 2 files changed, 2 insertions(+)

(limited to 'content/app')

diff --git a/content/app/android/library_loader_hooks.cc b/content/app/android/library_loader_hooks.cc
index b412c3a..075752a 100644
--- a/content/app/android/library_loader_hooks.cc
+++ b/content/app/android/library_loader_hooks.cc
@@ -92,6 +92,7 @@ static jint LibraryLoaded(JNIEnv* env, jclass clazz,
     base::debug::CategoryFilter category_filter(
         command_line->GetSwitchValueASCII(switches::kTraceStartup));
     base::debug::TraceLog::GetInstance()->SetEnabled(category_filter,
+        base::debug::TraceLog::RECORDING_MODE,
         base::debug::TraceLog::RECORD_UNTIL_FULL);
   }
 
diff --git a/content/app/content_main_runner.cc b/content/app/content_main_runner.cc
index 33bb2a3..f59f177 100644
--- a/content/app/content_main_runner.cc
+++ b/content/app/content_main_runner.cc
@@ -671,6 +671,7 @@ class ContentMainRunnerImpl : public ContentMainRunner {
           command_line.GetSwitchValueASCII(switches::kTraceStartup));
       base::debug::TraceLog::GetInstance()->SetEnabled(
           category_filter,
+          base::debug::TraceLog::RECORDING_MODE,
           base::debug::TraceLog::RECORD_UNTIL_FULL);
     }
 #if !defined(OS_ANDROID)
-- 
cgit v1.1