UNPKG

perfetto-protos

Version:

Perfetto protos exposed via protobuf-es for browser and node

147 lines 5.85 kB
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1"; import type { Message } from "@bufbuild/protobuf"; /** * Describes the file protos/perfetto/common/commit_data_request.proto. */ export declare const file_protos_perfetto_common_commit_data_request: GenFile; /** * @generated from message perfetto.protos.CommitDataRequest */ export type CommitDataRequest = Message<"perfetto.protos.CommitDataRequest"> & { /** * @generated from field: repeated perfetto.protos.CommitDataRequest.ChunksToMove chunks_to_move = 1; */ chunksToMove: CommitDataRequest_ChunksToMove[]; /** * @generated from field: repeated perfetto.protos.CommitDataRequest.ChunkToPatch chunks_to_patch = 2; */ chunksToPatch: CommitDataRequest_ChunkToPatch[]; /** * Optional. If this commit is made in response to a Flush(id) request coming * from the service, copy back the id of the request so the service can tell * when the flush happened. * * @generated from field: optional uint64 flush_request_id = 3; */ flushRequestId: bigint; }; /** * Describes the message perfetto.protos.CommitDataRequest. * Use `create(CommitDataRequestSchema)` to create a new message. */ export declare const CommitDataRequestSchema: GenMessage<CommitDataRequest>; /** * When |chunks_to_move| is present, the producer is requesting the service to * move the given chunks form the share memory buffer into the central * trace buffer(s). * * @generated from message perfetto.protos.CommitDataRequest.ChunksToMove */ export type CommitDataRequest_ChunksToMove = Message<"perfetto.protos.CommitDataRequest.ChunksToMove"> & { /** * The 0-based index of the page in the Shared Memory Buffer. * * @generated from field: optional uint32 page = 1; */ page: number; /** * The 0-based chunk index [0..13] within the page. * * @generated from field: optional uint32 chunk = 2; */ chunk: number; /** * The target buffer it should be moved onto. The service will check that * the producer is allowed to write into that buffer before the move. * * @generated from field: optional uint32 target_buffer = 3; */ targetBuffer: number; /** * Sending the chunk data over the wire. Used for transports that don't * support shared memory (e.g. vsock or TCP sockets). In the default case * (tracing protocol over a Unix socket), this field is not used and tracing * data is stored in the shmem buffer and referenced by the fields above. * See |use_shemem_emulation| in the codebase for reference. * * @generated from field: optional bytes data = 4; */ data: Uint8Array; }; /** * Describes the message perfetto.protos.CommitDataRequest.ChunksToMove. * Use `create(CommitDataRequest_ChunksToMoveSchema)` to create a new message. */ export declare const CommitDataRequest_ChunksToMoveSchema: GenMessage<CommitDataRequest_ChunksToMove>; /** * Used to patch chunks that have already been sent to the service. The chunk * might not be in the shared memory buffer anymore as it could have been * moved by the service in response to a prior CommitDataRequest. * It is perfectly valid to patch a chunk that is being notified in the same * message (a chunk can show up both in the |changed_pages| and |patches| * field within the same CommitDataRequest message). * In other words, |chunks_to_patch| is always processed after * |chunks_to_move|. * * @generated from message perfetto.protos.CommitDataRequest.ChunkToPatch */ export type CommitDataRequest_ChunkToPatch = Message<"perfetto.protos.CommitDataRequest.ChunkToPatch"> & { /** * @generated from field: optional uint32 target_buffer = 1; */ targetBuffer: number; /** * {WriterID, ChunkID} uniquely identify a chunk for the current producer. * * @generated from field: optional uint32 writer_id = 2; */ writerId: number; /** * @generated from field: optional uint32 chunk_id = 3; */ chunkId: number; /** * List of patches to apply to the given chunk. * * @generated from field: repeated perfetto.protos.CommitDataRequest.ChunkToPatch.Patch patches = 4; */ patches: CommitDataRequest_ChunkToPatch_Patch[]; /** * When true more patches will follow in future requests and the chunk * should be still considered as patch-pending. When false the chunk becomes * eligible for reading. * * @generated from field: optional bool has_more_patches = 5; */ hasMorePatches: boolean; }; /** * Describes the message perfetto.protos.CommitDataRequest.ChunkToPatch. * Use `create(CommitDataRequest_ChunkToPatchSchema)` to create a new message. */ export declare const CommitDataRequest_ChunkToPatchSchema: GenMessage<CommitDataRequest_ChunkToPatch>; /** * @generated from message perfetto.protos.CommitDataRequest.ChunkToPatch.Patch */ export type CommitDataRequest_ChunkToPatch_Patch = Message<"perfetto.protos.CommitDataRequest.ChunkToPatch.Patch"> & { /** * Offset in bytes from the start of the chunk payload. e.g., offset == 0 * corresponds to the first byte of the first packet (or fragment) in the * chunk. * * @generated from field: optional uint32 offset = 1; */ offset: number; /** * Bytes to patch at the given offset. * * @generated from field: optional bytes data = 2; */ data: Uint8Array; }; /** * Describes the message perfetto.protos.CommitDataRequest.ChunkToPatch.Patch. * Use `create(CommitDataRequest_ChunkToPatch_PatchSchema)` to create a new message. */ export declare const CommitDataRequest_ChunkToPatch_PatchSchema: GenMessage<CommitDataRequest_ChunkToPatch_Patch>; //# sourceMappingURL=commit_data_request_pb.d.ts.map