Cloud Profiler v2 API - Class Profile (2.5.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
NameDescription
otherProfile

Properties

Deployment

public Deployment Deployment { get; set; }

Deployment this profile corresponds to.

Property Value
TypeDescription
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
TypeDescription
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
TypeDescription
MapFieldstringstring

Name

public string Name { get; set; }

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

Property Value
TypeDescription
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
TypeDescription
ByteString

ProfileName

public ProfileName ProfileName { get; set; }

ProfileName-typed view over the Name resource name property.

Property Value
TypeDescription
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
TypeDescription
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
TypeDescription
Timestamp