v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-134415.3 KB
projects

CreateOfflineProfile creates a new profile resource in the offline mode. The client provides the profile to create along with the profile bytes, the server records it. Direct use of this API is discouraged, please use a supported profiler agent instead for profile collection.

post/v2/{+parent}/profiles:createOffline

Path parameters

parentstring required

Parent project to create the profile in.

Request body

labelsobject

Input only. Labels associated to this specific profile. These labels will get merged with the deployment labels for the final data set. See documentation on deployment labels for validation rules and limits.

startTimestring google-datetime

Output only. Start time for the profile. This output is only present in response from the ListProfiles method.

profileType'PROFILE_TYPE_UNSPECIFIED' | 'CPU' | 'WALL' | 'HEAP' | 'THREADS' | 'CONTENTION' | 'PEAK_HEAP' | 'HEAP_ALLOC'

Type of profile. For offline mode, this must be specified when creating the profile. For online mode it is assigned and returned by the server.

profileBytesstring byte

Input only. Profile bytes, as a gzip compressed serialized proto, the format is https://github.com/google/pprof/blob/master/proto/profile.proto.

durationstring google-duration

Duration of the profiling session. Input (for the offline mode) or output (for the online mode). The field represents requested profiling duration. It may slightly differ from the effective profiling duration, which is recorded in the profile data, in case the profiling can't be stopped immediately (e.g. in case stopping the profiling is handled asynchronously).

namestring

Output only. Opaque, server-assigned, unique ID for this profile.

Response

Successful response