blob: 79b2a2e0de066bf41287527bd75efcff5ba37484 [file] [log] [blame]
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_CONTROLLER_MEMORY_USAGE_MONITOR_MAC_H_
#define THIRD_PARTY_BLINK_RENDERER_CONTROLLER_MEMORY_USAGE_MONITOR_MAC_H_
#include "third_party/blink/renderer/controller/controller_export.h"
#include "third_party/blink/renderer/controller/memory_usage_monitor.h"
namespace blink {
// MemoryUsageMonitor implementation for Mac platform.
class CONTROLLER_EXPORT MemoryUsageMonitorMac : public MemoryUsageMonitor {
public:
MemoryUsageMonitorMac() = default;
private:
void GetProcessMemoryUsage(MemoryUsage&) override;
static bool CalculateProcessMemoryFootprint(uint64_t* private_footprint);
};
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_CONTROLLER_MEMORY_USAGE_MONITOR_MAC_H_