summaryrefslogtreecommitdiff
path: root/chromium/base/allocator/dispatcher/subsystem.h
blob: 609708e466bee140d8be88fed5553bb44341e7da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef BASE_ALLOCATOR_DISPATCHER_SUBSYSTEM_H_
#define BASE_ALLOCATOR_DISPATCHER_SUBSYSTEM_H_

namespace base::allocator::dispatcher {

// Identifiers for the memory subsystem handling the allocation. Some observers
// require more detailed information on who is performing the allocation, i.e.
// SamplingHeapProfiler.
enum class AllocationSubsystem {
  // Allocation is handled by PartitionAllocator.
  kPartitionAllocator = 1,
  // Allocation is handled by AllocatorShims.
  kAllocatorShim = 2
};
}  // namespace base::allocator::dispatcher

#endif  // BASE_ALLOCATOR_DISPATCHER_SUBSYSTEM_H_