perfetto-protos
Version:
Perfetto protos exposed via protobuf-es for browser and node
89 lines • 4.96 kB
JavaScript
"use strict";
//
// 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.
Object.defineProperty(exports, "__esModule", { value: true });
exports.CounterDescriptor_UnitSchema = exports.CounterDescriptor_Unit = exports.CounterDescriptor_BuiltinCounterTypeSchema = exports.CounterDescriptor_BuiltinCounterType = exports.CounterDescriptorSchema = exports.file_protos_perfetto_trace_track_event_counter_descriptor = void 0;
const codegenv1_1 = require("@bufbuild/protobuf/codegenv1");
/**
* Describes the file protos/perfetto/trace/track_event/counter_descriptor.proto.
*/
exports.file_protos_perfetto_trace_track_event_counter_descriptor = (0, codegenv1_1.fileDesc)("Cjpwcm90b3MvcGVyZmV0dG8vdHJhY2UvdHJhY2tfZXZlbnQvY291bnRlcl9kZXNjcmlwdG9yLnByb3RvEg9wZXJmZXR0by5wcm90b3MirQMKEUNvdW50ZXJEZXNjcmlwdG9yEkMKBHR5cGUYASABKA4yNS5wZXJmZXR0by5wcm90b3MuQ291bnRlckRlc2NyaXB0b3IuQnVpbHRpbkNvdW50ZXJUeXBlEhIKCmNhdGVnb3JpZXMYAiADKAkSNQoEdW5pdBgDIAEoDjInLnBlcmZldHRvLnByb3Rvcy5Db3VudGVyRGVzY3JpcHRvci5Vbml0EhEKCXVuaXRfbmFtZRgGIAEoCRIXCg91bml0X211bHRpcGxpZXIYBCABKAMSFgoOaXNfaW5jcmVtZW50YWwYBSABKAgibwoSQnVpbHRpbkNvdW50ZXJUeXBlEhcKE0NPVU5URVJfVU5TUEVDSUZJRUQQABIaChZDT1VOVEVSX1RIUkVBRF9USU1FX05TEAESJAogQ09VTlRFUl9USFJFQURfSU5TVFJVQ1RJT05fQ09VTlQQAiJTCgRVbml0EhQKEFVOSVRfVU5TUEVDSUZJRUQQABIQCgxVTklUX1RJTUVfTlMQARIOCgpVTklUX0NPVU5UEAISEwoPVU5JVF9TSVpFX0JZVEVTEAM");
/**
* Describes the message perfetto.protos.CounterDescriptor.
* Use `create(CounterDescriptorSchema)` to create a new message.
*/
exports.CounterDescriptorSchema = (0, codegenv1_1.messageDesc)(exports.file_protos_perfetto_trace_track_event_counter_descriptor, 0);
/**
* Built-in counters, usually with special meaning in the client library,
* trace processor, legacy JSON format, or UI. Trace processor will infer a
* track name from the enum value if none is provided in TrackDescriptor.
*
* @generated from enum perfetto.protos.CounterDescriptor.BuiltinCounterType
*/
var CounterDescriptor_BuiltinCounterType;
(function (CounterDescriptor_BuiltinCounterType) {
/**
* @generated from enum value: COUNTER_UNSPECIFIED = 0;
*/
CounterDescriptor_BuiltinCounterType[CounterDescriptor_BuiltinCounterType["COUNTER_UNSPECIFIED"] = 0] = "COUNTER_UNSPECIFIED";
/**
* implies UNIT_TIME_NS.
*
* @generated from enum value: COUNTER_THREAD_TIME_NS = 1;
*/
CounterDescriptor_BuiltinCounterType[CounterDescriptor_BuiltinCounterType["COUNTER_THREAD_TIME_NS"] = 1] = "COUNTER_THREAD_TIME_NS";
/**
* implies UNIT_COUNT.
*
* @generated from enum value: COUNTER_THREAD_INSTRUCTION_COUNT = 2;
*/
CounterDescriptor_BuiltinCounterType[CounterDescriptor_BuiltinCounterType["COUNTER_THREAD_INSTRUCTION_COUNT"] = 2] = "COUNTER_THREAD_INSTRUCTION_COUNT";
})(CounterDescriptor_BuiltinCounterType || (exports.CounterDescriptor_BuiltinCounterType = CounterDescriptor_BuiltinCounterType = {}));
/**
* Describes the enum perfetto.protos.CounterDescriptor.BuiltinCounterType.
*/
exports.CounterDescriptor_BuiltinCounterTypeSchema = (0, codegenv1_1.enumDesc)(exports.file_protos_perfetto_trace_track_event_counter_descriptor, 0, 0);
/**
* Type of the values for the counters - to supply lower granularity units,
* see also |unit_multiplier|.
*
* @generated from enum perfetto.protos.CounterDescriptor.Unit
*/
var CounterDescriptor_Unit;
(function (CounterDescriptor_Unit) {
/**
* @generated from enum value: UNIT_UNSPECIFIED = 0;
*/
CounterDescriptor_Unit[CounterDescriptor_Unit["UNSPECIFIED"] = 0] = "UNSPECIFIED";
/**
* @generated from enum value: UNIT_TIME_NS = 1;
*/
CounterDescriptor_Unit[CounterDescriptor_Unit["TIME_NS"] = 1] = "TIME_NS";
/**
* @generated from enum value: UNIT_COUNT = 2;
*/
CounterDescriptor_Unit[CounterDescriptor_Unit["COUNT"] = 2] = "COUNT";
/**
* TODO(eseckler): Support more units as necessary.
*
* @generated from enum value: UNIT_SIZE_BYTES = 3;
*/
CounterDescriptor_Unit[CounterDescriptor_Unit["SIZE_BYTES"] = 3] = "SIZE_BYTES";
})(CounterDescriptor_Unit || (exports.CounterDescriptor_Unit = CounterDescriptor_Unit = {}));
/**
* Describes the enum perfetto.protos.CounterDescriptor.Unit.
*/
exports.CounterDescriptor_UnitSchema = (0, codegenv1_1.enumDesc)(exports.file_protos_perfetto_trace_track_event_counter_descriptor, 0, 1);
//# sourceMappingURL=counter_descriptor_pb.js.map