chromium/components/startup_metric_utils/common/startup_metric_utils.cc

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/startup_metric_utils/common/startup_metric_utils.h"

#include <stddef.h>
#include <stdint.h>

#include <string>
#include <vector>

#include "base/dcheck_is_on.h"
#include "base/location.h"
#include "base/metrics/histogram_functions.h"
#include "base/notreached.h"
#include "base/threading/scoped_thread_priority.h"
#include "base/trace_event/trace_event.h"

namespace startup_metric_utils {

CommonStartupMetricRecorder& GetCommon() {}

void CommonStartupMetricRecorder::RecordStartupProcessCreationTime(
    base::Time time) {}

void CommonStartupMetricRecorder::RecordStartupProcessCreationTime(
    base::TimeTicks ticks) {}

void CommonStartupMetricRecorder::RecordApplicationStartTime(
    base::TimeTicks ticks) {}

void CommonStartupMetricRecorder::RecordChromeMainEntryTime(
    base::TimeTicks ticks) {}

void CommonStartupMetricRecorder::RecordPreReadTime(base::TimeTicks start_ticks,
                                                    base::TimeTicks end_ticks) {}

void CommonStartupMetricRecorder::ResetSessionForTesting() {}

base::TimeTicks CommonStartupMetricRecorder::MainEntryPointTicks() const {}

base::TimeTicks CommonStartupMetricRecorder::StartupTimeToTimeTicks(
    base::Time time) {}

void CommonStartupMetricRecorder::AddStartupEventsForTelemetry() {}

#if DCHECK_IS_ON()
base::flat_set<const void*>& CommonStartupMetricRecorder::GetSessionLog() {}
#endif  // DCHECK_IS_ON()

// DCHECKs that this is the first time |method_id| is passed to this assertion
// in this session (a session is typically process-lifetime but this can be
// reset in tests via ResetSessionForTesting()). Callers should use FROM_HERE as
// a unique id.

void CommonStartupMetricRecorder::AssertFirstCallInSession(
    base::Location from_here) {}

}  // namespace startup_metric_utils