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 '../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 AndroidPowerConfig = protos.perfetto.protos.AndroidPowerConfig; 21import AndroidLogId = protos.perfetto.protos.AndroidLogId; 22import BatteryCounters = 23 protos.perfetto.protos.AndroidPowerConfig.BatteryCounters; 24import BufferConfig = protos.perfetto.protos.TraceConfig.BufferConfig; 25import ChromeConfig = protos.perfetto.protos.ChromeConfig; 26import TrackEventConfig = protos.perfetto.protos.TrackEventConfig; 27import ConsumerPort = protos.perfetto.protos.ConsumerPort; 28import NetworkPacketTraceConfig = 29 protos.perfetto.protos.NetworkPacketTraceConfig; 30import NativeContinuousDumpConfig = 31 protos.perfetto.protos.HeapprofdConfig.ContinuousDumpConfig; 32import JavaContinuousDumpConfig = 33 protos.perfetto.protos.JavaHprofConfig.ContinuousDumpConfig; 34import DataSourceConfig = protos.perfetto.protos.DataSourceConfig; 35import DataSourceDescriptor = protos.perfetto.protos.DataSourceDescriptor; 36import FtraceConfig = protos.perfetto.protos.FtraceConfig; 37import HeapprofdConfig = protos.perfetto.protos.HeapprofdConfig; 38import JavaHprofConfig = protos.perfetto.protos.JavaHprofConfig; 39import IAndroidPowerConfig = protos.perfetto.protos.IAndroidPowerConfig; 40import IBufferConfig = protos.perfetto.protos.TraceConfig.IBufferConfig; 41import IProcessStatsConfig = protos.perfetto.protos.IProcessStatsConfig; 42import ISysStatsConfig = protos.perfetto.protos.ISysStatsConfig; 43import ITraceConfig = protos.perfetto.protos.ITraceConfig; 44import MeminfoCounters = protos.perfetto.protos.MeminfoCounters; 45import ProcessStatsConfig = protos.perfetto.protos.ProcessStatsConfig; 46import StatCounters = protos.perfetto.protos.SysStatsConfig.StatCounters; 47import SysStatsConfig = protos.perfetto.protos.SysStatsConfig; 48import TraceConfig = protos.perfetto.protos.TraceConfig; 49import VmstatCounters = protos.perfetto.protos.VmstatCounters; 50import IPCFrame = protos.perfetto.protos.IPCFrame; 51import IMethodInfo = 52 protos.perfetto.protos.IPCFrame.BindServiceReply.IMethodInfo; 53import IBufferStats = protos.perfetto.protos.TraceStats.IBufferStats; 54import ISlice = protos.perfetto.protos.ReadBuffersResponse.ISlice; 55import EnableTracingRequest = protos.perfetto.protos.EnableTracingRequest; 56import DisableTracingRequest = protos.perfetto.protos.DisableTracingRequest; 57import GetTraceStatsRequest = protos.perfetto.protos.GetTraceStatsRequest; 58import FreeBuffersRequest = protos.perfetto.protos.FreeBuffersRequest; 59import ReadBuffersRequest = protos.perfetto.protos.ReadBuffersRequest; 60import QueryServiceStateRequest = 61 protos.perfetto.protos.QueryServiceStateRequest; 62import EnableTracingResponse = protos.perfetto.protos.EnableTracingResponse; 63import DisableTracingResponse = protos.perfetto.protos.DisableTracingResponse; 64import GetTraceStatsResponse = protos.perfetto.protos.GetTraceStatsResponse; 65import FreeBuffersResponse = protos.perfetto.protos.FreeBuffersResponse; 66import ReadBuffersResponse = protos.perfetto.protos.ReadBuffersResponse; 67import QueryServiceStateResponse = 68 protos.perfetto.protos.QueryServiceStateResponse; 69// Trace Processor protos. 70import QueryArgs = protos.perfetto.protos.QueryArgs; 71import ResetTraceProcessorArgs = protos.perfetto.protos.ResetTraceProcessorArgs; 72import StatusResult = protos.perfetto.protos.StatusResult; 73import ComputeMetricArgs = protos.perfetto.protos.ComputeMetricArgs; 74import ComputeMetricResult = protos.perfetto.protos.ComputeMetricResult; 75import DisableAndReadMetatraceResult = 76 protos.perfetto.protos.DisableAndReadMetatraceResult; 77import Trace = protos.perfetto.protos.Trace; 78import TracePacket = protos.perfetto.protos.TracePacket; 79import PerfettoMetatrace = protos.perfetto.protos.PerfettoMetatrace; 80 81export { 82 AndroidLogConfig, 83 AndroidLogId, 84 AndroidPowerConfig, 85 BatteryCounters, 86 BufferConfig, 87 ChromeConfig, 88 ConsumerPort, 89 ComputeMetricArgs, 90 ComputeMetricResult, 91 DataSourceConfig, 92 DisableAndReadMetatraceResult, 93 DataSourceDescriptor, 94 DisableTracingRequest, 95 DisableTracingResponse, 96 EnableTracingRequest, 97 EnableTracingResponse, 98 FreeBuffersRequest, 99 FreeBuffersResponse, 100 FtraceConfig, 101 GetTraceStatsRequest, 102 GetTraceStatsResponse, 103 HeapprofdConfig, 104 IAndroidPowerConfig, 105 IBufferConfig, 106 IBufferStats, 107 IMethodInfo, 108 IPCFrame, 109 IProcessStatsConfig, 110 ISlice, 111 ISysStatsConfig, 112 ITraceConfig, 113 JavaContinuousDumpConfig, 114 JavaHprofConfig, 115 MeminfoCounters, 116 NativeContinuousDumpConfig, 117 NetworkPacketTraceConfig, 118 ProcessStatsConfig, 119 PerfettoMetatrace, 120 ReadBuffersRequest, 121 ReadBuffersResponse, 122 QueryServiceStateRequest, 123 QueryServiceStateResponse, 124 QueryArgs, 125 ResetTraceProcessorArgs, 126 StatCounters, 127 StatusResult, 128 SysStatsConfig, 129 Trace, 130 TraceConfig, 131 TrackEventConfig, 132 TracePacket, 133 VmstatCounters, 134}; 135