Reference documentation and code samples for the Cloud Profiler V2 API class Google::Cloud::Profiler::V2::Profile.
Profile resource.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#deployment
def deployment() -> ::Google::Cloud::Profiler::V2::Deployment
Returns
- (::Google::Cloud::Profiler::V2::Deployment) — Deployment this profile corresponds to.
#deployment=
def deployment=(value) -> ::Google::Cloud::Profiler::V2::Deployment
Parameter
- value (::Google::Cloud::Profiler::V2::Deployment) — Deployment this profile corresponds to.
Returns
- (::Google::Cloud::Profiler::V2::Deployment) — Deployment this profile corresponds to.
#duration
def duration() -> ::Google::Protobuf::Duration
Returns
- (::Google::Protobuf::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).
#duration=
def duration=(value) -> ::Google::Protobuf::Duration
Parameter
- value (::Google::Protobuf::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).
Returns
- (::Google::Protobuf::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).
#labels
def labels() -> ::Google::Protobuf::Map{::String => ::String}
Returns
- (::Google::Protobuf::Map{::String => ::String}) — 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.
#labels=
def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
- value (::Google::Protobuf::Map{::String => ::String}) — 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.
Returns
- (::Google::Protobuf::Map{::String => ::String}) — 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.
#name
def name() -> ::String
Returns
- (::String) — Output only. Opaque, server-assigned, unique ID for this profile.
#profile_bytes
def profile_bytes() -> ::String
Returns
- (::String) — Input only. Profile bytes, as a gzip compressed serialized proto, the format is https://github.com/google/pprof/blob/master/proto/profile.proto.
#profile_bytes=
def profile_bytes=(value) -> ::String
Parameter
- value (::String) — Input only. Profile bytes, as a gzip compressed serialized proto, the format is https://github.com/google/pprof/blob/master/proto/profile.proto.
Returns
- (::String) — Input only. Profile bytes, as a gzip compressed serialized proto, the format is https://github.com/google/pprof/blob/master/proto/profile.proto.
#profile_type
def profile_type() -> ::Google::Cloud::Profiler::V2::ProfileType
Returns
- (::Google::Cloud::Profiler::V2::ProfileType) — 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.
#profile_type=
def profile_type=(value) -> ::Google::Cloud::Profiler::V2::ProfileType
Parameter
- value (::Google::Cloud::Profiler::V2::ProfileType) — 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.
Returns
- (::Google::Cloud::Profiler::V2::ProfileType) — 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.