summaryrefslogtreecommitdiff
path: root/chromium/components/services/heap_profiling/BUILD.gn
blob: 9b5f6a09cc3722ec950ffcc823a4b8f3e4f3eafe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# 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.

static_library("heap_profiling") {
  sources = [
    "allocation.cc",
    "allocation.h",
    "connection_manager.cc",
    "connection_manager.h",
    "heap_profiling_service.cc",
    "heap_profiling_service.h",
    "json_exporter.cc",
    "json_exporter.h",
  ]

  public_deps = [
    "//base",
    "//components/services/heap_profiling/public/mojom",
    "//mojo/public/cpp/bindings",
    "//services/resource_coordinator/public/mojom",
  ]

  deps = [
    "//components/services/heap_profiling/public/cpp",
    "//services/resource_coordinator/public/cpp:resource_coordinator_cpp",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [ "json_exporter_unittest.cc" ]
  deps = [
    ":heap_profiling",
    "//base",
    "//services/resource_coordinator/public/cpp:resource_coordinator_cpp",
    "//testing/gtest",
  ]
}