blob: 943f882095eb139164ecdf095d2ec744ee67ce27 [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_PERFORMANCE_MANAGER_V8_DETAILED_MEMORY_REPORTER_IMPL_H_
#define THIRD_PARTY_BLINK_RENDERER_CONTROLLER_PERFORMANCE_MANAGER_V8_DETAILED_MEMORY_REPORTER_IMPL_H_
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "third_party/blink/public/mojom/performance_manager/v8_detailed_memory_reporter.mojom-blink.h"
#include "third_party/blink/renderer/controller/controller_export.h"
namespace blink {
// Exposes V8 per-frame associated memory metrics to the browser.
class CONTROLLER_EXPORT V8DetailedMemoryReporterImpl
: public mojom::blink::V8DetailedMemoryReporter {
public:
static void Create(
mojo::PendingReceiver<mojom::blink::V8DetailedMemoryReporter> receiver);
void GetV8MemoryUsage(Mode mode, GetV8MemoryUsageCallback callback) override;
};
} // namespace blink
#endif // THIRD_PARTY_BLINK_CONTROLLER_PERFORMANCE_MANAGER_V8_DETAILED_MEMORY_REPORTER_IMPL_H_