#include "third_party/blink/renderer/core/timing/measure_memory/local_web_memory_measurer.h"
#include <memory>
#include <utility>
#include "base/check.h"
#include "third_party/blink/renderer/core/timing/measure_memory/measure_memory_controller.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
#include "third_party/blink/renderer/platform/wtf/vector.h"
namespace blink {
WebMemoryAttribution;
WebMemoryAttributionPtr;
WebMemoryBreakdownEntry;
WebMemoryBreakdownEntryPtr;
WebMemoryMeasurement;
WebMemoryMeasurementPtr;
WebMemoryUsage;
namespace {
v8::MeasureMemoryExecution ToV8MeasureMemoryExecution(
WebMemoryMeasurement::Mode mode) { … }
}
void LocalWebMemoryMeasurer::StartMeasurement(
v8::Isolate* isolate,
WebMemoryMeasurement::Mode mode,
MeasureMemoryController* controller,
WebMemoryAttribution::Scope attribution_scope,
WTF::String attribution_url) { … }
LocalWebMemoryMeasurer::LocalWebMemoryMeasurer(
MeasureMemoryController* controller,
WebMemoryAttribution::Scope attribution_scope,
WTF::String attribution_url)
: … { … }
LocalWebMemoryMeasurer::~LocalWebMemoryMeasurer() = default;
bool LocalWebMemoryMeasurer::ShouldMeasure(v8::Local<v8::Context> context) { … }
void LocalWebMemoryMeasurer::MeasurementComplete(
v8::MeasureMemoryDelegate::Result result) { … }
}