summaryrefslogtreecommitdiffstats
path: root/chromium/components/memory_system/parameters.cc
blob: 6602b8cb3a2228fd735af4c8ced40e0fba94e7bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// 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/memory_system/parameters.h"

namespace memory_system {

GwpAsanParameters::GwpAsanParameters(bool boost_sampling,
                                     base::StringPiece process_type)
    : boost_sampling(boost_sampling), process_type(process_type) {}

ProfilingClientParameters::ProfilingClientParameters(
    version_info::Channel channel,
    metrics::CallStackProfileParams::Process process_type)
    : channel(channel), process_type(process_type) {}

DispatcherParameters::DispatcherParameters(
    PoissonAllocationSamplerInclusion poisson_allocation_sampler_inclusion,
    AllocationTraceRecorderInclusion allocation_trace_recorder_inclusion,
    base::StringPiece process_type)
    : poisson_allocation_sampler_inclusion(
          poisson_allocation_sampler_inclusion),
      allocation_trace_recorder_inclusion(allocation_trace_recorder_inclusion),
      process_type(process_type) {}

}  // namespace memory_system