UNPKG

perfetto-protos

Version:

Perfetto protos exposed via protobuf-es for browser and node

223 lines 10.7 kB
"use strict"; // // Copyright (C) 2021 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.FollowerEventSchema = exports.PerfEvents_PerfClockSchema = exports.PerfEvents_PerfClock = exports.PerfEvents_CounterSchema = exports.PerfEvents_Counter = exports.PerfEvents_RawEventSchema = exports.PerfEvents_TracepointSchema = exports.PerfEvents_TimebaseSchema = exports.PerfEventsSchema = exports.file_protos_perfetto_common_perf_events = void 0; const codegenv1_1 = require("@bufbuild/protobuf/codegenv1"); /** * Describes the file protos/perfetto/common/perf_events.proto. */ exports.file_protos_perfetto_common_perf_events = (0, codegenv1_1.fileDesc)("Cihwcm90b3MvcGVyZmV0dG8vY29tbW9uL3BlcmZfZXZlbnRzLnByb3RvEg9wZXJmZXR0by5wcm90b3MixwgKClBlcmZFdmVudHMaxQIKCFRpbWViYXNlEhMKCWZyZXF1ZW5jeRgCIAEoBEgAEhAKBnBlcmlvZBgBIAEoBEgAEjYKB2NvdW50ZXIYBCABKA4yIy5wZXJmZXR0by5wcm90b3MuUGVyZkV2ZW50cy5Db3VudGVySAESPAoKdHJhY2Vwb2ludBgDIAEoCzImLnBlcmZldHRvLnByb3Rvcy5QZXJmRXZlbnRzLlRyYWNlcG9pbnRIARI5CglyYXdfZXZlbnQYBSABKAsyJC5wZXJmZXR0by5wcm90b3MuUGVyZkV2ZW50cy5SYXdFdmVudEgBEj4KD3RpbWVzdGFtcF9jbG9jaxgLIAEoDjIlLnBlcmZldHRvLnByb3Rvcy5QZXJmRXZlbnRzLlBlcmZDbG9j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ZlbnQSNgoHY291bnRlchgBIAEoDjIjLnBlcmZldHRvLnByb3Rvcy5QZXJmRXZlbnRzLkNvdW50ZXJIABI8Cgp0cmFjZXBvaW50GAIgASgLMiYucGVyZmV0dG8ucHJvdG9zLlBlcmZFdmVudHMuVHJhY2Vwb2ludEgAEjkKCXJhd19ldmVudBgDIAEoCzIkLnBlcmZldHRvLnByb3Rvcy5QZXJmRXZlbnRzLlJhd0V2ZW50SAASDAoEbmFtZRgEIAEoCUIHCgVldmVudA"); /** * Describes the message perfetto.protos.PerfEvents. * Use `create(PerfEventsSchema)` to create a new message. */ exports.PerfEventsSchema = (0, codegenv1_1.messageDesc)(exports.file_protos_perfetto_common_perf_events, 0); /** * Describes the message perfetto.protos.PerfEvents.Timebase. * Use `create(PerfEvents_TimebaseSchema)` to create a new message. */ exports.PerfEvents_TimebaseSchema = (0, codegenv1_1.messageDesc)(exports.file_protos_perfetto_common_perf_events, 0, 0); /** * Describes the message perfetto.protos.PerfEvents.Tracepoint. * Use `create(PerfEvents_TracepointSchema)` to create a new message. */ exports.PerfEvents_TracepointSchema = (0, codegenv1_1.messageDesc)(exports.file_protos_perfetto_common_perf_events, 0, 1); /** * Describes the message perfetto.protos.PerfEvents.RawEvent. * Use `create(PerfEvents_RawEventSchema)` to create a new message. */ exports.PerfEvents_RawEventSchema = (0, codegenv1_1.messageDesc)(exports.file_protos_perfetto_common_perf_events, 0, 2); /** * Builtin counter names from the uapi header. Commented with their perf tool * aliases. * TODO(rsavitski): consider generating enums for cache events (should be * finite), and generally make this list as extensive as possible. Excluding * things like dynamic PMUs since those don't fit into a static enum. * Next id: 21 * * @generated from enum perfetto.protos.PerfEvents.Counter */ var PerfEvents_Counter; (function (PerfEvents_Counter) { /** * @generated from enum value: UNKNOWN_COUNTER = 0; */ PerfEvents_Counter[PerfEvents_Counter["UNKNOWN_COUNTER"] = 0] = "UNKNOWN_COUNTER"; /** * cpu-clock * * @generated from enum value: SW_CPU_CLOCK = 1; */ PerfEvents_Counter[PerfEvents_Counter["SW_CPU_CLOCK"] = 1] = "SW_CPU_CLOCK"; /** * page-faults, faults * * @generated from enum value: SW_PAGE_FAULTS = 2; */ PerfEvents_Counter[PerfEvents_Counter["SW_PAGE_FAULTS"] = 2] = "SW_PAGE_FAULTS"; /** * task-clock * * @generated from enum value: SW_TASK_CLOCK = 3; */ PerfEvents_Counter[PerfEvents_Counter["SW_TASK_CLOCK"] = 3] = "SW_TASK_CLOCK"; /** * context-switches, cs * * @generated from enum value: SW_CONTEXT_SWITCHES = 4; */ PerfEvents_Counter[PerfEvents_Counter["SW_CONTEXT_SWITCHES"] = 4] = "SW_CONTEXT_SWITCHES"; /** * cpu-migrations, migrations * * @generated from enum value: SW_CPU_MIGRATIONS = 5; */ PerfEvents_Counter[PerfEvents_Counter["SW_CPU_MIGRATIONS"] = 5] = "SW_CPU_MIGRATIONS"; /** * minor-faults * * @generated from enum value: SW_PAGE_FAULTS_MIN = 6; */ PerfEvents_Counter[PerfEvents_Counter["SW_PAGE_FAULTS_MIN"] = 6] = "SW_PAGE_FAULTS_MIN"; /** * major-faults * * @generated from enum value: SW_PAGE_FAULTS_MAJ = 7; */ PerfEvents_Counter[PerfEvents_Counter["SW_PAGE_FAULTS_MAJ"] = 7] = "SW_PAGE_FAULTS_MAJ"; /** * alignment-faults * * @generated from enum value: SW_ALIGNMENT_FAULTS = 8; */ PerfEvents_Counter[PerfEvents_Counter["SW_ALIGNMENT_FAULTS"] = 8] = "SW_ALIGNMENT_FAULTS"; /** * emulation-faults * * @generated from enum value: SW_EMULATION_FAULTS = 9; */ PerfEvents_Counter[PerfEvents_Counter["SW_EMULATION_FAULTS"] = 9] = "SW_EMULATION_FAULTS"; /** * dummy * * @generated from enum value: SW_DUMMY = 20; */ PerfEvents_Counter[PerfEvents_Counter["SW_DUMMY"] = 20] = "SW_DUMMY"; /** * cpu-cycles, cycles * * @generated from enum value: HW_CPU_CYCLES = 10; */ PerfEvents_Counter[PerfEvents_Counter["HW_CPU_CYCLES"] = 10] = "HW_CPU_CYCLES"; /** * instructions * * @generated from enum value: HW_INSTRUCTIONS = 11; */ PerfEvents_Counter[PerfEvents_Counter["HW_INSTRUCTIONS"] = 11] = "HW_INSTRUCTIONS"; /** * cache-references * * @generated from enum value: HW_CACHE_REFERENCES = 12; */ PerfEvents_Counter[PerfEvents_Counter["HW_CACHE_REFERENCES"] = 12] = "HW_CACHE_REFERENCES"; /** * cache-misses * * @generated from enum value: HW_CACHE_MISSES = 13; */ PerfEvents_Counter[PerfEvents_Counter["HW_CACHE_MISSES"] = 13] = "HW_CACHE_MISSES"; /** * branch-instructions, branches * * @generated from enum value: HW_BRANCH_INSTRUCTIONS = 14; */ PerfEvents_Counter[PerfEvents_Counter["HW_BRANCH_INSTRUCTIONS"] = 14] = "HW_BRANCH_INSTRUCTIONS"; /** * branch-misses * * @generated from enum value: HW_BRANCH_MISSES = 15; */ PerfEvents_Counter[PerfEvents_Counter["HW_BRANCH_MISSES"] = 15] = "HW_BRANCH_MISSES"; /** * bus-cycles * * @generated from enum value: HW_BUS_CYCLES = 16; */ PerfEvents_Counter[PerfEvents_Counter["HW_BUS_CYCLES"] = 16] = "HW_BUS_CYCLES"; /** * stalled-cycles-frontend, idle-cycles-frontend * * @generated from enum value: HW_STALLED_CYCLES_FRONTEND = 17; */ PerfEvents_Counter[PerfEvents_Counter["HW_STALLED_CYCLES_FRONTEND"] = 17] = "HW_STALLED_CYCLES_FRONTEND"; /** * stalled-cycles-backend, idle-cycles-backend * * @generated from enum value: HW_STALLED_CYCLES_BACKEND = 18; */ PerfEvents_Counter[PerfEvents_Counter["HW_STALLED_CYCLES_BACKEND"] = 18] = "HW_STALLED_CYCLES_BACKEND"; /** * ref-cycles * * @generated from enum value: HW_REF_CPU_CYCLES = 19; */ PerfEvents_Counter[PerfEvents_Counter["HW_REF_CPU_CYCLES"] = 19] = "HW_REF_CPU_CYCLES"; })(PerfEvents_Counter || (exports.PerfEvents_Counter = PerfEvents_Counter = {})); /** * Describes the enum perfetto.protos.PerfEvents.Counter. */ exports.PerfEvents_CounterSchema = (0, codegenv1_1.enumDesc)(exports.file_protos_perfetto_common_perf_events, 0, 0); /** * Subset of clocks that is supported by perf timestamping. * CLOCK_TAI is excluded since it's not expected to be used in practice, but * would require additions to the trace clock synchronisation logic. * * @generated from enum perfetto.protos.PerfEvents.PerfClock */ var PerfEvents_PerfClock; (function (PerfEvents_PerfClock) { /** * @generated from enum value: UNKNOWN_PERF_CLOCK = 0; */ PerfEvents_PerfClock[PerfEvents_PerfClock["UNKNOWN_PERF_CLOCK"] = 0] = "UNKNOWN_PERF_CLOCK"; /** * @generated from enum value: PERF_CLOCK_REALTIME = 1; */ PerfEvents_PerfClock[PerfEvents_PerfClock["PERF_CLOCK_REALTIME"] = 1] = "PERF_CLOCK_REALTIME"; /** * @generated from enum value: PERF_CLOCK_MONOTONIC = 2; */ PerfEvents_PerfClock[PerfEvents_PerfClock["PERF_CLOCK_MONOTONIC"] = 2] = "PERF_CLOCK_MONOTONIC"; /** * @generated from enum value: PERF_CLOCK_MONOTONIC_RAW = 3; */ PerfEvents_PerfClock[PerfEvents_PerfClock["PERF_CLOCK_MONOTONIC_RAW"] = 3] = "PERF_CLOCK_MONOTONIC_RAW"; /** * @generated from enum value: PERF_CLOCK_BOOTTIME = 4; */ PerfEvents_PerfClock[PerfEvents_PerfClock["PERF_CLOCK_BOOTTIME"] = 4] = "PERF_CLOCK_BOOTTIME"; })(PerfEvents_PerfClock || (exports.PerfEvents_PerfClock = PerfEvents_PerfClock = {})); /** * Describes the enum perfetto.protos.PerfEvents.PerfClock. */ exports.PerfEvents_PerfClockSchema = (0, codegenv1_1.enumDesc)(exports.file_protos_perfetto_common_perf_events, 0, 1); /** * Describes the message perfetto.protos.FollowerEvent. * Use `create(FollowerEventSchema)` to create a new message. */ exports.FollowerEventSchema = (0, codegenv1_1.messageDesc)(exports.file_protos_perfetto_common_perf_events, 1); //# sourceMappingURL=perf_events_pb.js.map