blob: 356f75eb6d648234b1a438dc9855332a270a3f53 [file] [log] [blame]
Takashi Sakamoto31cfff642021-10-29 05:47:291// 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 Sakamotob339487e2021-11-09 12:43:4610#include "base/memory/scoped_refptr.h"
11#include "base/task/sequenced_task_runner.h"
Takashi Sakamoto31cfff642021-10-29 05:47:2912
13namespace base {
14namespace allocator {
15
16#if defined(PA_ALLOW_PCSCAN)
17BASE_EXPORT void RegisterPCScanStatsReporter();
18#endif
19
Takashi Sakamotob339487e2021-11-09 12:43:4620// Starts a periodic timer on the current thread to purge all thread caches.
21BASE_EXPORT void StartThreadCachePeriodicPurge();
22
23BASE_EXPORT void StartMemoryReclaimer(
24 scoped_refptr<SequencedTaskRunner> task_runner);
25
Takashi Sakamoto31cfff642021-10-29 05:47:2926} // namespace allocator
27} // namespace base
28
29#endif // BASE_ALLOCATOR_PARTITION_ALLOC_SUPPORT_H_