aboutsummaryrefslogtreecommitdiff
path: root/src/trace_processor/tables/trace_proto_tables.h
blob: aa57b593c1b900ae3b56ab92dda32424ba8ab2a1 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
 * Copyright (C) 2020 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef SRC_TRACE_PROCESSOR_TABLES_TRACE_PROTO_TABLES_H_
#define SRC_TRACE_PROCESSOR_TABLES_TRACE_PROTO_TABLES_H_

#include "src/trace_processor/tables/macros.h"

namespace perfetto {
namespace trace_processor {
namespace tables {

// Experimental table, subject to arbitrary breaking changes.
#define PERFETTO_TP_EXPERIMENTAL_PROTO_PATH_TABLE_DEF(NAME, PARENT, C) \
  NAME(ExperimentalProtoPathTable, "experimental_proto_path")          \
  PERFETTO_TP_ROOT_TABLE(PARENT, C)                                    \
  C(std::optional<ExperimentalProtoPathTable::Id>, parent_id)          \
  C(StringPool::Id, field_type)                                        \
  C(std::optional<StringPool::Id>, field_name)                         \
  C(std::optional<uint32_t>, arg_set_id)

PERFETTO_TP_TABLE(PERFETTO_TP_EXPERIMENTAL_PROTO_PATH_TABLE_DEF);

#define PERFETTO_TP_EXPERIMENTAL_PROTO_CONTENT_TABLE_DEF(NAME, PARENT, C) \
  NAME(ExperimentalProtoContentTable, "experimental_proto_content")       \
  PERFETTO_TP_ROOT_TABLE(PARENT, C)                                       \
  C(StringPool::Id, path)                                                 \
  C(ExperimentalProtoPathTable::Id, path_id)                              \
  C(int64_t, total_size)                                                  \
  C(int64_t, size)                                                        \
  C(int64_t, count)

PERFETTO_TP_TABLE(PERFETTO_TP_EXPERIMENTAL_PROTO_CONTENT_TABLE_DEF);

}  // namespace tables
}  // namespace trace_processor
}  // namespace perfetto

#endif  // SRC_TRACE_PROCESSOR_TABLES_TRACE_PROTO_TABLES_H_