Home
last modified time | relevance | path

Searched refs:MemoryPressureMonitor (Results 1 – 9 of 9) sorted by relevance

/external/libchrome/base/memory/
Dmemory_pressure_monitor_chromeos.cc58 MemoryPressureMonitor::MemoryPressureThresholds thresholds) { in GetModerateMemoryThresholdInPercent()
59 return thresholds == MemoryPressureMonitor:: in GetModerateMemoryThresholdInPercent()
61 thresholds == MemoryPressureMonitor::THRESHOLD_AGGRESSIVE in GetModerateMemoryThresholdInPercent()
69 MemoryPressureMonitor::MemoryPressureThresholds thresholds) { in GetCriticalMemoryThresholdInPercent()
70 return thresholds == MemoryPressureMonitor:: in GetCriticalMemoryThresholdInPercent()
72 thresholds == MemoryPressureMonitor::THRESHOLD_AGGRESSIVE in GetCriticalMemoryThresholdInPercent()
106 MemoryPressureMonitor::MemoryPressureMonitor( in MemoryPressureMonitor() function in base::chromeos::MemoryPressureMonitor
126 MemoryPressureMonitor::~MemoryPressureMonitor() { in ~MemoryPressureMonitor()
130 void MemoryPressureMonitor::ScheduleEarlyCheck() { in ScheduleEarlyCheck()
132 FROM_HERE, BindOnce(&MemoryPressureMonitor::CheckMemoryPressure, in ScheduleEarlyCheck()
[all …]
Dmemory_pressure_monitor.cc13 MemoryPressureMonitor* g_monitor = nullptr;
43 MemoryPressureMonitor::MemoryPressureMonitor() { in MemoryPressureMonitor() function in base::MemoryPressureMonitor
48 MemoryPressureMonitor::~MemoryPressureMonitor() { in ~MemoryPressureMonitor()
54 MemoryPressureMonitor* MemoryPressureMonitor::Get() { in Get()
57 void MemoryPressureMonitor::RecordMemoryPressure( in RecordMemoryPressure()
Dmemory_pressure_monitor_chromeos.h28 class BASE_EXPORT MemoryPressureMonitor : public base::MemoryPressureMonitor {
52 explicit MemoryPressureMonitor(MemoryPressureThresholds thresholds);
53 ~MemoryPressureMonitor() override;
67 static MemoryPressureMonitor* Get();
120 base::WeakPtrFactory<MemoryPressureMonitor> weak_ptr_factory_;
122 DISALLOW_COPY_AND_ASSIGN(MemoryPressureMonitor);
Dmemory_pressure_monitor.h24 class BASE_EXPORT MemoryPressureMonitor {
29 virtual ~MemoryPressureMonitor();
32 static MemoryPressureMonitor* Get();
45 MemoryPressureMonitor();
48 DISALLOW_COPY_AND_ASSIGN(MemoryPressureMonitor);
Dmemory_pressure_monitor_unittest.cc18 MemoryPressureMonitor::RecordMemoryPressure( in TEST()
23 MemoryPressureMonitor::RecordMemoryPressure( in TEST()
28 MemoryPressureMonitor::RecordMemoryPressure( in TEST()
Dmemory_pressure_monitor_chromeos_unittest.cc47 class TestMemoryPressureMonitor : public MemoryPressureMonitor {
50 : MemoryPressureMonitor(THRESHOLD_DEFAULT), in TestMemoryPressureMonitor()
/external/libchrome/base/android/java/src/org/chromium/base/memory/
DMemoryPressureMonitor.java78 public class MemoryPressureMonitor { class
97 MemoryPressureMonitor::getCurrentMemoryPressure;
116 public static final MemoryPressureMonitor INSTANCE =
117 new MemoryPressureMonitor(DEFAULT_THROTTLING_INTERVAL_MS);
120 protected MemoryPressureMonitor(int throttlingIntervalMs) { in MemoryPressureMonitor() method in MemoryPressureMonitor
/external/libchrome/base/android/java/src/org/chromium/base/process_launcher/
DChildProcessService.java27 import org.chromium.base.memory.MemoryPressureMonitor;
156 if (pressure >= MemoryPressureMonitor.INSTANCE.getLastReportedPressure()) {
157 MemoryPressureMonitor.INSTANCE.notifyPressure(pressure);
/external/libchrome/base/android/junit/src/org/chromium/base/memory/
DMemoryPressureMonitorTest.java31 private MemoryPressureMonitor mMonitor;
90 mMonitor = new MemoryPressureMonitor(THROTTLING_INTERVAL_MS); in setUp()
126 Integer actualPressure = MemoryPressureMonitor.memoryPressureFromTrimLevel(trimLevel); in testTrimLevelTranslation()