Deployment contains the deployment identification information.
Labels identify the deployment within the user universe and same target.
Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
Value for an individual label must be <= 512 bytes, the total
size of all label names and values must be <= 1024 bytes.
Label named "language" can be used to record the programming language of
the profiled deployment. The standard choices for the value include "java",
"go", "python", "ruby", "nodejs", "php", "dotnet".
For deployments running on Google Cloud Platform, "zone" or "region" label
should be present describing the deployment location. An example of a zone
is "us-central1-a", an example of a region is "us-central1" or
"us-central".
Project ID is the ID of a cloud project.
Validation regex: `^[a-z][-a-z0-9:.]{4,61}[a-z0-9]$`.
Target is the service name used to group related deployments:
* Service name for GAE Flex / Standard.
* Cluster and container name for GKE.
* User-specified string for direct GCE profiling (e.g. Java).
* Job name for Dataflow.
Validation regex: `^[a-z]([-a-z0-9_.]{0,253}[a-z0-9])?$`.
sizeCacheprotoimpl.SizeCachestateprotoimpl.MessageStateunknownFieldsprotoimpl.UnknownFields
Deprecated: Use Deployment.ProtoReflect.Descriptor instead.
(*T) GetLabels() map[string]string(*T) GetProjectId() string(*T) GetTarget() string(*T) ProtoMessage()(*T) ProtoReflect() protoreflect.Message(*T) Reset()(*T) String() string
*T : google.golang.org/protobuf/reflect/protoreflect.ProtoMessage
*T : google.golang.org/protobuf/runtime/protoiface.MessageV1
*T : expvar.Var
*T : fmt.Stringer
*T : google.golang.org/protobuf/internal/impl.messageV1
*T : context.stringer
*T : runtime.stringer
func (*CreateProfileRequest).GetDeployment() *Deployment
func (*Profile).GetDeployment() *Deployment
ProfilerServiceClient is the client API for ProfilerService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
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.
CreateProfile creates a new profile resource in the online mode.
The server ensures that the new profiles are created at a constant rate per
deployment, so the creation request may hang for some time until the next
profile session is available.
The request may fail with ABORTED error if the creation is not available
within ~1m, the response will indicate the duration of the backoff the
client should take before attempting creating a profile again. The backoff
duration is returned in google.rpc.RetryInfo extension on the response
status. To a gRPC client, the extension will be return as a
binary-serialized proto in the trailing metadata item named
"google.rpc.retryinfo-bin".
UpdateProfile updates the profile bytes and labels on the profile resource
created in the online mode. Updating the bytes for profiles created in the
offline mode is currently not supported: the profile content must be
provided at the time of the profile creation.
*profilerServiceClient
func NewProfilerServiceClient(cc grpc.ClientConnInterface) ProfilerServiceClient
func cloud.google.com/go/profiler.initializeAgent(c ProfilerServiceClient) (*profiler.agent, error)
ProfilerServiceServer is the server API for ProfilerService service.
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.
CreateProfile creates a new profile resource in the online mode.
The server ensures that the new profiles are created at a constant rate per
deployment, so the creation request may hang for some time until the next
profile session is available.
The request may fail with ABORTED error if the creation is not available
within ~1m, the response will indicate the duration of the backoff the
client should take before attempting creating a profile again. The backoff
duration is returned in google.rpc.RetryInfo extension on the response
status. To a gRPC client, the extension will be return as a
binary-serialized proto in the trailing metadata item named
"google.rpc.retryinfo-bin".
UpdateProfile updates the profile bytes and labels on the profile resource
created in the online mode. Updating the bytes for profiles created in the
offline mode is currently not supported: the profile content must be
provided at the time of the profile creation.
*UnimplementedProfilerServiceServer
func RegisterProfilerServiceServer(s *grpc.Server, srv ProfilerServiceServer)
Package-Level Constants (total 8, all are exported)
Synchronization contention profile.
Thread CPU time sampling.
In-use heap profile. Represents a snapshot of the allocations that are
live at the time of the profiling.
Heap allocation profile. It represents the aggregation of all allocations
made over the duration of the profile. All allocations are included,
including those that might have been freed by the end of the profiling
interval. The profile is in particular useful for garbage collecting
languages to understand which parts of the code create most of the garbage
collection pressure to see if those can be optimized.
Peak heap profile.
Unspecified profile type.
Single-shot collection of all thread stacks.
Wallclock time sampling. More expensive as stops all threads.
The pages are generated with Goldsv0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.