• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2018 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15import("../../../gn/perfetto.gni")
16import("../../../gn/test.gni")
17
18# Prevent that this file is accidentally included in embedder builds.
19assert(enable_perfetto_trace_processor)
20
21source_set("sorter") {
22  sources = [
23    "trace_sorter.cc",
24    "trace_sorter.h",
25    "trace_token_buffer.cc",
26    "trace_token_buffer.h",
27  ]
28  deps = [
29    "../../../gn:default_deps",
30    "../../../include/perfetto/trace_processor:storage",
31    "../../base",
32    "../importers/common:parser_types",
33    "../importers/common:trace_parser_hdr",
34    "../importers/fuchsia:fuchsia_record",
35    "../importers/perf:record",
36    "../importers/systrace:systrace_line",
37    "../storage",
38    "../types",
39    "../util:bump_allocator",
40  ]
41}
42
43perfetto_unittest_source_set("unittests") {
44  testonly = true
45  sources = [
46    "trace_sorter_unittest.cc",
47    "trace_token_buffer_unittest.cc",
48  ]
49  deps = [
50    ":sorter",
51    "../../../gn:default_deps",
52    "../../../gn:gtest_and_gmock",
53    "../../../include/perfetto/trace_processor:storage",
54    "../../../include/perfetto/trace_processor:trace_processor",
55    "../../base",
56    "../importers/common:parser_types",
57    "../importers/proto:minimal",
58    "../importers/proto:packet_sequence_state_generation_hdr",
59    "../types",
60  ]
61}
62