diff options
author | haraken@chromium.org <haraken@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-08 12:16:57 +0000 |
---|---|---|
committer | haraken@chromium.org <haraken@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-08 12:16:57 +0000 |
commit | b83f397121447402c3b3282e48ca4f408ce182f9 (patch) | |
tree | cdce7f874f805dfa8fb354fee5396ea230305df5 /content/app | |
parent | fe749ee1386413c14ffe6d3b23c59085d1f02bd6 (diff) | |
download | chromium_src-b83f397121447402c3b3282e48ca4f408ce182f9.zip chromium_src-b83f397121447402c3b3282e48ca4f408ce182f9.tar.gz chromium_src-b83f397121447402c3b3282e48ca4f408ce182f9.tar.bz2 |
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
Diffstat (limited to 'content/app')
-rw-r--r-- | content/app/android/library_loader_hooks.cc | 1 | ||||
-rw-r--r-- | content/app/content_main_runner.cc | 1 |
2 files changed, 2 insertions, 0 deletions
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) |