Home | History | Annotate | Download | only in base
      1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #include "base/base_switches.h"
      6 
      7 namespace switches {
      8 
      9 // If the program includes base/debug/debug_on_start_win.h, the process will
     10 // (on Windows only) start the JIT system-registered debugger on itself and
     11 // will wait for 60 seconds for the debugger to attach to itself. Then a break
     12 // point will be hit.
     13 const char kDebugOnStart[]                  = "debug-on-start";
     14 
     15 // Disables the crash reporting.
     16 const char kDisableBreakpad[]               = "disable-breakpad";
     17 
     18 // Indicates that crash reporting should be enabled. On platforms where helper
     19 // processes cannot access to files needed to make this decision, this flag is
     20 // generated internally.
     21 const char kEnableCrashReporter[]           = "enable-crash-reporter";
     22 
     23 // Enable DCHECKs in release mode.
     24 const char kEnableDCHECK[]                  = "enable-dcheck";
     25 
     26 // Generates full memory crash dump.
     27 const char kFullMemoryCrashReport[]         = "full-memory-crash-report";
     28 
     29 // Suppresses all error dialogs when present.
     30 const char kNoErrorDialogs[]                = "noerrdialogs";
     31 
     32 // When running certain tests that spawn child processes, this switch indicates
     33 // to the test framework that the current process is a child process.
     34 const char kTestChildProcess[]              = "test-child-process";
     35 
     36 // Gives the default maximal active V-logging level; 0 is the default.
     37 // Normally positive values are used for V-logging levels.
     38 const char kV[]                             = "v";
     39 
     40 // Gives the per-module maximal V-logging levels to override the value
     41 // given by --v.  E.g. "my_module=2,foo*=3" would change the logging
     42 // level for all code in source files "my_module.*" and "foo*.*"
     43 // ("-inl" suffixes are also disregarded for this matching).
     44 //
     45 // Any pattern containing a forward or backward slash will be tested
     46 // against the whole pathname and not just the module.  E.g.,
     47 // "*/foo/bar/*=2" would change the logging level for all code in
     48 // source files under a "foo/bar" directory.
     49 const char kVModule[]                       = "vmodule";
     50 
     51 // Will wait for 60 seconds for a debugger to come to attach to the process.
     52 const char kWaitForDebugger[]               = "wait-for-debugger";
     53 
     54 // Sends a pretty-printed version of tracing info to the console.
     55 const char kTraceToConsole[]                = "trace-to-console";
     56 
     57 // Configure whether chrome://profiler will contain timing information. This
     58 // option is enabled by default. A value of "0" will disable profiler timing,
     59 // while all other values will enable it.
     60 const char kProfilerTiming[]                = "profiler-timing";
     61 // Value of the --profiler-timing flag that will disable timing information for
     62 // chrome://profiler.
     63 const char kProfilerTimingDisabledValue[]   = "0";
     64 
     65 #if defined(OS_POSIX)
     66 // Used for turning on Breakpad crash reporting in a debug environment where
     67 // crash reporting is typically compiled but disabled.
     68 const char kEnableCrashReporterForTesting[] =
     69     "enable-crash-reporter-for-testing";
     70 #endif
     71 
     72 #if defined(OS_ANDROID)
     73 // Overrides low-end device detection, disabling low-end device optimizations.
     74 const char kDisableLowEndDeviceMode[]       = "disable-low-end-device-mode";
     75 
     76 // Overrides low-end device detection, enabling low-end device optimizations.
     77 const char kEnableLowEndDeviceMode[]        = "enable-low-end-device-mode";
     78 #endif
     79 
     80 }  // namespace switches
     81