blob: 814c58d21ffeb90a4883931ea80a1bb6ad25bf68 [file] [log] [blame]
# Copyright 2017 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.
import("//third_party/blink/renderer/platform/platform.gni")
blink_platform_sources("instrumentation") {
configs += [ "//build/config/compiler:noshadowing" ]
sources = [
"canvas_memory_dump_provider.cc",
"canvas_memory_dump_provider.h",
"histogram.cc",
"histogram.h",
"instance_counters.cc",
"instance_counters.h",
"instance_counters_memory_dump_provider.cc",
"instance_counters_memory_dump_provider.h",
"memory_pressure_listener.cc",
"memory_pressure_listener.h",
"partition_alloc_memory_dump_provider.cc",
"partition_alloc_memory_dump_provider.h",
"resource_coordinator/document_resource_coordinator.cc",
"resource_coordinator/document_resource_coordinator.h",
"resource_coordinator/renderer_resource_coordinator.cc",
"resource_coordinator/renderer_resource_coordinator.h",
"tracing/memory_cache_dump_provider.cc",
"tracing/memory_cache_dump_provider.h",
"tracing/trace_event.cc",
"tracing/trace_event.h",
"tracing/traced_value.cc",
"tracing/traced_value.h",
"tracing/web_memory_allocator_dump.cc",
"tracing/web_memory_allocator_dump.h",
"tracing/web_process_memory_dump.cc",
"tracing/web_process_memory_dump.h",
"use_counter.h",
]
deps = [ "//services/service_manager/public/cpp" ]
public_deps = [
"//components/performance_manager/public/mojom:mojom_blink",
"//third_party/blink/renderer/platform/heap:heap",
]
allow_circular_includes_from = public_deps
}
source_set("unit_tests") {
testonly = true
sources = [
"histogram_test.cc",
"partition_alloc_memory_dump_provider_test.cc",
"tracing/traced_value_test.cc",
"tracing/web_process_memory_dump_test.cc",
]
deps = [
"//base",
"//base/test:test_support",
"//testing/gmock",
"//testing/gtest",
"//third_party/blink/renderer/platform:platform",
]
configs += [ "//third_party/blink/renderer/platform:blink_platform_config" ]
}