Cloud Profiler v2 API - Class Profile (2.6.0)

public sealed class Profile : IMessage<Profile>, IEquatable<Profile>, IDeepCloneable<Profile>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Profiler v2 API class Profile.

Profile resource.

Inheritance

object > Profile

Namespace

Google.Cloud.Profiler.V2

Assembly

Google.Cloud.Profiler.V2.dll

Constructors

Profile()

public Profile()

Profile(Profile)

public Profile(Profile other)
Parameter
Name Description
other Profile

Properties

Deployment

public Deployment Deployment { get; set; }

Deployment this profile corresponds to.

Property Value
Type Description
Deployment

Duration

public Duration Duration { get; set; }

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).

Property Value
Type Description
Duration

Labels

public MapField<string, string> Labels { get; }

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.

Property Value
Type Description
MapFieldstringstring

Name

public string Name { get; set; }

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

Property Value
Type Description
string

ProfileBytes

public ByteString ProfileBytes { get; set; }

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

Property Value
Type Description
ByteString

ProfileName

public ProfileName ProfileName { get; set; }

ProfileName-typed view over the Name resource name property.

Property Value
Type Description
ProfileName

ProfileType

public ProfileType ProfileType { get; set; }

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.

Property Value
Type Description
ProfileType

StartTime

public Timestamp StartTime { get; set; }

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

Property Value
Type Description
Timestamp