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 protos from '../../deps_build/trace_processor/ui/tsc/gen/protos';
16
17// Aliases protos to avoid the super nested namespaces.
18// See https://www.typescriptlang.org/docs/handbook/namespaces.html#aliases
19import AndroidLogConfig = protos.perfetto.protos.AndroidLogConfig;
20import AndroidLogId = protos.perfetto.protos.AndroidLogId;
21import AndroidPowerConfig = protos.perfetto.protos.AndroidPowerConfig;
22import BatteryCounters = protos.perfetto.protos.AndroidPowerConfig.BatteryCounters;
23import BufferConfig = protos.perfetto.protos.TraceConfig.BufferConfig;
24import ChromeConfig = protos.perfetto.protos.ChromeConfig;
25import ComputeMetricArgs = protos.perfetto.protos.ComputeMetricArgs;
26import ComputeMetricResult = protos.perfetto.protos.ComputeMetricResult;
27import ConsumerPort = protos.perfetto.protos.ConsumerPort;
28import DataSourceConfig = protos.perfetto.protos.DataSourceConfig;
29import DataSourceDescriptor = protos.perfetto.protos.DataSourceDescriptor;
30import DisableAndReadMetatraceResult = protos.perfetto.protos.DisableAndReadMetatraceResult;
31import DisableTracingRequest = protos.perfetto.protos.DisableTracingRequest;
32import DisableTracingResponse = protos.perfetto.protos.DisableTracingResponse;
33import EnableMetatraceArgs = protos.perfetto.protos.EnableMetatraceArgs;
34import EnableTracingRequest = protos.perfetto.protos.EnableTracingRequest;
35import EnableTracingResponse = protos.perfetto.protos.EnableTracingResponse;
36import EtwConfig = protos.perfetto.protos.EtwConfig;
37import FreeBuffersRequest = protos.perfetto.protos.FreeBuffersRequest;
38import FreeBuffersResponse = protos.perfetto.protos.FreeBuffersResponse;
39import FtraceConfig = protos.perfetto.protos.FtraceConfig;
40import GetTraceStatsRequest = protos.perfetto.protos.GetTraceStatsRequest;
41import GetTraceStatsResponse = protos.perfetto.protos.GetTraceStatsResponse;
42import HeapprofdConfig = protos.perfetto.protos.HeapprofdConfig;
43import IAndroidPowerConfig = protos.perfetto.protos.IAndroidPowerConfig;
44import IBufferConfig = protos.perfetto.protos.TraceConfig.IBufferConfig;
45import IBufferStats = protos.perfetto.protos.TraceStats.IBufferStats;
46import IDisableTracingResponse = protos.perfetto.protos.IDisableTracingResponse;
47import IEnableTracingResponse = protos.perfetto.protos.IEnableTracingResponse;
48import IFreeBuffersResponse = protos.perfetto.protos.IFreeBuffersResponse;
49import IGetTraceStatsResponse = protos.perfetto.protos.IGetTraceStatsResponse;
50import IMethodInfo = protos.perfetto.protos.IPCFrame.BindServiceReply.IMethodInfo;
51import IPCFrame = protos.perfetto.protos.IPCFrame;
52import IProcessStatsConfig = protos.perfetto.protos.IProcessStatsConfig;
53import IReadBuffersResponse = protos.perfetto.protos.IReadBuffersResponse;
54import ISlice = protos.perfetto.protos.ReadBuffersResponse.ISlice;
55import ISysStatsConfig = protos.perfetto.protos.ISysStatsConfig;
56import ITraceConfig = protos.perfetto.protos.ITraceConfig;
57import ITraceStats = protos.perfetto.protos.ITraceStats;
58import JavaContinuousDumpConfig = protos.perfetto.protos.JavaHprofConfig.ContinuousDumpConfig;
59import JavaHprofConfig = protos.perfetto.protos.JavaHprofConfig;
60import MeminfoCounters = protos.perfetto.protos.MeminfoCounters;
61import MetatraceCategories = protos.perfetto.protos.MetatraceCategories;
62import NativeContinuousDumpConfig = protos.perfetto.protos.HeapprofdConfig.ContinuousDumpConfig;
63import NetworkPacketTraceConfig = protos.perfetto.protos.NetworkPacketTraceConfig;
64import PerfEventConfig = protos.perfetto.protos.PerfEventConfig;
65import PerfEvents = protos.perfetto.protos.PerfEvents;
66import PerfettoMetatrace = protos.perfetto.protos.PerfettoMetatrace;
67import ProcessStatsConfig = protos.perfetto.protos.ProcessStatsConfig;
68import QueryArgs = protos.perfetto.protos.QueryArgs;
69import QueryResult = protos.perfetto.protos.QueryResult;
70import QueryServiceStateRequest = protos.perfetto.protos.QueryServiceStateRequest;
71import QueryServiceStateResponse = protos.perfetto.protos.QueryServiceStateResponse;
72import ReadBuffersRequest = protos.perfetto.protos.ReadBuffersRequest;
73import ReadBuffersResponse = protos.perfetto.protos.ReadBuffersResponse;
74import ResetTraceProcessorArgs = protos.perfetto.protos.ResetTraceProcessorArgs;
75import StatCounters = protos.perfetto.protos.SysStatsConfig.StatCounters;
76import StatusResult = protos.perfetto.protos.StatusResult;
77import SysStatsConfig = protos.perfetto.protos.SysStatsConfig;
78import TraceConfig = protos.perfetto.protos.TraceConfig;
79import TraceProcessorApiVersion = protos.perfetto.protos.TraceProcessorApiVersion;
80import TraceProcessorRpc = protos.perfetto.protos.TraceProcessorRpc;
81import TraceProcessorRpcStream = protos.perfetto.protos.TraceProcessorRpcStream;
82import TrackEventConfig = protos.perfetto.protos.TrackEventConfig;
83import VmstatCounters = protos.perfetto.protos.VmstatCounters;
84
85export {
86  AndroidLogConfig,
87  AndroidLogId,
88  AndroidPowerConfig,
89  BatteryCounters,
90  BufferConfig,
91  ChromeConfig,
92  ComputeMetricArgs,
93  ComputeMetricResult,
94  ConsumerPort,
95  DataSourceConfig,
96  DataSourceDescriptor,
97  DisableAndReadMetatraceResult,
98  DisableTracingRequest,
99  DisableTracingResponse,
100  EnableMetatraceArgs,
101  EnableTracingRequest,
102  EnableTracingResponse,
103  EtwConfig,
104  FreeBuffersRequest,
105  FreeBuffersResponse,
106  FtraceConfig,
107  GetTraceStatsRequest,
108  GetTraceStatsResponse,
109  HeapprofdConfig,
110  IAndroidPowerConfig,
111  IBufferConfig,
112  IBufferStats,
113  IDisableTracingResponse,
114  IEnableTracingResponse,
115  IFreeBuffersResponse,
116  IGetTraceStatsResponse,
117  IMethodInfo,
118  IPCFrame,
119  IProcessStatsConfig,
120  IReadBuffersResponse,
121  ISlice,
122  ISysStatsConfig,
123  ITraceConfig,
124  ITraceStats,
125  JavaContinuousDumpConfig,
126  JavaHprofConfig,
127  MeminfoCounters,
128  MetatraceCategories,
129  NativeContinuousDumpConfig,
130  NetworkPacketTraceConfig,
131  PerfettoMetatrace,
132  PerfEventConfig,
133  PerfEvents,
134  ProcessStatsConfig,
135  QueryArgs,
136  QueryResult,
137  QueryServiceStateRequest,
138  QueryServiceStateResponse,
139  ReadBuffersRequest,
140  ReadBuffersResponse,
141  ResetTraceProcessorArgs,
142  StatCounters,
143  StatusResult,
144  SysStatsConfig,
145  TraceConfig,
146  TraceProcessorApiVersion,
147  TraceProcessorRpc,
148  TraceProcessorRpcStream,
149  TrackEventConfig,
150  VmstatCounters,
151};
152