Enumerations

enum ExperimentArm
Name Value
kExperiment 0
kControl 1
kNone 2

Defined at line 27 of file ../../src/cobalt/bin/testapp/cobalt_testapp_logger.h

Records

Functions

  • std::string ResultToString (fpromise::result<void, fuchsia::metrics::Error> && result)

    Defined at line 19 of file ../../src/cobalt/bin/testapp/cobalt_testapp_logger.h

  • bool TestLogInteger (CobaltTestAppLogger * logger, util::SystemClockInterface * clock, fuchsia::cobalt::ControllerSyncPtr * cobalt_controller, size_t backfill_days, uint32_t project_id)

    INTEGER metrics for update_duration_new, streaming_time_new and application_memory_new.

    Defined at line 152 of file ../../src/cobalt/bin/testapp/tests.cc

  • bool TestLogOccurrence (CobaltTestAppLogger * logger, util::SystemClockInterface * clock, fuchsia::cobalt::ControllerSyncPtr * cobalt_controller, size_t backfill_days, uint32_t project_id)

    OCCURRENCE metrics for features_active_new, file_system_cache_misses_new,

    connection_attempts_new, and error_occurred_new

    Defined at line 283 of file ../../src/cobalt/bin/testapp/tests.cc

  • bool TestLogIntegerHistogram (CobaltTestAppLogger * logger, util::SystemClockInterface * clock, fuchsia::cobalt::ControllerSyncPtr * cobalt_controller, size_t backfill_days, uint32_t project_id)

    power_usage_new, bandwidth_usage_new and data_usage_with_impossible_bucket using

    INTEGER_HISTOGRAM metric.

    For each event vector, log one observation in each histogram bucket, using

    decreasing values per bucket.

    Defined at line 433 of file ../../src/cobalt/bin/testapp/tests.cc

  • bool TestLogString (CobaltTestAppLogger * loggerutil::SystemClockInterface * clockfuchsia::cobalt::ControllerSyncPtr * cobalt_controllersize_t backfill_daysuint32_t project_id)

    error_occurred_components using STRING metric.

    For each of the three event_codes, log each of the five application components.

    Defined at line 594 of file ../../src/cobalt/bin/testapp/tests.cc