blob: 01a4b6475b80721959a95aad61a516f6f37c06d3 [file] [log] [blame]
// Copyright 2021 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef TOOLS_SYMBOLIZER_ANALYTICS_H_
#define TOOLS_SYMBOLIZER_ANALYTICS_H_
#include "src/lib/analytics/cpp/core_dev_tools/analytics.h"
namespace symbolizer {
class Analytics : public analytics::core_dev_tools::Analytics<Analytics> {
public:
private:
friend class analytics::core_dev_tools::Analytics<Analytics>;
static constexpr char kToolName[] = "symbolizer";
static constexpr int64_t kQuitTimeoutMs = 500;
static constexpr char kTrackingId[] = "UA-127897021-14";
static constexpr char kEnableArgs[] = "--analytics=enable";
static constexpr char kDisableArgs[] = "--analytics=disable";
static constexpr char kStatusArgs[] = "--analytics-show";
static constexpr char kAnalyticsList[] = R"(1. For invocation of symbolizer:
- The version of symbolizer
- The output of "uname -ms" (CPU architecture and kernel name)
2. Event of opting in/out of collection of analytics)";
};
} // namespace symbolizer
#endif // TOOLS_SYMBOLIZER_ANALYTICS_H_