Takashi Sakamoto | 31cfff64 | 2021-10-29 05:47:29 | [diff] [blame] | 1 | // Copyright 2021 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef BASE_ALLOCATOR_PARTITION_ALLOC_SUPPORT_H_ |
| 6 | #define BASE_ALLOCATOR_PARTITION_ALLOC_SUPPORT_H_ |
| 7 | |
| 8 | #include "base/allocator/partition_allocator/partition_alloc_config.h" |
| 9 | #include "base/base_export.h" |
Takashi Sakamoto | b339487e | 2021-11-09 12:43:46 | [diff] [blame^] | 10 | #include "base/memory/scoped_refptr.h" |
| 11 | #include "base/task/sequenced_task_runner.h" |
Takashi Sakamoto | 31cfff64 | 2021-10-29 05:47:29 | [diff] [blame] | 12 | |
| 13 | namespace base { |
| 14 | namespace allocator { |
| 15 | |
| 16 | #if defined(PA_ALLOW_PCSCAN) |
| 17 | BASE_EXPORT void RegisterPCScanStatsReporter(); |
| 18 | #endif |
| 19 | |
Takashi Sakamoto | b339487e | 2021-11-09 12:43:46 | [diff] [blame^] | 20 | // Starts a periodic timer on the current thread to purge all thread caches. |
| 21 | BASE_EXPORT void StartThreadCachePeriodicPurge(); |
| 22 | |
| 23 | BASE_EXPORT void StartMemoryReclaimer( |
| 24 | scoped_refptr<SequencedTaskRunner> task_runner); |
| 25 | |
Takashi Sakamoto | 31cfff64 | 2021-10-29 05:47:29 | [diff] [blame] | 26 | } // namespace allocator |
| 27 | } // namespace base |
| 28 | |
| 29 | #endif // BASE_ALLOCATOR_PARTITION_ALLOC_SUPPORT_H_ |