Namespaces
Enumerations
enum AnalyticsStatus
| Name | Value |
|---|---|
| kEnabled | 0 |
| kDisabled | 1 |
Defined at line 10 of file ../../src/lib/analytics/cpp/core_dev_tools/analytics_status.h
enum AnalyticsOption
| Name | Value |
|---|---|
| kEnable | 0 |
| kDisable | 1 |
| kSubLaunchFirst | 2 |
| kSubLaunchNormal | 3 |
| kUnspecified | 4 |
Defined at line 17 of file ../../src/lib/analytics/cpp/core_dev_tools/command_line_options.h
Records
Functions
-
template <class T>bool EarlyProcessAnalyticsOptions (AnalyticsOption analytics_option, bool analytics_show)Early processing of analytics options. Returns true if invoked with --analytics=enable|disable or
--show-analytics, indicating that we are expected to exit after analytics related actions.
T is the Analytics class for the tool.
Defined at line 28 of file ../../src/lib/analytics/cpp/core_dev_tools/command_line_options.h
-
bool IsRunByBot ()Defined at line 39 of file ../../src/lib/analytics/cpp/core_dev_tools/environment_status.cc
-
BotInfo GetBotInfo ()Returns information of the CI bot. When IsRunByBot() returns false, it returns {nullptr,
nullptr, nullptr}
Defined at line 41 of file ../../src/lib/analytics/cpp/core_dev_tools/environment_status.cc
-
cmdline::Status ParseAnalyticsOption (const std::string & value, AnalyticsOption & analytics_option) -
bool IsDisabledByEnvironment ()Defined at line 59 of file ../../src/lib/analytics/cpp/core_dev_tools/environment_status.cc
-
std::istream & operator>> (std::istream & isAnalyticsOption & analytics_option)The analytics option can take two additional internal options, which can only be used when
another core developer tool (such as ffx) is sub-launching the current tool. The two internal
options are
--analytics=sublaunch-first Indicate that the current tool is sub-launched by the
first run of the first tool. Collection of
analytics will be disabled in this run.
--analytics=sublaunch-normal Indicate that the current tool is sub-launched by another
tool, but not by the first run of the first
tool. Collection of analytics will be enabled
or disabled according to the saved status.
Defined at line 29 of file ../../src/lib/analytics/cpp/core_dev_tools/command_line_options.cc
Variables
const char *const kAnalyticsHelp
Defined at line 9 of file ../../src/lib/analytics/cpp/core_dev_tools/command_line_options.cc
const char *const kAnalyticsShowHelp
Defined at line 16 of file ../../src/lib/analytics/cpp/core_dev_tools/command_line_options.cc