summaryrefslogtreecommitdiffstats
path: root/content/app/android
diff options
context:
space:
mode:
authordsinclair@chromium.org <dsinclair@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-23 02:09:53 +0000
committerdsinclair@chromium.org <dsinclair@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-23 02:09:53 +0000
commitdcc7837317b2f78398461ae1cc78e14780222639 (patch)
tree837804f3c4ec78738648199193dd9948498bfa25 /content/app/android
parent9b5f0a4b60e2139bb6e80947f93f59164bb1ee17 (diff)
downloadchromium_src-dcc7837317b2f78398461ae1cc78e14780222639.zip
chromium_src-dcc7837317b2f78398461ae1cc78e14780222639.tar.gz
chromium_src-dcc7837317b2f78398461ae1cc78e14780222639.tar.bz2
Add a mode flag to the tracing framework.
The mode is provided when SetEnabled is called. Currently there is only one mode which is the trace until buffer is full mode. We will be adding a continuous tracing mode which this will support. BUG=156025 Review URL: https://chromiumcodereview.appspot.com/12302036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184258 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/app/android')
-rw-r--r--content/app/android/library_loader_hooks.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/content/app/android/library_loader_hooks.cc b/content/app/android/library_loader_hooks.cc
index 4794da1..f9607c1 100644
--- a/content/app/android/library_loader_hooks.cc
+++ b/content/app/android/library_loader_hooks.cc
@@ -43,7 +43,8 @@ static jint LibraryLoadedOnMainThread(JNIEnv* env, jclass clazz,
if (command_line->HasSwitch(switches::kTraceStartup)) {
base::debug::TraceLog::GetInstance()->SetEnabled(
- command_line->GetSwitchValueASCII(switches::kTraceStartup));
+ command_line->GetSwitchValueASCII(switches::kTraceStartup),
+ base::debug::TraceLog::RECORD_UNTIL_FULL);
}
// Can only use event tracing after setting up the command line.