Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterProfileAnalysisServer(s grpc.ServiceRegistrar, srv ProfileAnalysisServer)
- func RegisterProfilerServiceServer(s grpc.ServiceRegistrar, srv ProfilerServiceServer)
- type AdviceProto
- type AdviceProto_Checker
- func (*AdviceProto_Checker) Descriptor() ([]byte, []int)deprecated
- func (x *AdviceProto_Checker) GetReports() []string
- func (*AdviceProto_Checker) ProtoMessage()
- func (x *AdviceProto_Checker) ProtoReflect() protoreflect.Message
- func (x *AdviceProto_Checker) Reset()
- func (x *AdviceProto_Checker) String() string
- type AdvisorOptionsProto
- func (*AdvisorOptionsProto) Descriptor() ([]byte, []int)deprecated
- func (x *AdvisorOptionsProto) GetCheckers() map[string]*AdvisorOptionsProto_CheckerOption
- func (*AdvisorOptionsProto) ProtoMessage()
- func (x *AdvisorOptionsProto) ProtoReflect() protoreflect.Message
- func (x *AdvisorOptionsProto) Reset()
- func (x *AdvisorOptionsProto) String() string
- type AdvisorOptionsProto_CheckerOption
- func (*AdvisorOptionsProto_CheckerOption) Descriptor() ([]byte, []int)deprecated
- func (x *AdvisorOptionsProto_CheckerOption) GetOptions() map[string]string
- func (*AdvisorOptionsProto_CheckerOption) ProtoMessage()
- func (x *AdvisorOptionsProto_CheckerOption) ProtoReflect() protoreflect.Message
- func (x *AdvisorOptionsProto_CheckerOption) Reset()
- func (x *AdvisorOptionsProto_CheckerOption) String() string
- type CodeDef
- type CodeDef_Trace
- func (*CodeDef_Trace) Descriptor() ([]byte, []int)deprecated
- func (x *CodeDef_Trace) GetFile() stringdeprecated
- func (x *CodeDef_Trace) GetFileId() int64
- func (x *CodeDef_Trace) GetFuncStartLine() int32
- func (x *CodeDef_Trace) GetFunction() stringdeprecated
- func (x *CodeDef_Trace) GetFunctionId() int64
- func (x *CodeDef_Trace) GetLine() stringdeprecated
- func (x *CodeDef_Trace) GetLineId() int64
- func (x *CodeDef_Trace) GetLineno() int32
- func (*CodeDef_Trace) ProtoMessage()
- func (x *CodeDef_Trace) ProtoReflect() protoreflect.Message
- func (x *CodeDef_Trace) Reset()
- func (x *CodeDef_Trace) String() string
- type EnumProfileSessionsAndToolsRequest
- func (*EnumProfileSessionsAndToolsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EnumProfileSessionsAndToolsRequest) GetRepositoryRoot() string
- func (*EnumProfileSessionsAndToolsRequest) ProtoMessage()
- func (x *EnumProfileSessionsAndToolsRequest) ProtoReflect() protoreflect.Message
- func (x *EnumProfileSessionsAndToolsRequest) Reset()
- func (x *EnumProfileSessionsAndToolsRequest) String() string
- type EnumProfileSessionsAndToolsResponse
- func (*EnumProfileSessionsAndToolsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EnumProfileSessionsAndToolsResponse) GetErrorMessage() string
- func (x *EnumProfileSessionsAndToolsResponse) GetSessions() []*ProfileSessionInfo
- func (*EnumProfileSessionsAndToolsResponse) ProtoMessage()
- func (x *EnumProfileSessionsAndToolsResponse) ProtoReflect() protoreflect.Message
- func (x *EnumProfileSessionsAndToolsResponse) Reset()
- func (x *EnumProfileSessionsAndToolsResponse) String() string
- type ExecMemory
- func (*ExecMemory) Descriptor() ([]byte, []int)deprecated
- func (x *ExecMemory) GetAcceleratorPersistentBytes() int64
- func (x *ExecMemory) GetAcceleratorTempBytes() int64
- func (x *ExecMemory) GetAllocatorBytesInUse() int64
- func (x *ExecMemory) GetHostPersistentBytes() int64
- func (x *ExecMemory) GetHostTempBytes() int64
- func (x *ExecMemory) GetMemoryMicros() int64
- func (x *ExecMemory) GetOutputBytes() int64
- func (x *ExecMemory) GetOutputMemory() map[int32]*Memory
- func (x *ExecMemory) GetPeakBytes() int64
- func (x *ExecMemory) GetRequestedBytes() int64
- func (x *ExecMemory) GetResidualBytes() int64
- func (*ExecMemory) ProtoMessage()
- func (x *ExecMemory) ProtoReflect() protoreflect.Message
- func (x *ExecMemory) Reset()
- func (x *ExecMemory) String() string
- type ExecProfile
- func (*ExecProfile) Descriptor() ([]byte, []int)deprecated
- func (x *ExecProfile) GetAcceleratorExecs() map[string]*ExecTime
- func (x *ExecProfile) GetAllStartMicros() int64
- func (x *ExecProfile) GetAllocations() []*framework.AllocationRecord
- func (x *ExecProfile) GetCpuExecs() map[string]*ExecTime
- func (x *ExecProfile) GetDevices() []string
- func (x *ExecProfile) GetLatestEndMicros() int64
- func (x *ExecProfile) GetMemoryExecs() []*ExecMemory
- func (x *ExecProfile) GetRunCount() int64
- func (*ExecProfile) ProtoMessage()
- func (x *ExecProfile) ProtoReflect() protoreflect.Message
- func (x *ExecProfile) Reset()
- func (x *ExecProfile) String() string
- type ExecTime
- type Function
- func (*Function) Descriptor() ([]byte, []int)deprecated
- func (x *Function) GetFilename() int64
- func (x *Function) GetId() uint64
- func (x *Function) GetName() int64
- func (x *Function) GetStartLine() int64
- func (x *Function) GetSystemName() int64
- func (*Function) ProtoMessage()
- func (x *Function) ProtoReflect() protoreflect.Message
- func (x *Function) Reset()
- func (x *Function) String() string
- type GraphNodeProto
- func (*GraphNodeProto) Descriptor() ([]byte, []int)deprecated
- func (x *GraphNodeProto) GetAcceleratorExecMicros() int64
- func (x *GraphNodeProto) GetChildren() []*GraphNodeProto
- func (x *GraphNodeProto) GetCpuExecMicros() int64
- func (x *GraphNodeProto) GetDevices() []string
- func (x *GraphNodeProto) GetExecMicros() int64
- func (x *GraphNodeProto) GetFloatOps() int64
- func (x *GraphNodeProto) GetInputShapes() map[int32]*framework.TensorShapeProto
- func (x *GraphNodeProto) GetName() string
- func (x *GraphNodeProto) GetOutputBytes() int64
- func (x *GraphNodeProto) GetParameters() int64
- func (x *GraphNodeProto) GetPeakBytes() int64
- func (x *GraphNodeProto) GetRequestedBytes() int64
- func (x *GraphNodeProto) GetResidualBytes() int64
- func (x *GraphNodeProto) GetRunCount() int64
- func (x *GraphNodeProto) GetShapes() []*framework.TensorShapeProto
- func (x *GraphNodeProto) GetTensorValue() *TFProfTensorProto
- func (x *GraphNodeProto) GetTotalAcceleratorExecMicros() int64
- func (x *GraphNodeProto) GetTotalCpuExecMicros() int64
- func (x *GraphNodeProto) GetTotalDefinitionCount() int64
- func (x *GraphNodeProto) GetTotalExecMicros() int64
- func (x *GraphNodeProto) GetTotalFloatOps() int64
- func (x *GraphNodeProto) GetTotalOutputBytes() int64
- func (x *GraphNodeProto) GetTotalParameters() int64
- func (x *GraphNodeProto) GetTotalPeakBytes() int64
- func (x *GraphNodeProto) GetTotalRequestedBytes() int64
- func (x *GraphNodeProto) GetTotalResidualBytes() int64
- func (x *GraphNodeProto) GetTotalRunCount() int64
- func (*GraphNodeProto) ProtoMessage()
- func (x *GraphNodeProto) ProtoReflect() protoreflect.Message
- func (x *GraphNodeProto) Reset()
- func (x *GraphNodeProto) String() string
- type Label
- type Line
- type Location
- func (*Location) Descriptor() ([]byte, []int)deprecated
- func (x *Location) GetAddress() uint64
- func (x *Location) GetId() uint64
- func (x *Location) GetLine() []*Line
- func (x *Location) GetMappingId() uint64
- func (*Location) ProtoMessage()
- func (x *Location) ProtoReflect() protoreflect.Message
- func (x *Location) Reset()
- func (x *Location) String() string
- type Mapping
- func (*Mapping) Descriptor() ([]byte, []int)deprecated
- func (x *Mapping) GetBuildId() int64
- func (x *Mapping) GetFileOffset() uint64
- func (x *Mapping) GetFilename() int64
- func (x *Mapping) GetHasFilenames() bool
- func (x *Mapping) GetHasFunctions() bool
- func (x *Mapping) GetHasInlineFrames() bool
- func (x *Mapping) GetHasLineNumbers() bool
- func (x *Mapping) GetId() uint64
- func (x *Mapping) GetMemoryLimit() uint64
- func (x *Mapping) GetMemoryStart() uint64
- func (*Mapping) ProtoMessage()
- func (x *Mapping) ProtoReflect() protoreflect.Message
- func (x *Mapping) Reset()
- func (x *Mapping) String() string
- type Memory
- type MonitorRequest
- func (*MonitorRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MonitorRequest) GetDurationMs() uint64
- func (x *MonitorRequest) GetMonitoringLevel() int32
- func (x *MonitorRequest) GetTimestamp() bool
- func (*MonitorRequest) ProtoMessage()
- func (x *MonitorRequest) ProtoReflect() protoreflect.Message
- func (x *MonitorRequest) Reset()
- func (x *MonitorRequest) String() string
- type MonitorResponse
- func (*MonitorResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MonitorResponse) GetData() string
- func (x *MonitorResponse) GetMonitorResult() *ProfilerServiceMonitorResult
- func (*MonitorResponse) ProtoMessage()
- func (x *MonitorResponse) ProtoReflect() protoreflect.Message
- func (x *MonitorResponse) Reset()
- func (x *MonitorResponse) String() string
- type MultiGraphNodeProto
- func (*MultiGraphNodeProto) Descriptor() ([]byte, []int)deprecated
- func (x *MultiGraphNodeProto) GetAcceleratorExecMicros() int64
- func (x *MultiGraphNodeProto) GetChildren() []*MultiGraphNodeProto
- func (x *MultiGraphNodeProto) GetCpuExecMicros() int64
- func (x *MultiGraphNodeProto) GetExecMicros() int64
- func (x *MultiGraphNodeProto) GetFloatOps() int64
- func (x *MultiGraphNodeProto) GetGraphNodes() []*GraphNodeProto
- func (x *MultiGraphNodeProto) GetName() string
- func (x *MultiGraphNodeProto) GetOutputBytes() int64
- func (x *MultiGraphNodeProto) GetParameters() int64
- func (x *MultiGraphNodeProto) GetPeakBytes() int64
- func (x *MultiGraphNodeProto) GetRequestedBytes() int64
- func (x *MultiGraphNodeProto) GetResidualBytes() int64
- func (x *MultiGraphNodeProto) GetTotalAcceleratorExecMicros() int64
- func (x *MultiGraphNodeProto) GetTotalCpuExecMicros() int64
- func (x *MultiGraphNodeProto) GetTotalExecMicros() int64
- func (x *MultiGraphNodeProto) GetTotalFloatOps() int64
- func (x *MultiGraphNodeProto) GetTotalOutputBytes() int64
- func (x *MultiGraphNodeProto) GetTotalParameters() int64
- func (x *MultiGraphNodeProto) GetTotalPeakBytes() int64
- func (x *MultiGraphNodeProto) GetTotalRequestedBytes() int64
- func (x *MultiGraphNodeProto) GetTotalResidualBytes() int64
- func (*MultiGraphNodeProto) ProtoMessage()
- func (x *MultiGraphNodeProto) ProtoReflect() protoreflect.Message
- func (x *MultiGraphNodeProto) Reset()
- func (x *MultiGraphNodeProto) String() string
- type NewProfileSessionRequest
- func (*NewProfileSessionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NewProfileSessionRequest) GetHosts() []string
- func (x *NewProfileSessionRequest) GetRepositoryRoot() string
- func (x *NewProfileSessionRequest) GetRequest() *ProfileRequest
- func (x *NewProfileSessionRequest) GetSessionId() string
- func (*NewProfileSessionRequest) ProtoMessage()
- func (x *NewProfileSessionRequest) ProtoReflect() protoreflect.Message
- func (x *NewProfileSessionRequest) Reset()
- func (x *NewProfileSessionRequest) String() string
- type NewProfileSessionResponse
- func (*NewProfileSessionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *NewProfileSessionResponse) GetEmptyTrace() bool
- func (x *NewProfileSessionResponse) GetErrorMessage() string
- func (*NewProfileSessionResponse) ProtoMessage()
- func (x *NewProfileSessionResponse) ProtoReflect() protoreflect.Message
- func (x *NewProfileSessionResponse) Reset()
- func (x *NewProfileSessionResponse) String() string
- type OpLogEntry
- func (*OpLogEntry) Descriptor() ([]byte, []int)deprecated
- func (x *OpLogEntry) GetCodeDef() *CodeDef
- func (x *OpLogEntry) GetFloatOps() int64
- func (x *OpLogEntry) GetName() string
- func (x *OpLogEntry) GetTypes() []string
- func (*OpLogEntry) ProtoMessage()
- func (x *OpLogEntry) ProtoReflect() protoreflect.Message
- func (x *OpLogEntry) Reset()
- func (x *OpLogEntry) String() string
- type OpLogProto
- func (*OpLogProto) Descriptor() ([]byte, []int)deprecated
- func (x *OpLogProto) GetIdToString() map[int64]string
- func (x *OpLogProto) GetLogEntries() []*OpLogEntry
- func (*OpLogProto) ProtoMessage()
- func (x *OpLogProto) ProtoReflect() protoreflect.Message
- func (x *OpLogProto) Reset()
- func (x *OpLogProto) String() string
- type OptionsProto
- func (*OptionsProto) Descriptor() ([]byte, []int)deprecated
- func (x *OptionsProto) GetAccountDisplayedOpOnly() bool
- func (x *OptionsProto) GetAccountTypeRegexes() []string
- func (x *OptionsProto) GetDumpToFile() string
- func (x *OptionsProto) GetHideNameRegexes() []string
- func (x *OptionsProto) GetMaxDepth() int64
- func (x *OptionsProto) GetMinAcceleratorMicros() int64
- func (x *OptionsProto) GetMinBytes() int64
- func (x *OptionsProto) GetMinCpuMicros() int64
- func (x *OptionsProto) GetMinFloatOps() int64
- func (x *OptionsProto) GetMinMicros() int64
- func (x *OptionsProto) GetMinOccurrence() int64
- func (x *OptionsProto) GetMinOutputBytes() int64
- func (x *OptionsProto) GetMinParams() int64
- func (x *OptionsProto) GetMinPeakBytes() int64
- func (x *OptionsProto) GetMinResidualBytes() int64
- func (x *OptionsProto) GetOrderBy() string
- func (x *OptionsProto) GetOutput() string
- func (x *OptionsProto) GetSelect() []string
- func (x *OptionsProto) GetShowNameRegexes() []string
- func (x *OptionsProto) GetStartNameRegexes() []string
- func (x *OptionsProto) GetStep() int64
- func (x *OptionsProto) GetTrimNameRegexes() []string
- func (*OptionsProto) ProtoMessage()
- func (x *OptionsProto) ProtoReflect() protoreflect.Message
- func (x *OptionsProto) Reset()
- func (x *OptionsProto) String() string
- type Profile
- func (*Profile) Descriptor() ([]byte, []int)deprecated
- func (x *Profile) GetComment() []int64
- func (x *Profile) GetDefaultSampleType() int64
- func (x *Profile) GetDropFrames() int64
- func (x *Profile) GetDurationNanos() int64
- func (x *Profile) GetFunction() []*Function
- func (x *Profile) GetKeepFrames() int64
- func (x *Profile) GetLocation() []*Location
- func (x *Profile) GetMapping() []*Mapping
- func (x *Profile) GetPeriod() int64
- func (x *Profile) GetPeriodType() *ValueType
- func (x *Profile) GetSample() []*Sample
- func (x *Profile) GetSampleType() []*ValueType
- func (x *Profile) GetStringTable() []string
- func (x *Profile) GetTimeNanos() int64
- func (*Profile) ProtoMessage()
- func (x *Profile) ProtoReflect() protoreflect.Message
- func (x *Profile) Reset()
- func (x *Profile) String() string
- type ProfileAnalysisClient
- type ProfileAnalysisServer
- type ProfileNode
- func (*ProfileNode) Descriptor() ([]byte, []int)deprecated
- func (x *ProfileNode) GetAttrs() map[string]*framework.AttrValue
- func (x *ProfileNode) GetCanonicalDevice() string
- func (x *ProfileNode) GetExecs() map[int64]*ExecProfile
- func (x *ProfileNode) GetFloatOps() int64
- func (x *ProfileNode) GetHostDevice() string
- func (x *ProfileNode) GetId() int64
- func (x *ProfileNode) GetInputShapes() map[int32]*Tuple
- func (x *ProfileNode) GetInputs() map[int32]int64
- func (x *ProfileNode) GetName() string
- func (x *ProfileNode) GetOp() string
- func (x *ProfileNode) GetOpTypes() []string
- func (x *ProfileNode) GetOutputShapes() map[int32]*Tuple
- func (x *ProfileNode) GetOutputs() map[int32]int64
- func (x *ProfileNode) GetShape() []int64
- func (x *ProfileNode) GetSrcOutputIndex() map[int64]int32
- func (x *ProfileNode) GetTrace() *CodeDef
- func (*ProfileNode) ProtoMessage()
- func (x *ProfileNode) ProtoReflect() protoreflect.Message
- func (x *ProfileNode) Reset()
- func (x *ProfileNode) String() string
- type ProfileOptions
- func (*ProfileOptions) Descriptor() ([]byte, []int)deprecated
- func (x *ProfileOptions) GetDeviceTracerLevel() uint32
- func (x *ProfileOptions) GetDeviceType() ProfileOptions_DeviceType
- func (x *ProfileOptions) GetDurationMs() uint64
- func (x *ProfileOptions) GetEnableHloProto() bool
- func (x *ProfileOptions) GetHostTracerLevel() uint32
- func (x *ProfileOptions) GetIncludeDatasetOps() bool
- func (x *ProfileOptions) GetPythonTracerLevel() uint32
- func (x *ProfileOptions) GetRepositoryPath() string
- func (x *ProfileOptions) GetStartTimestampNs() uint64
- func (x *ProfileOptions) GetVersion() uint32
- func (*ProfileOptions) ProtoMessage()
- func (x *ProfileOptions) ProtoReflect() protoreflect.Message
- func (x *ProfileOptions) Reset()
- func (x *ProfileOptions) String() string
- type ProfileOptions_DeviceType
- func (ProfileOptions_DeviceType) Descriptor() protoreflect.EnumDescriptor
- func (x ProfileOptions_DeviceType) Enum() *ProfileOptions_DeviceType
- func (ProfileOptions_DeviceType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProfileOptions_DeviceType) Number() protoreflect.EnumNumber
- func (x ProfileOptions_DeviceType) String() string
- func (ProfileOptions_DeviceType) Type() protoreflect.EnumType
- type ProfileProto
- func (*ProfileProto) Descriptor() ([]byte, []int)deprecated
- func (x *ProfileProto) GetHasTrace() bool
- func (x *ProfileProto) GetIdToString() map[int64]string
- func (x *ProfileProto) GetMissAcceleratorStream() bool
- func (x *ProfileProto) GetNodes() map[int64]*ProfileNode
- func (x *ProfileProto) GetSteps() []int64
- func (*ProfileProto) ProtoMessage()
- func (x *ProfileProto) ProtoReflect() protoreflect.Message
- func (x *ProfileProto) Reset()
- func (x *ProfileProto) String() string
- type ProfileRequest
- func (*ProfileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ProfileRequest) GetDurationMs() uint64
- func (x *ProfileRequest) GetHostName() string
- func (x *ProfileRequest) GetMaxEvents() uint64
- func (x *ProfileRequest) GetOpts() *ProfileOptions
- func (x *ProfileRequest) GetRepositoryRoot() string
- func (x *ProfileRequest) GetSessionId() string
- func (x *ProfileRequest) GetToolOptions() map[string]*ToolRequestOptions
- func (x *ProfileRequest) GetTools() []string
- func (*ProfileRequest) ProtoMessage()
- func (x *ProfileRequest) ProtoReflect() protoreflect.Message
- func (x *ProfileRequest) Reset()
- func (x *ProfileRequest) String() string
- type ProfileResponse
- func (*ProfileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ProfileResponse) GetEmptyTrace() bool
- func (x *ProfileResponse) GetToolData() []*ProfileToolData
- func (*ProfileResponse) ProtoMessage()
- func (x *ProfileResponse) ProtoReflect() protoreflect.Message
- func (x *ProfileResponse) Reset()
- func (x *ProfileResponse) String() string
- type ProfileSessionDataRequest
- func (*ProfileSessionDataRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ProfileSessionDataRequest) GetHostName() string
- func (x *ProfileSessionDataRequest) GetParameters() map[string]string
- func (x *ProfileSessionDataRequest) GetRepositoryRoot() string
- func (x *ProfileSessionDataRequest) GetSessionId() string
- func (x *ProfileSessionDataRequest) GetToolName() string
- func (*ProfileSessionDataRequest) ProtoMessage()
- func (x *ProfileSessionDataRequest) ProtoReflect() protoreflect.Message
- func (x *ProfileSessionDataRequest) Reset()
- func (x *ProfileSessionDataRequest) String() string
- type ProfileSessionDataResponse
- func (*ProfileSessionDataResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ProfileSessionDataResponse) GetErrorMessage() string
- func (x *ProfileSessionDataResponse) GetOutput() []byte
- func (x *ProfileSessionDataResponse) GetOutputFormat() string
- func (*ProfileSessionDataResponse) ProtoMessage()
- func (x *ProfileSessionDataResponse) ProtoReflect() protoreflect.Message
- func (x *ProfileSessionDataResponse) Reset()
- func (x *ProfileSessionDataResponse) String() string
- type ProfileSessionInfo
- func (*ProfileSessionInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ProfileSessionInfo) GetAvailableTools() []string
- func (x *ProfileSessionInfo) GetSessionId() string
- func (*ProfileSessionInfo) ProtoMessage()
- func (x *ProfileSessionInfo) ProtoReflect() protoreflect.Message
- func (x *ProfileSessionInfo) Reset()
- func (x *ProfileSessionInfo) String() string
- type ProfileToolData
- func (*ProfileToolData) Descriptor() ([]byte, []int)deprecated
- func (x *ProfileToolData) GetData() []byte
- func (x *ProfileToolData) GetName() string
- func (*ProfileToolData) ProtoMessage()
- func (x *ProfileToolData) ProtoReflect() protoreflect.Message
- func (x *ProfileToolData) Reset()
- func (x *ProfileToolData) String() string
- type ProfilerServiceClient
- type ProfilerServiceMonitorResult
- func (*ProfilerServiceMonitorResult) Descriptor() ([]byte, []int)deprecated
- func (x *ProfilerServiceMonitorResult) GetDeviceIdleTimePercent() float64
- func (x *ProfilerServiceMonitorResult) GetInfeedPercentAvg() float64
- func (x *ProfilerServiceMonitorResult) GetInfeedPercentMax() float64
- func (x *ProfilerServiceMonitorResult) GetInfeedPercentMin() float64
- func (x *ProfilerServiceMonitorResult) GetMatrixUnitUtilizationPercent() float64
- func (x *ProfilerServiceMonitorResult) GetResponseType() ProfilerServiceMonitorResult_ResponseType
- func (x *ProfilerServiceMonitorResult) GetStepTimeMsAvg() float64
- func (x *ProfilerServiceMonitorResult) GetStepTimeMsMax() float64
- func (x *ProfilerServiceMonitorResult) GetStepTimeMsMin() float64
- func (*ProfilerServiceMonitorResult) ProtoMessage()
- func (x *ProfilerServiceMonitorResult) ProtoReflect() protoreflect.Message
- func (x *ProfilerServiceMonitorResult) Reset()
- func (x *ProfilerServiceMonitorResult) String() string
- type ProfilerServiceMonitorResult_ResponseType
- func (ProfilerServiceMonitorResult_ResponseType) Descriptor() protoreflect.EnumDescriptor
- func (x ProfilerServiceMonitorResult_ResponseType) Enum() *ProfilerServiceMonitorResult_ResponseType
- func (ProfilerServiceMonitorResult_ResponseType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProfilerServiceMonitorResult_ResponseType) Number() protoreflect.EnumNumber
- func (x ProfilerServiceMonitorResult_ResponseType) String() string
- func (ProfilerServiceMonitorResult_ResponseType) Type() protoreflect.EnumType
- type ProfilerServiceServer
- type RemoteProfilerSessionManagerOptions
- func (*RemoteProfilerSessionManagerOptions) Descriptor() ([]byte, []int)deprecated
- func (x *RemoteProfilerSessionManagerOptions) GetDelayMs() uint64
- func (x *RemoteProfilerSessionManagerOptions) GetMaxSessionDurationMs() uint64
- func (x *RemoteProfilerSessionManagerOptions) GetProfilerOptions() *ProfileOptions
- func (x *RemoteProfilerSessionManagerOptions) GetServiceAddresses() []string
- func (x *RemoteProfilerSessionManagerOptions) GetSessionCreationTimestampNs() uint64
- func (*RemoteProfilerSessionManagerOptions) ProtoMessage()
- func (x *RemoteProfilerSessionManagerOptions) ProtoReflect() protoreflect.Message
- func (x *RemoteProfilerSessionManagerOptions) Reset()
- func (x *RemoteProfilerSessionManagerOptions) String() string
- type Sample
- func (*Sample) Descriptor() ([]byte, []int)deprecated
- func (x *Sample) GetLabel() []*Label
- func (x *Sample) GetLocationId() []uint64
- func (x *Sample) GetValue() []int64
- func (*Sample) ProtoMessage()
- func (x *Sample) ProtoReflect() protoreflect.Message
- func (x *Sample) Reset()
- func (x *Sample) String() string
- type TFProfTensorProto
- func (*TFProfTensorProto) Descriptor() ([]byte, []int)deprecated
- func (x *TFProfTensorProto) GetDtype() framework.DataType
- func (x *TFProfTensorProto) GetValueDouble() []float64
- func (x *TFProfTensorProto) GetValueInt64() []int64
- func (x *TFProfTensorProto) GetValueStr() []string
- func (*TFProfTensorProto) ProtoMessage()
- func (x *TFProfTensorProto) ProtoReflect() protoreflect.Message
- func (x *TFProfTensorProto) Reset()
- func (x *TFProfTensorProto) String() string
- type TerminateRequest
- type TerminateResponse
- type ToolRequestOptions
- func (*ToolRequestOptions) Descriptor() ([]byte, []int)deprecated
- func (x *ToolRequestOptions) GetOutputFormats() string
- func (x *ToolRequestOptions) GetSaveToRepo() bool
- func (*ToolRequestOptions) ProtoMessage()
- func (x *ToolRequestOptions) ProtoReflect() protoreflect.Message
- func (x *ToolRequestOptions) Reset()
- func (x *ToolRequestOptions) String() string
- type Tuple
- type UnimplementedProfileAnalysisServer
- func (UnimplementedProfileAnalysisServer) EnumSessions(context.Context, *EnumProfileSessionsAndToolsRequest) (*EnumProfileSessionsAndToolsResponse, error)
- func (UnimplementedProfileAnalysisServer) GetSessionToolData(context.Context, *ProfileSessionDataRequest) (*ProfileSessionDataResponse, error)
- func (UnimplementedProfileAnalysisServer) NewSession(context.Context, *NewProfileSessionRequest) (*NewProfileSessionResponse, error)
- type UnimplementedProfilerServiceServer
- func (UnimplementedProfilerServiceServer) Monitor(context.Context, *MonitorRequest) (*MonitorResponse, error)
- func (UnimplementedProfilerServiceServer) Profile(context.Context, *ProfileRequest) (*ProfileResponse, error)
- func (UnimplementedProfilerServiceServer) Terminate(context.Context, *TerminateRequest) (*TerminateResponse, error)
- type UnsafeProfileAnalysisServer
- type UnsafeProfilerServiceServer
- type ValueType
Constants ¶
const ( ProfileAnalysis_NewSession_FullMethodName = "/tensorflow.ProfileAnalysis/NewSession" ProfileAnalysis_EnumSessions_FullMethodName = "/tensorflow.ProfileAnalysis/EnumSessions" ProfileAnalysis_GetSessionToolData_FullMethodName = "/tensorflow.ProfileAnalysis/GetSessionToolData" )
const ( ProfilerService_Profile_FullMethodName = "/tensorflow.ProfilerService/Profile" ProfilerService_Terminate_FullMethodName = "/tensorflow.ProfilerService/Terminate" ProfilerService_Monitor_FullMethodName = "/tensorflow.ProfilerService/Monitor" )
Variables ¶
var ( ProfileOptions_DeviceType_name = map[int32]string{ 0: "UNSPECIFIED", 1: "CPU", 2: "GPU", 3: "TPU", 4: "PLUGGABLE_DEVICE", } ProfileOptions_DeviceType_value = map[string]int32{ "UNSPECIFIED": 0, "CPU": 1, "GPU": 2, "TPU": 3, "PLUGGABLE_DEVICE": 4, } )
Enum value maps for ProfileOptions_DeviceType.
var ( ProfilerServiceMonitorResult_ResponseType_name = map[int32]string{ 0: "EMPTY_RESULT", 1: "UTIL_ONLY", 2: "UTIL_IDLE", 3: "UTIL_IDLE_STEP", } ProfilerServiceMonitorResult_ResponseType_value = map[string]int32{ "EMPTY_RESULT": 0, "UTIL_ONLY": 1, "UTIL_IDLE": 2, "UTIL_IDLE_STEP": 3, } )
Enum value maps for ProfilerServiceMonitorResult_ResponseType.
var File_tensorflow_core_profiler_profile_proto protoreflect.FileDescriptor
var File_tensorflow_core_profiler_profiler_analysis_proto protoreflect.FileDescriptor
var File_tensorflow_core_profiler_profiler_options_proto protoreflect.FileDescriptor
var File_tensorflow_core_profiler_profiler_service_monitor_result_proto protoreflect.FileDescriptor
var File_tensorflow_core_profiler_profiler_service_proto protoreflect.FileDescriptor
var File_tensorflow_core_profiler_tfprof_log_proto protoreflect.FileDescriptor
var File_tensorflow_core_profiler_tfprof_options_proto protoreflect.FileDescriptor
var File_tensorflow_core_profiler_tfprof_output_proto protoreflect.FileDescriptor
var ProfileAnalysis_ServiceDesc = grpc.ServiceDesc{ ServiceName: "tensorflow.ProfileAnalysis", HandlerType: (*ProfileAnalysisServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "NewSession", Handler: _ProfileAnalysis_NewSession_Handler, }, { MethodName: "EnumSessions", Handler: _ProfileAnalysis_EnumSessions_Handler, }, { MethodName: "GetSessionToolData", Handler: _ProfileAnalysis_GetSessionToolData_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "tensorflow/core/profiler/profiler_analysis.proto", }
ProfileAnalysis_ServiceDesc is the grpc.ServiceDesc for ProfileAnalysis service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var ProfilerService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "tensorflow.ProfilerService", HandlerType: (*ProfilerServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Profile", Handler: _ProfilerService_Profile_Handler, }, { MethodName: "Terminate", Handler: _ProfilerService_Terminate_Handler, }, { MethodName: "Monitor", Handler: _ProfilerService_Monitor_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "tensorflow/core/profiler/profiler_service.proto", }
ProfilerService_ServiceDesc is the grpc.ServiceDesc for ProfilerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterProfileAnalysisServer ¶
func RegisterProfileAnalysisServer(s grpc.ServiceRegistrar, srv ProfileAnalysisServer)
func RegisterProfilerServiceServer ¶
func RegisterProfilerServiceServer(s grpc.ServiceRegistrar, srv ProfilerServiceServer)
Types ¶
type AdviceProto ¶
type AdviceProto struct { // checker name -> a list of reports from the checker. Checkers map[string]*AdviceProto_Checker `` /* 157-byte string literal not displayed */ // contains filtered or unexported fields }
func (*AdviceProto) Descriptor
deprecated
func (*AdviceProto) Descriptor() ([]byte, []int)
Deprecated: Use AdviceProto.ProtoReflect.Descriptor instead.
func (*AdviceProto) GetCheckers ¶
func (x *AdviceProto) GetCheckers() map[string]*AdviceProto_Checker
func (*AdviceProto) ProtoMessage ¶
func (*AdviceProto) ProtoMessage()
func (*AdviceProto) ProtoReflect ¶
func (x *AdviceProto) ProtoReflect() protoreflect.Message
func (*AdviceProto) Reset ¶
func (x *AdviceProto) Reset()
func (*AdviceProto) String ¶
func (x *AdviceProto) String() string
type AdviceProto_Checker ¶
type AdviceProto_Checker struct { Reports []string `protobuf:"bytes,2,rep,name=reports,proto3" json:"reports,omitempty"` // contains filtered or unexported fields }
func (*AdviceProto_Checker) Descriptor
deprecated
func (*AdviceProto_Checker) Descriptor() ([]byte, []int)
Deprecated: Use AdviceProto_Checker.ProtoReflect.Descriptor instead.
func (*AdviceProto_Checker) GetReports ¶
func (x *AdviceProto_Checker) GetReports() []string
func (*AdviceProto_Checker) ProtoMessage ¶
func (*AdviceProto_Checker) ProtoMessage()
func (*AdviceProto_Checker) ProtoReflect ¶
func (x *AdviceProto_Checker) ProtoReflect() protoreflect.Message
func (*AdviceProto_Checker) Reset ¶
func (x *AdviceProto_Checker) Reset()
func (*AdviceProto_Checker) String ¶
func (x *AdviceProto_Checker) String() string
type AdvisorOptionsProto ¶
type AdvisorOptionsProto struct { // checker name -> a dict of key-value options. Checkers map[string]*AdvisorOptionsProto_CheckerOption `` /* 157-byte string literal not displayed */ // contains filtered or unexported fields }
func (*AdvisorOptionsProto) Descriptor
deprecated
func (*AdvisorOptionsProto) Descriptor() ([]byte, []int)
Deprecated: Use AdvisorOptionsProto.ProtoReflect.Descriptor instead.
func (*AdvisorOptionsProto) GetCheckers ¶
func (x *AdvisorOptionsProto) GetCheckers() map[string]*AdvisorOptionsProto_CheckerOption
func (*AdvisorOptionsProto) ProtoMessage ¶
func (*AdvisorOptionsProto) ProtoMessage()
func (*AdvisorOptionsProto) ProtoReflect ¶
func (x *AdvisorOptionsProto) ProtoReflect() protoreflect.Message
func (*AdvisorOptionsProto) Reset ¶
func (x *AdvisorOptionsProto) Reset()
func (*AdvisorOptionsProto) String ¶
func (x *AdvisorOptionsProto) String() string
type AdvisorOptionsProto_CheckerOption ¶
type AdvisorOptionsProto_CheckerOption struct { Options map[string]string `` /* 155-byte string literal not displayed */ // contains filtered or unexported fields }
func (*AdvisorOptionsProto_CheckerOption) Descriptor
deprecated
func (*AdvisorOptionsProto_CheckerOption) Descriptor() ([]byte, []int)
Deprecated: Use AdvisorOptionsProto_CheckerOption.ProtoReflect.Descriptor instead.
func (*AdvisorOptionsProto_CheckerOption) GetOptions ¶
func (x *AdvisorOptionsProto_CheckerOption) GetOptions() map[string]string
func (*AdvisorOptionsProto_CheckerOption) ProtoMessage ¶
func (*AdvisorOptionsProto_CheckerOption) ProtoMessage()
func (*AdvisorOptionsProto_CheckerOption) ProtoReflect ¶
func (x *AdvisorOptionsProto_CheckerOption) ProtoReflect() protoreflect.Message
func (*AdvisorOptionsProto_CheckerOption) Reset ¶
func (x *AdvisorOptionsProto_CheckerOption) Reset()
func (*AdvisorOptionsProto_CheckerOption) String ¶
func (x *AdvisorOptionsProto_CheckerOption) String() string
type CodeDef ¶
type CodeDef struct { Traces []*CodeDef_Trace `protobuf:"bytes,1,rep,name=traces,proto3" json:"traces,omitempty"` // contains filtered or unexported fields }
It specifies the Python callstack that creates an op.
func (*CodeDef) Descriptor
deprecated
func (*CodeDef) GetTraces ¶
func (x *CodeDef) GetTraces() []*CodeDef_Trace
func (*CodeDef) ProtoMessage ¶
func (*CodeDef) ProtoMessage()
func (*CodeDef) ProtoReflect ¶
func (x *CodeDef) ProtoReflect() protoreflect.Message
type CodeDef_Trace ¶
type CodeDef_Trace struct { // Deprecated: Marked as deprecated in tensorflow/core/profiler/tfprof_log.proto. File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"` // deprecated by file_id. FileId int64 `protobuf:"varint,6,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"` Lineno int32 `protobuf:"varint,2,opt,name=lineno,proto3" json:"lineno,omitempty"` // Deprecated: Marked as deprecated in tensorflow/core/profiler/tfprof_log.proto. Function string `protobuf:"bytes,3,opt,name=function,proto3" json:"function,omitempty"` // deprecated by function_id. FunctionId int64 `protobuf:"varint,7,opt,name=function_id,json=functionId,proto3" json:"function_id,omitempty"` // Deprecated: Marked as deprecated in tensorflow/core/profiler/tfprof_log.proto. Line string `protobuf:"bytes,4,opt,name=line,proto3" json:"line,omitempty"` // deprecated line_id. LineId int64 `protobuf:"varint,8,opt,name=line_id,json=lineId,proto3" json:"line_id,omitempty"` FuncStartLine int32 `protobuf:"varint,5,opt,name=func_start_line,json=funcStartLine,proto3" json:"func_start_line,omitempty"` // contains filtered or unexported fields }
func (*CodeDef_Trace) Descriptor
deprecated
func (*CodeDef_Trace) Descriptor() ([]byte, []int)
Deprecated: Use CodeDef_Trace.ProtoReflect.Descriptor instead.
func (*CodeDef_Trace) GetFile
deprecated
func (x *CodeDef_Trace) GetFile() string
Deprecated: Marked as deprecated in tensorflow/core/profiler/tfprof_log.proto.
func (*CodeDef_Trace) GetFileId ¶
func (x *CodeDef_Trace) GetFileId() int64
func (*CodeDef_Trace) GetFuncStartLine ¶
func (x *CodeDef_Trace) GetFuncStartLine() int32
func (*CodeDef_Trace) GetFunction
deprecated
func (x *CodeDef_Trace) GetFunction() string
Deprecated: Marked as deprecated in tensorflow/core/profiler/tfprof_log.proto.
func (*CodeDef_Trace) GetFunctionId ¶
func (x *CodeDef_Trace) GetFunctionId() int64
func (*CodeDef_Trace) GetLine
deprecated
func (x *CodeDef_Trace) GetLine() string
Deprecated: Marked as deprecated in tensorflow/core/profiler/tfprof_log.proto.
func (*CodeDef_Trace) GetLineId ¶
func (x *CodeDef_Trace) GetLineId() int64
func (*CodeDef_Trace) GetLineno ¶
func (x *CodeDef_Trace) GetLineno() int32
func (*CodeDef_Trace) ProtoMessage ¶
func (*CodeDef_Trace) ProtoMessage()
func (*CodeDef_Trace) ProtoReflect ¶
func (x *CodeDef_Trace) ProtoReflect() protoreflect.Message
func (*CodeDef_Trace) Reset ¶
func (x *CodeDef_Trace) Reset()
func (*CodeDef_Trace) String ¶
func (x *CodeDef_Trace) String() string
type EnumProfileSessionsAndToolsRequest ¶
type EnumProfileSessionsAndToolsRequest struct { RepositoryRoot string `protobuf:"bytes,1,opt,name=repository_root,json=repositoryRoot,proto3" json:"repository_root,omitempty"` // contains filtered or unexported fields }
func (*EnumProfileSessionsAndToolsRequest) Descriptor
deprecated
func (*EnumProfileSessionsAndToolsRequest) Descriptor() ([]byte, []int)
Deprecated: Use EnumProfileSessionsAndToolsRequest.ProtoReflect.Descriptor instead.
func (*EnumProfileSessionsAndToolsRequest) GetRepositoryRoot ¶
func (x *EnumProfileSessionsAndToolsRequest) GetRepositoryRoot() string
func (*EnumProfileSessionsAndToolsRequest) ProtoMessage ¶
func (*EnumProfileSessionsAndToolsRequest) ProtoMessage()
func (*EnumProfileSessionsAndToolsRequest) ProtoReflect ¶
func (x *EnumProfileSessionsAndToolsRequest) ProtoReflect() protoreflect.Message
func (*EnumProfileSessionsAndToolsRequest) Reset ¶
func (x *EnumProfileSessionsAndToolsRequest) Reset()
func (*EnumProfileSessionsAndToolsRequest) String ¶
func (x *EnumProfileSessionsAndToolsRequest) String() string
type EnumProfileSessionsAndToolsResponse ¶
type EnumProfileSessionsAndToolsResponse struct { // Auxiliary error_message. ErrorMessage string `protobuf:"bytes,1,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` // If success, the returned sessions information are stored here. Sessions []*ProfileSessionInfo `protobuf:"bytes,2,rep,name=sessions,proto3" json:"sessions,omitempty"` // contains filtered or unexported fields }
func (*EnumProfileSessionsAndToolsResponse) Descriptor
deprecated
func (*EnumProfileSessionsAndToolsResponse) Descriptor() ([]byte, []int)
Deprecated: Use EnumProfileSessionsAndToolsResponse.ProtoReflect.Descriptor instead.
func (*EnumProfileSessionsAndToolsResponse) GetErrorMessage ¶
func (x *EnumProfileSessionsAndToolsResponse) GetErrorMessage() string
func (*EnumProfileSessionsAndToolsResponse) GetSessions ¶
func (x *EnumProfileSessionsAndToolsResponse) GetSessions() []*ProfileSessionInfo
func (*EnumProfileSessionsAndToolsResponse) ProtoMessage ¶
func (*EnumProfileSessionsAndToolsResponse) ProtoMessage()
func (*EnumProfileSessionsAndToolsResponse) ProtoReflect ¶
func (x *EnumProfileSessionsAndToolsResponse) ProtoReflect() protoreflect.Message
func (*EnumProfileSessionsAndToolsResponse) Reset ¶
func (x *EnumProfileSessionsAndToolsResponse) Reset()
func (*EnumProfileSessionsAndToolsResponse) String ¶
func (x *EnumProfileSessionsAndToolsResponse) String() string
type ExecMemory ¶
type ExecMemory struct { // This is the timestamp when the memory information was tracked. MemoryMicros int64 `protobuf:"varint,1,opt,name=memory_micros,json=memoryMicros,proto3" json:"memory_micros,omitempty"` // NOTE: Please don't depend on the following 4 fields yet. Due to // TensorFlow internal tracing issues, the numbers can be quite wrong. // TODO(xpan): Fix the TensorFlow internal tracing. HostTempBytes int64 `protobuf:"varint,2,opt,name=host_temp_bytes,json=hostTempBytes,proto3" json:"host_temp_bytes,omitempty"` HostPersistentBytes int64 `protobuf:"varint,3,opt,name=host_persistent_bytes,json=hostPersistentBytes,proto3" json:"host_persistent_bytes,omitempty"` AcceleratorTempBytes int64 `protobuf:"varint,4,opt,name=accelerator_temp_bytes,json=acceleratorTempBytes,proto3" json:"accelerator_temp_bytes,omitempty"` AcceleratorPersistentBytes int64 `` /* 142-byte string literal not displayed */ // Total bytes requested by the op. RequestedBytes int64 `protobuf:"varint,6,opt,name=requested_bytes,json=requestedBytes,proto3" json:"requested_bytes,omitempty"` // Total bytes requested by the op and released before op end. PeakBytes int64 `protobuf:"varint,7,opt,name=peak_bytes,json=peakBytes,proto3" json:"peak_bytes,omitempty"` // Total bytes requested by the op and not released after op end. ResidualBytes int64 `protobuf:"varint,8,opt,name=residual_bytes,json=residualBytes,proto3" json:"residual_bytes,omitempty"` // Total bytes output by the op (not necessarily requested by the op). OutputBytes int64 `protobuf:"varint,9,opt,name=output_bytes,json=outputBytes,proto3" json:"output_bytes,omitempty"` // The total number of bytes currently allocated by the allocator if >0. AllocatorBytesInUse int64 `protobuf:"varint,10,opt,name=allocator_bytes_in_use,json=allocatorBytesInUse,proto3" json:"allocator_bytes_in_use,omitempty"` // The memory of each output of the operation. OutputMemory map[int32]*Memory `` /* 187-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ExecMemory) Descriptor
deprecated
func (*ExecMemory) Descriptor() ([]byte, []int)
Deprecated: Use ExecMemory.ProtoReflect.Descriptor instead.
func (*ExecMemory) GetAcceleratorPersistentBytes ¶
func (x *ExecMemory) GetAcceleratorPersistentBytes() int64
func (*ExecMemory) GetAcceleratorTempBytes ¶
func (x *ExecMemory) GetAcceleratorTempBytes() int64
func (*ExecMemory) GetAllocatorBytesInUse ¶
func (x *ExecMemory) GetAllocatorBytesInUse() int64
func (*ExecMemory) GetHostPersistentBytes ¶
func (x *ExecMemory) GetHostPersistentBytes() int64
func (*ExecMemory) GetHostTempBytes ¶
func (x *ExecMemory) GetHostTempBytes() int64
func (*ExecMemory) GetMemoryMicros ¶
func (x *ExecMemory) GetMemoryMicros() int64
func (*ExecMemory) GetOutputBytes ¶
func (x *ExecMemory) GetOutputBytes() int64
func (*ExecMemory) GetOutputMemory ¶
func (x *ExecMemory) GetOutputMemory() map[int32]*Memory
func (*ExecMemory) GetPeakBytes ¶
func (x *ExecMemory) GetPeakBytes() int64
func (*ExecMemory) GetRequestedBytes ¶
func (x *ExecMemory) GetRequestedBytes() int64
func (*ExecMemory) GetResidualBytes ¶
func (x *ExecMemory) GetResidualBytes() int64
func (*ExecMemory) ProtoMessage ¶
func (*ExecMemory) ProtoMessage()
func (*ExecMemory) ProtoReflect ¶
func (x *ExecMemory) ProtoReflect() protoreflect.Message
func (*ExecMemory) Reset ¶
func (x *ExecMemory) Reset()
func (*ExecMemory) String ¶
func (x *ExecMemory) String() string
type ExecProfile ¶
type ExecProfile struct { // Can be larger than 1 if run multiple times in loop. RunCount int64 `protobuf:"varint,1,opt,name=run_count,json=runCount,proto3" json:"run_count,omitempty"` // The earliest/latest time including scheduling and execution. AllStartMicros int64 `protobuf:"varint,2,opt,name=all_start_micros,json=allStartMicros,proto3" json:"all_start_micros,omitempty"` LatestEndMicros int64 `protobuf:"varint,3,opt,name=latest_end_micros,json=latestEndMicros,proto3" json:"latest_end_micros,omitempty"` // device -> vector of {op_start_micros, op_exec_micros} pairs. // accelerator_execs: gpu:id/stream:all -> {op_start_micros, op_exec_micros} // For accelerator, vector size can be larger than 1, multiple kernel fires // or in tf.while_loop. AcceleratorExecs map[string]*ExecTime `` /* 197-byte string literal not displayed */ // cpu_execs: cpu/gpu:id -> {op_start_micros, op_exec_micros} // For cpu, vector size can be larger than 1 if in tf.while_loop. CpuExecs map[string]*ExecTime `` /* 173-byte string literal not displayed */ // Each entry to memory information of a scheduling of the node. // Normally, there will be multiple entries in while_loop. MemoryExecs []*ExecMemory `protobuf:"bytes,7,rep,name=memory_execs,json=memoryExecs,proto3" json:"memory_execs,omitempty"` // The allocation and deallocation times and sizes throughout execution. Allocations []*framework.AllocationRecord `protobuf:"bytes,11,rep,name=allocations,proto3" json:"allocations,omitempty"` // The devices related to this execution. Devices []string `protobuf:"bytes,6,rep,name=devices,proto3" json:"devices,omitempty"` // contains filtered or unexported fields }
func (*ExecProfile) Descriptor
deprecated
func (*ExecProfile) Descriptor() ([]byte, []int)
Deprecated: Use ExecProfile.ProtoReflect.Descriptor instead.
func (*ExecProfile) GetAcceleratorExecs ¶
func (x *ExecProfile) GetAcceleratorExecs() map[string]*ExecTime
func (*ExecProfile) GetAllStartMicros ¶
func (x *ExecProfile) GetAllStartMicros() int64
func (*ExecProfile) GetAllocations ¶
func (x *ExecProfile) GetAllocations() []*framework.AllocationRecord
func (*ExecProfile) GetCpuExecs ¶
func (x *ExecProfile) GetCpuExecs() map[string]*ExecTime
func (*ExecProfile) GetDevices ¶
func (x *ExecProfile) GetDevices() []string
func (*ExecProfile) GetLatestEndMicros ¶
func (x *ExecProfile) GetLatestEndMicros() int64
func (*ExecProfile) GetMemoryExecs ¶
func (x *ExecProfile) GetMemoryExecs() []*ExecMemory
func (*ExecProfile) GetRunCount ¶
func (x *ExecProfile) GetRunCount() int64
func (*ExecProfile) ProtoMessage ¶
func (*ExecProfile) ProtoMessage()
func (*ExecProfile) ProtoReflect ¶
func (x *ExecProfile) ProtoReflect() protoreflect.Message
func (*ExecProfile) Reset ¶
func (x *ExecProfile) Reset()
func (*ExecProfile) String ¶
func (x *ExecProfile) String() string
type ExecTime ¶
type ExecTime struct { Times []*Tuple `protobuf:"bytes,1,rep,name=times,proto3" json:"times,omitempty"` // contains filtered or unexported fields }
func (*ExecTime) Descriptor
deprecated
func (*ExecTime) ProtoMessage ¶
func (*ExecTime) ProtoMessage()
func (*ExecTime) ProtoReflect ¶
func (x *ExecTime) ProtoReflect() protoreflect.Message
type Function ¶
type Function struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name int64 `protobuf:"varint,2,opt,name=name,proto3" json:"name,omitempty"` SystemName int64 `protobuf:"varint,3,opt,name=system_name,json=systemName,proto3" json:"system_name,omitempty"` Filename int64 `protobuf:"varint,4,opt,name=filename,proto3" json:"filename,omitempty"` StartLine int64 `protobuf:"varint,5,opt,name=start_line,json=startLine,proto3" json:"start_line,omitempty"` // contains filtered or unexported fields }
func (*Function) Descriptor
deprecated
func (*Function) GetFilename ¶
func (*Function) GetStartLine ¶
func (*Function) GetSystemName ¶
func (*Function) ProtoMessage ¶
func (*Function) ProtoMessage()
func (*Function) ProtoReflect ¶
func (x *Function) ProtoReflect() protoreflect.Message
type GraphNodeProto ¶
type GraphNodeProto struct { // op name. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // tensor value restored from checkpoint. TensorValue *TFProfTensorProto `protobuf:"bytes,15,opt,name=tensor_value,json=tensorValue,proto3" json:"tensor_value,omitempty"` // op execution time. // A node can be defined once but run multiple times in tf.while_loop. // the times sum up all different runs. RunCount int64 `protobuf:"varint,21,opt,name=run_count,json=runCount,proto3" json:"run_count,omitempty"` ExecMicros int64 `protobuf:"varint,2,opt,name=exec_micros,json=execMicros,proto3" json:"exec_micros,omitempty"` AcceleratorExecMicros int64 `` /* 128-byte string literal not displayed */ CpuExecMicros int64 `protobuf:"varint,18,opt,name=cpu_exec_micros,json=cpuExecMicros,proto3" json:"cpu_exec_micros,omitempty"` // Total bytes requested by the op. RequestedBytes int64 `protobuf:"varint,3,opt,name=requested_bytes,json=requestedBytes,proto3" json:"requested_bytes,omitempty"` // Max bytes allocated and being used by the op at a point. PeakBytes int64 `protobuf:"varint,24,opt,name=peak_bytes,json=peakBytes,proto3" json:"peak_bytes,omitempty"` // Total bytes requested by the op and not released before end. ResidualBytes int64 `protobuf:"varint,25,opt,name=residual_bytes,json=residualBytes,proto3" json:"residual_bytes,omitempty"` // Total bytes output by the op (not necessarily allocated by the op). OutputBytes int64 `protobuf:"varint,26,opt,name=output_bytes,json=outputBytes,proto3" json:"output_bytes,omitempty"` // Number of parameters if available. Parameters int64 `protobuf:"varint,4,opt,name=parameters,proto3" json:"parameters,omitempty"` // Number of float operations. FloatOps int64 `protobuf:"varint,13,opt,name=float_ops,json=floatOps,proto3" json:"float_ops,omitempty"` // Device the op is assigned to. // Since an op can fire multiple kernel calls, there can be multiple devices. Devices []string `protobuf:"bytes,10,rep,name=devices,proto3" json:"devices,omitempty"` // The following are the aggregated stats from all *accounted* children and // the node itself. The actual children depend on the data structure used. // In graph view, children are inputs recursively. // In scope view, children are nodes under the name scope. TotalDefinitionCount int64 `protobuf:"varint,23,opt,name=total_definition_count,json=totalDefinitionCount,proto3" json:"total_definition_count,omitempty"` TotalRunCount int64 `protobuf:"varint,22,opt,name=total_run_count,json=totalRunCount,proto3" json:"total_run_count,omitempty"` TotalExecMicros int64 `protobuf:"varint,6,opt,name=total_exec_micros,json=totalExecMicros,proto3" json:"total_exec_micros,omitempty"` TotalAcceleratorExecMicros int64 `` /* 145-byte string literal not displayed */ TotalCpuExecMicros int64 `protobuf:"varint,20,opt,name=total_cpu_exec_micros,json=totalCpuExecMicros,proto3" json:"total_cpu_exec_micros,omitempty"` TotalRequestedBytes int64 `protobuf:"varint,7,opt,name=total_requested_bytes,json=totalRequestedBytes,proto3" json:"total_requested_bytes,omitempty"` TotalPeakBytes int64 `protobuf:"varint,27,opt,name=total_peak_bytes,json=totalPeakBytes,proto3" json:"total_peak_bytes,omitempty"` TotalResidualBytes int64 `protobuf:"varint,28,opt,name=total_residual_bytes,json=totalResidualBytes,proto3" json:"total_residual_bytes,omitempty"` TotalOutputBytes int64 `protobuf:"varint,29,opt,name=total_output_bytes,json=totalOutputBytes,proto3" json:"total_output_bytes,omitempty"` TotalParameters int64 `protobuf:"varint,8,opt,name=total_parameters,json=totalParameters,proto3" json:"total_parameters,omitempty"` TotalFloatOps int64 `protobuf:"varint,14,opt,name=total_float_ops,json=totalFloatOps,proto3" json:"total_float_ops,omitempty"` // shape information, if available. // TODO(xpan): Why is this repeated? Shapes []*framework.TensorShapeProto `protobuf:"bytes,11,rep,name=shapes,proto3" json:"shapes,omitempty"` InputShapes map[int32]*framework.TensorShapeProto `` /* 184-byte string literal not displayed */ // Descendants of the graph. The actual descendants depend on the data // structure used (scope, graph). Children []*GraphNodeProto `protobuf:"bytes,12,rep,name=children,proto3" json:"children,omitempty"` // contains filtered or unexported fields }
A node in TensorFlow graph. Used by scope/graph view.
func (*GraphNodeProto) Descriptor
deprecated
func (*GraphNodeProto) Descriptor() ([]byte, []int)
Deprecated: Use GraphNodeProto.ProtoReflect.Descriptor instead.
func (*GraphNodeProto) GetAcceleratorExecMicros ¶
func (x *GraphNodeProto) GetAcceleratorExecMicros() int64
func (*GraphNodeProto) GetChildren ¶
func (x *GraphNodeProto) GetChildren() []*GraphNodeProto
func (*GraphNodeProto) GetCpuExecMicros ¶
func (x *GraphNodeProto) GetCpuExecMicros() int64
func (*GraphNodeProto) GetDevices ¶
func (x *GraphNodeProto) GetDevices() []string
func (*GraphNodeProto) GetExecMicros ¶
func (x *GraphNodeProto) GetExecMicros() int64
func (*GraphNodeProto) GetFloatOps ¶
func (x *GraphNodeProto) GetFloatOps() int64
func (*GraphNodeProto) GetInputShapes ¶
func (x *GraphNodeProto) GetInputShapes() map[int32]*framework.TensorShapeProto
func (*GraphNodeProto) GetName ¶
func (x *GraphNodeProto) GetName() string
func (*GraphNodeProto) GetOutputBytes ¶
func (x *GraphNodeProto) GetOutputBytes() int64
func (*GraphNodeProto) GetParameters ¶
func (x *GraphNodeProto) GetParameters() int64
func (*GraphNodeProto) GetPeakBytes ¶
func (x *GraphNodeProto) GetPeakBytes() int64
func (*GraphNodeProto) GetRequestedBytes ¶
func (x *GraphNodeProto) GetRequestedBytes() int64
func (*GraphNodeProto) GetResidualBytes ¶
func (x *GraphNodeProto) GetResidualBytes() int64
func (*GraphNodeProto) GetRunCount ¶
func (x *GraphNodeProto) GetRunCount() int64
func (*GraphNodeProto) GetShapes ¶
func (x *GraphNodeProto) GetShapes() []*framework.TensorShapeProto
func (*GraphNodeProto) GetTensorValue ¶
func (x *GraphNodeProto) GetTensorValue() *TFProfTensorProto
func (*GraphNodeProto) GetTotalAcceleratorExecMicros ¶
func (x *GraphNodeProto) GetTotalAcceleratorExecMicros() int64
func (*GraphNodeProto) GetTotalCpuExecMicros ¶
func (x *GraphNodeProto) GetTotalCpuExecMicros() int64
func (*GraphNodeProto) GetTotalDefinitionCount ¶
func (x *GraphNodeProto) GetTotalDefinitionCount() int64
func (*GraphNodeProto) GetTotalExecMicros ¶
func (x *GraphNodeProto) GetTotalExecMicros() int64
func (*GraphNodeProto) GetTotalFloatOps ¶
func (x *GraphNodeProto) GetTotalFloatOps() int64
func (*GraphNodeProto) GetTotalOutputBytes ¶
func (x *GraphNodeProto) GetTotalOutputBytes() int64
func (*GraphNodeProto) GetTotalParameters ¶
func (x *GraphNodeProto) GetTotalParameters() int64
func (*GraphNodeProto) GetTotalPeakBytes ¶
func (x *GraphNodeProto) GetTotalPeakBytes() int64
func (*GraphNodeProto) GetTotalRequestedBytes ¶
func (x *GraphNodeProto) GetTotalRequestedBytes() int64
func (*GraphNodeProto) GetTotalResidualBytes ¶
func (x *GraphNodeProto) GetTotalResidualBytes() int64
func (*GraphNodeProto) GetTotalRunCount ¶
func (x *GraphNodeProto) GetTotalRunCount() int64
func (*GraphNodeProto) ProtoMessage ¶
func (*GraphNodeProto) ProtoMessage()
func (*GraphNodeProto) ProtoReflect ¶
func (x *GraphNodeProto) ProtoReflect() protoreflect.Message
func (*GraphNodeProto) Reset ¶
func (x *GraphNodeProto) Reset()
func (*GraphNodeProto) String ¶
func (x *GraphNodeProto) String() string
type Label ¶
type Label struct { Key int64 `protobuf:"varint,1,opt,name=key,proto3" json:"key,omitempty"` Str int64 `protobuf:"varint,2,opt,name=str,proto3" json:"str,omitempty"` Num int64 `protobuf:"varint,3,opt,name=num,proto3" json:"num,omitempty"` // contains filtered or unexported fields }
func (*Label) Descriptor
deprecated
func (*Label) ProtoMessage ¶
func (*Label) ProtoMessage()
func (*Label) ProtoReflect ¶
func (x *Label) ProtoReflect() protoreflect.Message
type Line ¶
type Line struct { FunctionId uint64 `protobuf:"varint,1,opt,name=function_id,json=functionId,proto3" json:"function_id,omitempty"` Line int64 `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"` // contains filtered or unexported fields }
func (*Line) Descriptor
deprecated
func (*Line) GetFunctionId ¶
func (*Line) ProtoMessage ¶
func (*Line) ProtoMessage()
func (*Line) ProtoReflect ¶
func (x *Line) ProtoReflect() protoreflect.Message
type Location ¶
type Location struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` MappingId uint64 `protobuf:"varint,2,opt,name=mapping_id,json=mappingId,proto3" json:"mapping_id,omitempty"` Address uint64 `protobuf:"varint,3,opt,name=address,proto3" json:"address,omitempty"` Line []*Line `protobuf:"bytes,4,rep,name=line,proto3" json:"line,omitempty"` // contains filtered or unexported fields }
func (*Location) Descriptor
deprecated
func (*Location) GetAddress ¶
func (*Location) GetMappingId ¶
func (*Location) ProtoMessage ¶
func (*Location) ProtoMessage()
func (*Location) ProtoReflect ¶
func (x *Location) ProtoReflect() protoreflect.Message
type Mapping ¶
type Mapping struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` MemoryStart uint64 `protobuf:"varint,2,opt,name=memory_start,json=memoryStart,proto3" json:"memory_start,omitempty"` MemoryLimit uint64 `protobuf:"varint,3,opt,name=memory_limit,json=memoryLimit,proto3" json:"memory_limit,omitempty"` FileOffset uint64 `protobuf:"varint,4,opt,name=file_offset,json=fileOffset,proto3" json:"file_offset,omitempty"` Filename int64 `protobuf:"varint,5,opt,name=filename,proto3" json:"filename,omitempty"` BuildId int64 `protobuf:"varint,6,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"` HasFunctions bool `protobuf:"varint,7,opt,name=has_functions,json=hasFunctions,proto3" json:"has_functions,omitempty"` HasFilenames bool `protobuf:"varint,8,opt,name=has_filenames,json=hasFilenames,proto3" json:"has_filenames,omitempty"` HasLineNumbers bool `protobuf:"varint,9,opt,name=has_line_numbers,json=hasLineNumbers,proto3" json:"has_line_numbers,omitempty"` HasInlineFrames bool `protobuf:"varint,10,opt,name=has_inline_frames,json=hasInlineFrames,proto3" json:"has_inline_frames,omitempty"` // contains filtered or unexported fields }
func (*Mapping) Descriptor
deprecated
func (*Mapping) GetBuildId ¶
func (*Mapping) GetFileOffset ¶
func (*Mapping) GetFilename ¶
func (*Mapping) GetHasFilenames ¶
func (*Mapping) GetHasFunctions ¶
func (*Mapping) GetHasInlineFrames ¶
func (*Mapping) GetHasLineNumbers ¶
func (*Mapping) GetMemoryLimit ¶
func (*Mapping) GetMemoryStart ¶
func (*Mapping) ProtoMessage ¶
func (*Mapping) ProtoMessage()
func (*Mapping) ProtoReflect ¶
func (x *Mapping) ProtoReflect() protoreflect.Message
type Memory ¶
type Memory struct { Bytes int64 `protobuf:"varint,1,opt,name=bytes,proto3" json:"bytes,omitempty"` Ptr uint64 `protobuf:"varint,2,opt,name=ptr,proto3" json:"ptr,omitempty"` // contains filtered or unexported fields }
func (*Memory) Descriptor
deprecated
func (*Memory) ProtoMessage ¶
func (*Memory) ProtoMessage()
func (*Memory) ProtoReflect ¶
func (x *Memory) ProtoReflect() protoreflect.Message
type MonitorRequest ¶
type MonitorRequest struct { // Duration for which to profile between each update. DurationMs uint64 `protobuf:"varint,1,opt,name=duration_ms,json=durationMs,proto3" json:"duration_ms,omitempty"` // Indicates the level at which we want to monitor. Currently, two levels are // supported: // Level 1: An ultra lightweight mode that captures only some utilization // metrics. // Level 2: More verbose than level 1. Collects utilization metrics, device // information, step time information, etc. Do not use this option if the TPU // host is being very heavily used. MonitoringLevel int32 `protobuf:"varint,2,opt,name=monitoring_level,json=monitoringLevel,proto3" json:"monitoring_level,omitempty"` // True to display timestamp in monitoring result. Timestamp bool `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
Next-ID: 4
func (*MonitorRequest) Descriptor
deprecated
func (*MonitorRequest) Descriptor() ([]byte, []int)
Deprecated: Use MonitorRequest.ProtoReflect.Descriptor instead.
func (*MonitorRequest) GetDurationMs ¶
func (x *MonitorRequest) GetDurationMs() uint64
func (*MonitorRequest) GetMonitoringLevel ¶
func (x *MonitorRequest) GetMonitoringLevel() int32
func (*MonitorRequest) GetTimestamp ¶
func (x *MonitorRequest) GetTimestamp() bool
func (*MonitorRequest) ProtoMessage ¶
func (*MonitorRequest) ProtoMessage()
func (*MonitorRequest) ProtoReflect ¶
func (x *MonitorRequest) ProtoReflect() protoreflect.Message
func (*MonitorRequest) Reset ¶
func (x *MonitorRequest) Reset()
func (*MonitorRequest) String ¶
func (x *MonitorRequest) String() string
type MonitorResponse ¶
type MonitorResponse struct { // Properly formatted string data that can be directly returned back to user. Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // A collection of monitoring results for each field show in data. MonitorResult *ProfilerServiceMonitorResult `protobuf:"bytes,10,opt,name=monitor_result,json=monitorResult,proto3" json:"monitor_result,omitempty"` // contains filtered or unexported fields }
Next-ID: 11
func (*MonitorResponse) Descriptor
deprecated
func (*MonitorResponse) Descriptor() ([]byte, []int)
Deprecated: Use MonitorResponse.ProtoReflect.Descriptor instead.
func (*MonitorResponse) GetData ¶
func (x *MonitorResponse) GetData() string
func (*MonitorResponse) GetMonitorResult ¶
func (x *MonitorResponse) GetMonitorResult() *ProfilerServiceMonitorResult
func (*MonitorResponse) ProtoMessage ¶
func (*MonitorResponse) ProtoMessage()
func (*MonitorResponse) ProtoReflect ¶
func (x *MonitorResponse) ProtoReflect() protoreflect.Message
func (*MonitorResponse) Reset ¶
func (x *MonitorResponse) Reset()
func (*MonitorResponse) String ¶
func (x *MonitorResponse) String() string
type MultiGraphNodeProto ¶
type MultiGraphNodeProto struct { // Name of the node. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // code execution time. ExecMicros int64 `protobuf:"varint,2,opt,name=exec_micros,json=execMicros,proto3" json:"exec_micros,omitempty"` AcceleratorExecMicros int64 `` /* 128-byte string literal not displayed */ CpuExecMicros int64 `protobuf:"varint,13,opt,name=cpu_exec_micros,json=cpuExecMicros,proto3" json:"cpu_exec_micros,omitempty"` // Total requested bytes by the code. RequestedBytes int64 `protobuf:"varint,3,opt,name=requested_bytes,json=requestedBytes,proto3" json:"requested_bytes,omitempty"` // Max bytes allocated and being used by the op at a point. PeakBytes int64 `protobuf:"varint,16,opt,name=peak_bytes,json=peakBytes,proto3" json:"peak_bytes,omitempty"` // Total bytes requested by the op and not released before end. ResidualBytes int64 `protobuf:"varint,17,opt,name=residual_bytes,json=residualBytes,proto3" json:"residual_bytes,omitempty"` // Total bytes output by the op (not necessarily allocated by the op). OutputBytes int64 `protobuf:"varint,18,opt,name=output_bytes,json=outputBytes,proto3" json:"output_bytes,omitempty"` // Number of parameters if available. Parameters int64 `protobuf:"varint,4,opt,name=parameters,proto3" json:"parameters,omitempty"` // Number of float operations. FloatOps int64 `protobuf:"varint,5,opt,name=float_ops,json=floatOps,proto3" json:"float_ops,omitempty"` // The following are the aggregated stats from descendants. // The actual descendants depend on the data structure used. TotalExecMicros int64 `protobuf:"varint,6,opt,name=total_exec_micros,json=totalExecMicros,proto3" json:"total_exec_micros,omitempty"` TotalAcceleratorExecMicros int64 `` /* 145-byte string literal not displayed */ TotalCpuExecMicros int64 `protobuf:"varint,15,opt,name=total_cpu_exec_micros,json=totalCpuExecMicros,proto3" json:"total_cpu_exec_micros,omitempty"` TotalRequestedBytes int64 `protobuf:"varint,7,opt,name=total_requested_bytes,json=totalRequestedBytes,proto3" json:"total_requested_bytes,omitempty"` TotalPeakBytes int64 `protobuf:"varint,19,opt,name=total_peak_bytes,json=totalPeakBytes,proto3" json:"total_peak_bytes,omitempty"` TotalResidualBytes int64 `protobuf:"varint,20,opt,name=total_residual_bytes,json=totalResidualBytes,proto3" json:"total_residual_bytes,omitempty"` TotalOutputBytes int64 `protobuf:"varint,21,opt,name=total_output_bytes,json=totalOutputBytes,proto3" json:"total_output_bytes,omitempty"` TotalParameters int64 `protobuf:"varint,8,opt,name=total_parameters,json=totalParameters,proto3" json:"total_parameters,omitempty"` TotalFloatOps int64 `protobuf:"varint,9,opt,name=total_float_ops,json=totalFloatOps,proto3" json:"total_float_ops,omitempty"` // TensorFlow graph nodes contained by the MultiGraphNodeProto. GraphNodes []*GraphNodeProto `protobuf:"bytes,10,rep,name=graph_nodes,json=graphNodes,proto3" json:"graph_nodes,omitempty"` // Descendants of the node. The actual descendants depend on the data // structure used. Children []*MultiGraphNodeProto `protobuf:"bytes,11,rep,name=children,proto3" json:"children,omitempty"` // contains filtered or unexported fields }
A node that groups multiple GraphNodeProto. Depending on the 'view', the semantics of the TFmultiGraphNodeProto is different: code view: A node groups all TensorFlow graph nodes created by the
Python code.
op view: A node groups all TensorFlow graph nodes that are of type
of the op (e.g. MatMul, Conv2D).
func (*MultiGraphNodeProto) Descriptor
deprecated
func (*MultiGraphNodeProto) Descriptor() ([]byte, []int)
Deprecated: Use MultiGraphNodeProto.ProtoReflect.Descriptor instead.
func (*MultiGraphNodeProto) GetAcceleratorExecMicros ¶
func (x *MultiGraphNodeProto) GetAcceleratorExecMicros() int64
func (*MultiGraphNodeProto) GetChildren ¶
func (x *MultiGraphNodeProto) GetChildren() []*MultiGraphNodeProto
func (*MultiGraphNodeProto) GetCpuExecMicros ¶
func (x *MultiGraphNodeProto) GetCpuExecMicros() int64
func (*MultiGraphNodeProto) GetExecMicros ¶
func (x *MultiGraphNodeProto) GetExecMicros() int64
func (*MultiGraphNodeProto) GetFloatOps ¶
func (x *MultiGraphNodeProto) GetFloatOps() int64
func (*MultiGraphNodeProto) GetGraphNodes ¶
func (x *MultiGraphNodeProto) GetGraphNodes() []*GraphNodeProto
func (*MultiGraphNodeProto) GetName ¶
func (x *MultiGraphNodeProto) GetName() string
func (*MultiGraphNodeProto) GetOutputBytes ¶
func (x *MultiGraphNodeProto) GetOutputBytes() int64
func (*MultiGraphNodeProto) GetParameters ¶
func (x *MultiGraphNodeProto) GetParameters() int64
func (*MultiGraphNodeProto) GetPeakBytes ¶
func (x *MultiGraphNodeProto) GetPeakBytes() int64
func (*MultiGraphNodeProto) GetRequestedBytes ¶
func (x *MultiGraphNodeProto) GetRequestedBytes() int64
func (*MultiGraphNodeProto) GetResidualBytes ¶
func (x *MultiGraphNodeProto) GetResidualBytes() int64
func (*MultiGraphNodeProto) GetTotalAcceleratorExecMicros ¶
func (x *MultiGraphNodeProto) GetTotalAcceleratorExecMicros() int64
func (*MultiGraphNodeProto) GetTotalCpuExecMicros ¶
func (x *MultiGraphNodeProto) GetTotalCpuExecMicros() int64
func (*MultiGraphNodeProto) GetTotalExecMicros ¶
func (x *MultiGraphNodeProto) GetTotalExecMicros() int64
func (*MultiGraphNodeProto) GetTotalFloatOps ¶
func (x *MultiGraphNodeProto) GetTotalFloatOps() int64
func (*MultiGraphNodeProto) GetTotalOutputBytes ¶
func (x *MultiGraphNodeProto) GetTotalOutputBytes() int64
func (*MultiGraphNodeProto) GetTotalParameters ¶
func (x *MultiGraphNodeProto) GetTotalParameters() int64
func (*MultiGraphNodeProto) GetTotalPeakBytes ¶
func (x *MultiGraphNodeProto) GetTotalPeakBytes() int64
func (*MultiGraphNodeProto) GetTotalRequestedBytes ¶
func (x *MultiGraphNodeProto) GetTotalRequestedBytes() int64
func (*MultiGraphNodeProto) GetTotalResidualBytes ¶
func (x *MultiGraphNodeProto) GetTotalResidualBytes() int64
func (*MultiGraphNodeProto) ProtoMessage ¶
func (*MultiGraphNodeProto) ProtoMessage()
func (*MultiGraphNodeProto) ProtoReflect ¶
func (x *MultiGraphNodeProto) ProtoReflect() protoreflect.Message
func (*MultiGraphNodeProto) Reset ¶
func (x *MultiGraphNodeProto) Reset()
func (*MultiGraphNodeProto) String ¶
func (x *MultiGraphNodeProto) String() string
type NewProfileSessionRequest ¶
type NewProfileSessionRequest struct { Request *ProfileRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` // The place where we will dump profile data. We will normally use // MODEL_DIR/plugins/profile as the repository root. RepositoryRoot string `protobuf:"bytes,2,opt,name=repository_root,json=repositoryRoot,proto3" json:"repository_root,omitempty"` Hosts []string `protobuf:"bytes,3,rep,name=hosts,proto3" json:"hosts,omitempty"` // host or host:port, port will be ignored. SessionId string `protobuf:"bytes,4,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // contains filtered or unexported fields }
func (*NewProfileSessionRequest) Descriptor
deprecated
func (*NewProfileSessionRequest) Descriptor() ([]byte, []int)
Deprecated: Use NewProfileSessionRequest.ProtoReflect.Descriptor instead.
func (*NewProfileSessionRequest) GetHosts ¶
func (x *NewProfileSessionRequest) GetHosts() []string
func (*NewProfileSessionRequest) GetRepositoryRoot ¶
func (x *NewProfileSessionRequest) GetRepositoryRoot() string
func (*NewProfileSessionRequest) GetRequest ¶
func (x *NewProfileSessionRequest) GetRequest() *ProfileRequest
func (*NewProfileSessionRequest) GetSessionId ¶
func (x *NewProfileSessionRequest) GetSessionId() string
func (*NewProfileSessionRequest) ProtoMessage ¶
func (*NewProfileSessionRequest) ProtoMessage()
func (*NewProfileSessionRequest) ProtoReflect ¶
func (x *NewProfileSessionRequest) ProtoReflect() protoreflect.Message
func (*NewProfileSessionRequest) Reset ¶
func (x *NewProfileSessionRequest) Reset()
func (*NewProfileSessionRequest) String ¶
func (x *NewProfileSessionRequest) String() string
type NewProfileSessionResponse ¶
type NewProfileSessionResponse struct { // Auxiliary error_message. ErrorMessage string `protobuf:"bytes,1,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` // Whether all hosts had returned a empty trace. EmptyTrace bool `protobuf:"varint,2,opt,name=empty_trace,json=emptyTrace,proto3" json:"empty_trace,omitempty"` // contains filtered or unexported fields }
func (*NewProfileSessionResponse) Descriptor
deprecated
func (*NewProfileSessionResponse) Descriptor() ([]byte, []int)
Deprecated: Use NewProfileSessionResponse.ProtoReflect.Descriptor instead.
func (*NewProfileSessionResponse) GetEmptyTrace ¶
func (x *NewProfileSessionResponse) GetEmptyTrace() bool
func (*NewProfileSessionResponse) GetErrorMessage ¶
func (x *NewProfileSessionResponse) GetErrorMessage() string
func (*NewProfileSessionResponse) ProtoMessage ¶
func (*NewProfileSessionResponse) ProtoMessage()
func (*NewProfileSessionResponse) ProtoReflect ¶
func (x *NewProfileSessionResponse) ProtoReflect() protoreflect.Message
func (*NewProfileSessionResponse) Reset ¶
func (x *NewProfileSessionResponse) Reset()
func (*NewProfileSessionResponse) String ¶
func (x *NewProfileSessionResponse) String() string
type OpLogEntry ¶
type OpLogEntry struct { // op name. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // float_ops is filled by tfprof Python API when called. It requires the // op has RegisterStatistics defined. Currently, Conv2D, MatMul, etc, are // implemented. FloatOps int64 `protobuf:"varint,2,opt,name=float_ops,json=floatOps,proto3" json:"float_ops,omitempty"` // User can define extra op type information for an op. This allows the user // to select a group of ops precisely using op_type as a key. Types []string `protobuf:"bytes,3,rep,name=types,proto3" json:"types,omitempty"` // Used to support tfprof "code" view. CodeDef *CodeDef `protobuf:"bytes,4,opt,name=code_def,json=codeDef,proto3" json:"code_def,omitempty"` // contains filtered or unexported fields }
func (*OpLogEntry) Descriptor
deprecated
func (*OpLogEntry) Descriptor() ([]byte, []int)
Deprecated: Use OpLogEntry.ProtoReflect.Descriptor instead.
func (*OpLogEntry) GetCodeDef ¶
func (x *OpLogEntry) GetCodeDef() *CodeDef
func (*OpLogEntry) GetFloatOps ¶
func (x *OpLogEntry) GetFloatOps() int64
func (*OpLogEntry) GetName ¶
func (x *OpLogEntry) GetName() string
func (*OpLogEntry) GetTypes ¶
func (x *OpLogEntry) GetTypes() []string
func (*OpLogEntry) ProtoMessage ¶
func (*OpLogEntry) ProtoMessage()
func (*OpLogEntry) ProtoReflect ¶
func (x *OpLogEntry) ProtoReflect() protoreflect.Message
func (*OpLogEntry) Reset ¶
func (x *OpLogEntry) Reset()
func (*OpLogEntry) String ¶
func (x *OpLogEntry) String() string
type OpLogProto ¶
type OpLogProto struct { LogEntries []*OpLogEntry `protobuf:"bytes,1,rep,name=log_entries,json=logEntries,proto3" json:"log_entries,omitempty"` // Maps from id of CodeDef file,function,line to its string // In the future can also map other id of other fields to string. IdToString map[int64]string `` /* 182-byte string literal not displayed */ // contains filtered or unexported fields }
func (*OpLogProto) Descriptor
deprecated
func (*OpLogProto) Descriptor() ([]byte, []int)
Deprecated: Use OpLogProto.ProtoReflect.Descriptor instead.
func (*OpLogProto) GetIdToString ¶
func (x *OpLogProto) GetIdToString() map[int64]string
func (*OpLogProto) GetLogEntries ¶
func (x *OpLogProto) GetLogEntries() []*OpLogEntry
func (*OpLogProto) ProtoMessage ¶
func (*OpLogProto) ProtoMessage()
func (*OpLogProto) ProtoReflect ¶
func (x *OpLogProto) ProtoReflect() protoreflect.Message
func (*OpLogProto) Reset ¶
func (x *OpLogProto) Reset()
func (*OpLogProto) String ¶
func (x *OpLogProto) String() string
type OptionsProto ¶
type OptionsProto struct { MaxDepth int64 `protobuf:"varint,1,opt,name=max_depth,json=maxDepth,proto3" json:"max_depth,omitempty"` MinBytes int64 `protobuf:"varint,2,opt,name=min_bytes,json=minBytes,proto3" json:"min_bytes,omitempty"` MinPeakBytes int64 `protobuf:"varint,19,opt,name=min_peak_bytes,json=minPeakBytes,proto3" json:"min_peak_bytes,omitempty"` MinResidualBytes int64 `protobuf:"varint,20,opt,name=min_residual_bytes,json=minResidualBytes,proto3" json:"min_residual_bytes,omitempty"` MinOutputBytes int64 `protobuf:"varint,21,opt,name=min_output_bytes,json=minOutputBytes,proto3" json:"min_output_bytes,omitempty"` MinMicros int64 `protobuf:"varint,3,opt,name=min_micros,json=minMicros,proto3" json:"min_micros,omitempty"` MinAcceleratorMicros int64 `protobuf:"varint,22,opt,name=min_accelerator_micros,json=minAcceleratorMicros,proto3" json:"min_accelerator_micros,omitempty"` MinCpuMicros int64 `protobuf:"varint,23,opt,name=min_cpu_micros,json=minCpuMicros,proto3" json:"min_cpu_micros,omitempty"` MinParams int64 `protobuf:"varint,4,opt,name=min_params,json=minParams,proto3" json:"min_params,omitempty"` MinFloatOps int64 `protobuf:"varint,5,opt,name=min_float_ops,json=minFloatOps,proto3" json:"min_float_ops,omitempty"` MinOccurrence int64 `protobuf:"varint,17,opt,name=min_occurrence,json=minOccurrence,proto3" json:"min_occurrence,omitempty"` Step int64 `protobuf:"varint,18,opt,name=step,proto3" json:"step,omitempty"` OrderBy string `protobuf:"bytes,7,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` AccountTypeRegexes []string `protobuf:"bytes,8,rep,name=account_type_regexes,json=accountTypeRegexes,proto3" json:"account_type_regexes,omitempty"` StartNameRegexes []string `protobuf:"bytes,9,rep,name=start_name_regexes,json=startNameRegexes,proto3" json:"start_name_regexes,omitempty"` TrimNameRegexes []string `protobuf:"bytes,10,rep,name=trim_name_regexes,json=trimNameRegexes,proto3" json:"trim_name_regexes,omitempty"` ShowNameRegexes []string `protobuf:"bytes,11,rep,name=show_name_regexes,json=showNameRegexes,proto3" json:"show_name_regexes,omitempty"` HideNameRegexes []string `protobuf:"bytes,12,rep,name=hide_name_regexes,json=hideNameRegexes,proto3" json:"hide_name_regexes,omitempty"` AccountDisplayedOpOnly bool `` /* 133-byte string literal not displayed */ Select []string `protobuf:"bytes,14,rep,name=select,proto3" json:"select,omitempty"` Output string `protobuf:"bytes,15,opt,name=output,proto3" json:"output,omitempty"` DumpToFile string `protobuf:"bytes,16,opt,name=dump_to_file,json=dumpToFile,proto3" json:"dump_to_file,omitempty"` // contains filtered or unexported fields }
Refers to tfprof_options.h/cc for documentation. Only used to pass tfprof options from Python to C++.
func (*OptionsProto) Descriptor
deprecated
func (*OptionsProto) Descriptor() ([]byte, []int)
Deprecated: Use OptionsProto.ProtoReflect.Descriptor instead.
func (*OptionsProto) GetAccountDisplayedOpOnly ¶
func (x *OptionsProto) GetAccountDisplayedOpOnly() bool
func (*OptionsProto) GetAccountTypeRegexes ¶
func (x *OptionsProto) GetAccountTypeRegexes() []string
func (*OptionsProto) GetDumpToFile ¶
func (x *OptionsProto) GetDumpToFile() string
func (*OptionsProto) GetHideNameRegexes ¶
func (x *OptionsProto) GetHideNameRegexes() []string
func (*OptionsProto) GetMaxDepth ¶
func (x *OptionsProto) GetMaxDepth() int64
func (*OptionsProto) GetMinAcceleratorMicros ¶
func (x *OptionsProto) GetMinAcceleratorMicros() int64
func (*OptionsProto) GetMinBytes ¶
func (x *OptionsProto) GetMinBytes() int64
func (*OptionsProto) GetMinCpuMicros ¶
func (x *OptionsProto) GetMinCpuMicros() int64
func (*OptionsProto) GetMinFloatOps ¶
func (x *OptionsProto) GetMinFloatOps() int64
func (*OptionsProto) GetMinMicros ¶
func (x *OptionsProto) GetMinMicros() int64
func (*OptionsProto) GetMinOccurrence ¶
func (x *OptionsProto) GetMinOccurrence() int64
func (*OptionsProto) GetMinOutputBytes ¶
func (x *OptionsProto) GetMinOutputBytes() int64
func (*OptionsProto) GetMinParams ¶
func (x *OptionsProto) GetMinParams() int64
func (*OptionsProto) GetMinPeakBytes ¶
func (x *OptionsProto) GetMinPeakBytes() int64
func (*OptionsProto) GetMinResidualBytes ¶
func (x *OptionsProto) GetMinResidualBytes() int64
func (*OptionsProto) GetOrderBy ¶
func (x *OptionsProto) GetOrderBy() string
func (*OptionsProto) GetOutput ¶
func (x *OptionsProto) GetOutput() string
func (*OptionsProto) GetSelect ¶
func (x *OptionsProto) GetSelect() []string
func (*OptionsProto) GetShowNameRegexes ¶
func (x *OptionsProto) GetShowNameRegexes() []string
func (*OptionsProto) GetStartNameRegexes ¶
func (x *OptionsProto) GetStartNameRegexes() []string
func (*OptionsProto) GetStep ¶
func (x *OptionsProto) GetStep() int64
func (*OptionsProto) GetTrimNameRegexes ¶
func (x *OptionsProto) GetTrimNameRegexes() []string
func (*OptionsProto) ProtoMessage ¶
func (*OptionsProto) ProtoMessage()
func (*OptionsProto) ProtoReflect ¶
func (x *OptionsProto) ProtoReflect() protoreflect.Message
func (*OptionsProto) Reset ¶
func (x *OptionsProto) Reset()
func (*OptionsProto) String ¶
func (x *OptionsProto) String() string
type Profile ¶
type Profile struct { SampleType []*ValueType `protobuf:"bytes,1,rep,name=sample_type,json=sampleType,proto3" json:"sample_type,omitempty"` Sample []*Sample `protobuf:"bytes,2,rep,name=sample,proto3" json:"sample,omitempty"` Mapping []*Mapping `protobuf:"bytes,3,rep,name=mapping,proto3" json:"mapping,omitempty"` Location []*Location `protobuf:"bytes,4,rep,name=location,proto3" json:"location,omitempty"` Function []*Function `protobuf:"bytes,5,rep,name=function,proto3" json:"function,omitempty"` StringTable []string `protobuf:"bytes,6,rep,name=string_table,json=stringTable,proto3" json:"string_table,omitempty"` DropFrames int64 `protobuf:"varint,7,opt,name=drop_frames,json=dropFrames,proto3" json:"drop_frames,omitempty"` KeepFrames int64 `protobuf:"varint,8,opt,name=keep_frames,json=keepFrames,proto3" json:"keep_frames,omitempty"` TimeNanos int64 `protobuf:"varint,9,opt,name=time_nanos,json=timeNanos,proto3" json:"time_nanos,omitempty"` DurationNanos int64 `protobuf:"varint,10,opt,name=duration_nanos,json=durationNanos,proto3" json:"duration_nanos,omitempty"` PeriodType *ValueType `protobuf:"bytes,11,opt,name=period_type,json=periodType,proto3" json:"period_type,omitempty"` Period int64 `protobuf:"varint,12,opt,name=period,proto3" json:"period,omitempty"` Comment []int64 `protobuf:"varint,13,rep,packed,name=comment,proto3" json:"comment,omitempty"` DefaultSampleType int64 `protobuf:"varint,14,opt,name=default_sample_type,json=defaultSampleType,proto3" json:"default_sample_type,omitempty"` // contains filtered or unexported fields }
func (*Profile) Descriptor
deprecated
func (*Profile) GetComment ¶
func (*Profile) GetDefaultSampleType ¶
func (*Profile) GetDropFrames ¶
func (*Profile) GetDurationNanos ¶
func (*Profile) GetFunction ¶
func (*Profile) GetKeepFrames ¶
func (*Profile) GetLocation ¶
func (*Profile) GetMapping ¶
func (*Profile) GetPeriodType ¶
func (*Profile) GetSampleType ¶
func (*Profile) GetStringTable ¶
func (*Profile) GetTimeNanos ¶
func (*Profile) ProtoMessage ¶
func (*Profile) ProtoMessage()
func (*Profile) ProtoReflect ¶
func (x *Profile) ProtoReflect() protoreflect.Message
type ProfileAnalysisClient ¶
type ProfileAnalysisClient interface { // Starts a profiling session, blocks until it completes. // TPUProfileAnalysis service delegate this to TPUProfiler service. // Populate the profiled data in repository, then return status to caller. NewSession(ctx context.Context, in *NewProfileSessionRequest, opts ...grpc.CallOption) (*NewProfileSessionResponse, error) // Enumerate existing sessions and return available profile tools. EnumSessions(ctx context.Context, in *EnumProfileSessionsAndToolsRequest, opts ...grpc.CallOption) (*EnumProfileSessionsAndToolsResponse, error) // Retrieve specific tool's data for specific session. GetSessionToolData(ctx context.Context, in *ProfileSessionDataRequest, opts ...grpc.CallOption) (*ProfileSessionDataResponse, error) }
ProfileAnalysisClient is the client API for ProfileAnalysis service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewProfileAnalysisClient ¶
func NewProfileAnalysisClient(cc grpc.ClientConnInterface) ProfileAnalysisClient
type ProfileAnalysisServer ¶
type ProfileAnalysisServer interface { // Starts a profiling session, blocks until it completes. // TPUProfileAnalysis service delegate this to TPUProfiler service. // Populate the profiled data in repository, then return status to caller. NewSession(context.Context, *NewProfileSessionRequest) (*NewProfileSessionResponse, error) // Enumerate existing sessions and return available profile tools. EnumSessions(context.Context, *EnumProfileSessionsAndToolsRequest) (*EnumProfileSessionsAndToolsResponse, error) // Retrieve specific tool's data for specific session. GetSessionToolData(context.Context, *ProfileSessionDataRequest) (*ProfileSessionDataResponse, error) // contains filtered or unexported methods }
ProfileAnalysisServer is the server API for ProfileAnalysis service. All implementations must embed UnimplementedProfileAnalysisServer for forward compatibility
type ProfileNode ¶
type ProfileNode struct { // graph node name. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // graph operation type. Op string `protobuf:"bytes,9,opt,name=op,proto3" json:"op,omitempty"` // A unique id for the node. Id int64 `protobuf:"varint,13,opt,name=id,proto3" json:"id,omitempty"` Inputs map[int32]int64 `` /* 155-byte string literal not displayed */ InputShapes map[int32]*Tuple `` /* 184-byte string literal not displayed */ Outputs map[int32]int64 `` /* 157-byte string literal not displayed */ OutputShapes map[int32]*Tuple `` /* 187-byte string literal not displayed */ // A map from source node id to its output index to current node. SrcOutputIndex map[int64]int32 `` /* 196-byte string literal not displayed */ Shape []int64 `protobuf:"varint,4,rep,packed,name=shape,proto3" json:"shape,omitempty"` OpTypes []string `protobuf:"bytes,5,rep,name=op_types,json=opTypes,proto3" json:"op_types,omitempty"` CanonicalDevice string `protobuf:"bytes,6,opt,name=canonical_device,json=canonicalDevice,proto3" json:"canonical_device,omitempty"` HostDevice string `protobuf:"bytes,7,opt,name=host_device,json=hostDevice,proto3" json:"host_device,omitempty"` FloatOps int64 `protobuf:"varint,8,opt,name=float_ops,json=floatOps,proto3" json:"float_ops,omitempty"` Trace *CodeDef `protobuf:"bytes,10,opt,name=trace,proto3" json:"trace,omitempty"` Attrs map[string]*framework.AttrValue `` /* 152-byte string literal not displayed */ Execs map[int64]*ExecProfile `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ProfileNode) Descriptor
deprecated
func (*ProfileNode) Descriptor() ([]byte, []int)
Deprecated: Use ProfileNode.ProtoReflect.Descriptor instead.
func (*ProfileNode) GetCanonicalDevice ¶
func (x *ProfileNode) GetCanonicalDevice() string
func (*ProfileNode) GetExecs ¶
func (x *ProfileNode) GetExecs() map[int64]*ExecProfile
func (*ProfileNode) GetFloatOps ¶
func (x *ProfileNode) GetFloatOps() int64
func (*ProfileNode) GetHostDevice ¶
func (x *ProfileNode) GetHostDevice() string
func (*ProfileNode) GetId ¶
func (x *ProfileNode) GetId() int64
func (*ProfileNode) GetInputShapes ¶
func (x *ProfileNode) GetInputShapes() map[int32]*Tuple
func (*ProfileNode) GetInputs ¶
func (x *ProfileNode) GetInputs() map[int32]int64
func (*ProfileNode) GetName ¶
func (x *ProfileNode) GetName() string
func (*ProfileNode) GetOp ¶
func (x *ProfileNode) GetOp() string
func (*ProfileNode) GetOpTypes ¶
func (x *ProfileNode) GetOpTypes() []string
func (*ProfileNode) GetOutputShapes ¶
func (x *ProfileNode) GetOutputShapes() map[int32]*Tuple
func (*ProfileNode) GetOutputs ¶
func (x *ProfileNode) GetOutputs() map[int32]int64
func (*ProfileNode) GetShape ¶
func (x *ProfileNode) GetShape() []int64
func (*ProfileNode) GetSrcOutputIndex ¶
func (x *ProfileNode) GetSrcOutputIndex() map[int64]int32
func (*ProfileNode) GetTrace ¶
func (x *ProfileNode) GetTrace() *CodeDef
func (*ProfileNode) ProtoMessage ¶
func (*ProfileNode) ProtoMessage()
func (*ProfileNode) ProtoReflect ¶
func (x *ProfileNode) ProtoReflect() protoreflect.Message
func (*ProfileNode) Reset ¶
func (x *ProfileNode) Reset()
func (*ProfileNode) String ¶
func (x *ProfileNode) String() string
type ProfileOptions ¶
type ProfileOptions struct { // Some default value of option are not proto3 default value. Use this version // to determine if we should use default option value instead of proto3 // default value. Version uint32 `protobuf:"varint,5,opt,name=version,proto3" json:"version,omitempty"` // Device type to profile/trace: (version >= 1) // DeviceType::UNSPECIFIED: All registered device profiler will be enabled. // DeviceType::CPU: only CPU will be profiled. // DeviceType::GPU: only CPU/GPU will be profiled. // DeviceType::TPU: only CPU/TPU will be profiled. // DeviceType::PLUGGABLE_DEVICE: only CPU/pluggable devices with profilers // will be profiled. DeviceType ProfileOptions_DeviceType `` /* 134-byte string literal not displayed */ // We don't collect the dataset ops by default for better trace-viewer // scalability. The caller can mannually set this field to include the ops. IncludeDatasetOps bool `protobuf:"varint,1,opt,name=include_dataset_ops,json=includeDatasetOps,proto3" json:"include_dataset_ops,omitempty"` // Levels of host tracing: (version >= 1) // - Level 0 is used to disable host traces. // - Level 1 enables tracing of only user instrumented (or default) TraceMe. // - Level 2 enables tracing of all level 1 TraceMe(s) and instrumented high // level program execution details (expensive TF ops, XLA ops, etc). // This is the default. // - Level 3 enables tracing of all level 2 TraceMe(s) and more verbose // (low-level) program execution details (cheap TF ops, etc). HostTracerLevel uint32 `protobuf:"varint,2,opt,name=host_tracer_level,json=hostTracerLevel,proto3" json:"host_tracer_level,omitempty"` // Levels of device tracing: (version >= 1) // - Level 0 is used to disable device traces. // - Level 1 is used to enable device traces. // - More levels might be defined for specific device for controlling the // verbosity of the trace. DeviceTracerLevel uint32 `protobuf:"varint,3,opt,name=device_tracer_level,json=deviceTracerLevel,proto3" json:"device_tracer_level,omitempty"` // Whether enable python function calls tracing. Runtime overhead ensues if // enabled. Default off. (version >= 1) PythonTracerLevel uint32 `protobuf:"varint,4,opt,name=python_tracer_level,json=pythonTracerLevel,proto3" json:"python_tracer_level,omitempty"` // Whether serialize hlo_proto when XLA is used. (version >= 1) EnableHloProto bool `protobuf:"varint,7,opt,name=enable_hlo_proto,json=enableHloProto,proto3" json:"enable_hlo_proto,omitempty"` // The local profiler starts profiling at this Unix timestamp in nanoseconds. StartTimestampNs uint64 `protobuf:"varint,8,opt,name=start_timestamp_ns,json=startTimestampNs,proto3" json:"start_timestamp_ns,omitempty"` // The local profiler collects `duration_ms` milliseconds of data. If the // value is 0, profiling continues until interrupted. DurationMs uint64 `protobuf:"varint,9,opt,name=duration_ms,json=durationMs,proto3" json:"duration_ms,omitempty"` // Directory to save profile data to. No-op when empty. RepositoryPath string `protobuf:"bytes,10,opt,name=repository_path,json=repositoryPath,proto3" json:"repository_path,omitempty"` // contains filtered or unexported fields }
Next ID: 11
func (*ProfileOptions) Descriptor
deprecated
func (*ProfileOptions) Descriptor() ([]byte, []int)
Deprecated: Use ProfileOptions.ProtoReflect.Descriptor instead.
func (*ProfileOptions) GetDeviceTracerLevel ¶
func (x *ProfileOptions) GetDeviceTracerLevel() uint32
func (*ProfileOptions) GetDeviceType ¶
func (x *ProfileOptions) GetDeviceType() ProfileOptions_DeviceType
func (*ProfileOptions) GetDurationMs ¶
func (x *ProfileOptions) GetDurationMs() uint64
func (*ProfileOptions) GetEnableHloProto ¶
func (x *ProfileOptions) GetEnableHloProto() bool
func (*ProfileOptions) GetHostTracerLevel ¶
func (x *ProfileOptions) GetHostTracerLevel() uint32
func (*ProfileOptions) GetIncludeDatasetOps ¶
func (x *ProfileOptions) GetIncludeDatasetOps() bool
func (*ProfileOptions) GetPythonTracerLevel ¶
func (x *ProfileOptions) GetPythonTracerLevel() uint32
func (*ProfileOptions) GetRepositoryPath ¶
func (x *ProfileOptions) GetRepositoryPath() string
func (*ProfileOptions) GetStartTimestampNs ¶
func (x *ProfileOptions) GetStartTimestampNs() uint64
func (*ProfileOptions) GetVersion ¶
func (x *ProfileOptions) GetVersion() uint32
func (*ProfileOptions) ProtoMessage ¶
func (*ProfileOptions) ProtoMessage()
func (*ProfileOptions) ProtoReflect ¶
func (x *ProfileOptions) ProtoReflect() protoreflect.Message
func (*ProfileOptions) Reset ¶
func (x *ProfileOptions) Reset()
func (*ProfileOptions) String ¶
func (x *ProfileOptions) String() string
type ProfileOptions_DeviceType ¶
type ProfileOptions_DeviceType int32
const ( ProfileOptions_UNSPECIFIED ProfileOptions_DeviceType = 0 ProfileOptions_CPU ProfileOptions_DeviceType = 1 ProfileOptions_GPU ProfileOptions_DeviceType = 2 ProfileOptions_TPU ProfileOptions_DeviceType = 3 ProfileOptions_PLUGGABLE_DEVICE ProfileOptions_DeviceType = 4 )
func (ProfileOptions_DeviceType) Descriptor ¶
func (ProfileOptions_DeviceType) Descriptor() protoreflect.EnumDescriptor
func (ProfileOptions_DeviceType) Enum ¶
func (x ProfileOptions_DeviceType) Enum() *ProfileOptions_DeviceType
func (ProfileOptions_DeviceType) EnumDescriptor
deprecated
func (ProfileOptions_DeviceType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProfileOptions_DeviceType.Descriptor instead.
func (ProfileOptions_DeviceType) Number ¶
func (x ProfileOptions_DeviceType) Number() protoreflect.EnumNumber
func (ProfileOptions_DeviceType) String ¶
func (x ProfileOptions_DeviceType) String() string
func (ProfileOptions_DeviceType) Type ¶
func (ProfileOptions_DeviceType) Type() protoreflect.EnumType
type ProfileProto ¶
type ProfileProto struct { Nodes map[int64]*ProfileNode `` /* 152-byte string literal not displayed */ // Whether or not has code traces. HasTrace bool `protobuf:"varint,2,opt,name=has_trace,json=hasTrace,proto3" json:"has_trace,omitempty"` // Whether or not the TF device tracer fails to return accelerator // information (which could lead to 0 accelerator execution time). MissAcceleratorStream bool `` /* 127-byte string literal not displayed */ // Traced steps. Steps []int64 `protobuf:"varint,3,rep,packed,name=steps,proto3" json:"steps,omitempty"` // Maps from id of CodeDef file,function,line to its string // In the future can also map other id of other fields to string. IdToString map[int64]string `` /* 182-byte string literal not displayed */ // contains filtered or unexported fields }
A proto representation of the profiler's profile. It allows serialization, shipping around and deserialization of the profiles.
Please don't depend on the internals of the profile proto.
func (*ProfileProto) Descriptor
deprecated
func (*ProfileProto) Descriptor() ([]byte, []int)
Deprecated: Use ProfileProto.ProtoReflect.Descriptor instead.
func (*ProfileProto) GetHasTrace ¶
func (x *ProfileProto) GetHasTrace() bool
func (*ProfileProto) GetIdToString ¶
func (x *ProfileProto) GetIdToString() map[int64]string
func (*ProfileProto) GetMissAcceleratorStream ¶
func (x *ProfileProto) GetMissAcceleratorStream() bool
func (*ProfileProto) GetNodes ¶
func (x *ProfileProto) GetNodes() map[int64]*ProfileNode
func (*ProfileProto) GetSteps ¶
func (x *ProfileProto) GetSteps() []int64
func (*ProfileProto) ProtoMessage ¶
func (*ProfileProto) ProtoMessage()
func (*ProfileProto) ProtoReflect ¶
func (x *ProfileProto) ProtoReflect() protoreflect.Message
func (*ProfileProto) Reset ¶
func (x *ProfileProto) Reset()
func (*ProfileProto) String ¶
func (x *ProfileProto) String() string
type ProfileRequest ¶
type ProfileRequest struct { // In future, the caller will be able to customize when profiling starts and // stops. For now, it collects `duration_ms` milliseconds worth of data. DurationMs uint64 `protobuf:"varint,1,opt,name=duration_ms,json=durationMs,proto3" json:"duration_ms,omitempty"` // The maximum number of events to return. By default (value 0), return all // events. MaxEvents uint64 `protobuf:"varint,2,opt,name=max_events,json=maxEvents,proto3" json:"max_events,omitempty"` // Required profiling tools name such as "input_pipeline_analyzer" etc Tools []string `protobuf:"bytes,3,rep,name=tools,proto3" json:"tools,omitempty"` // Specifies the requirement for each tools. ToolOptions map[string]*ToolRequestOptions `` /* 182-byte string literal not displayed */ // Optional profiling options that control how a TF session will be profiled. Opts *ProfileOptions `protobuf:"bytes,4,opt,name=opts,proto3" json:"opts,omitempty"` // The place where we will dump profile data. We will normally use // MODEL_DIR/plugins/profile/ as the repository root. RepositoryRoot string `protobuf:"bytes,5,opt,name=repository_root,json=repositoryRoot,proto3" json:"repository_root,omitempty"` // The user provided profile session identifier. SessionId string `protobuf:"bytes,6,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // The hostname of system where the profile should happen. // We use it as identifier in part of our output filename. HostName string `protobuf:"bytes,7,opt,name=host_name,json=hostName,proto3" json:"host_name,omitempty"` // contains filtered or unexported fields }
Next-ID: 9
func (*ProfileRequest) Descriptor
deprecated
func (*ProfileRequest) Descriptor() ([]byte, []int)
Deprecated: Use ProfileRequest.ProtoReflect.Descriptor instead.
func (*ProfileRequest) GetDurationMs ¶
func (x *ProfileRequest) GetDurationMs() uint64
func (*ProfileRequest) GetHostName ¶
func (x *ProfileRequest) GetHostName() string
func (*ProfileRequest) GetMaxEvents ¶
func (x *ProfileRequest) GetMaxEvents() uint64
func (*ProfileRequest) GetOpts ¶
func (x *ProfileRequest) GetOpts() *ProfileOptions
func (*ProfileRequest) GetRepositoryRoot ¶
func (x *ProfileRequest) GetRepositoryRoot() string
func (*ProfileRequest) GetSessionId ¶
func (x *ProfileRequest) GetSessionId() string
func (*ProfileRequest) GetToolOptions ¶
func (x *ProfileRequest) GetToolOptions() map[string]*ToolRequestOptions
func (*ProfileRequest) GetTools ¶
func (x *ProfileRequest) GetTools() []string
func (*ProfileRequest) ProtoMessage ¶
func (*ProfileRequest) ProtoMessage()
func (*ProfileRequest) ProtoReflect ¶
func (x *ProfileRequest) ProtoReflect() protoreflect.Message
func (*ProfileRequest) Reset ¶
func (x *ProfileRequest) Reset()
func (*ProfileRequest) String ¶
func (x *ProfileRequest) String() string
type ProfileResponse ¶
type ProfileResponse struct { // Data payload for each required tools. ToolData []*ProfileToolData `protobuf:"bytes,6,rep,name=tool_data,json=toolData,proto3" json:"tool_data,omitempty"` // When we write profiling data directly to repository directory, we need a // way to figure out whether the captured trace is empty. EmptyTrace bool `protobuf:"varint,7,opt,name=empty_trace,json=emptyTrace,proto3" json:"empty_trace,omitempty"` // contains filtered or unexported fields }
Next-ID: 8
func (*ProfileResponse) Descriptor
deprecated
func (*ProfileResponse) Descriptor() ([]byte, []int)
Deprecated: Use ProfileResponse.ProtoReflect.Descriptor instead.
func (*ProfileResponse) GetEmptyTrace ¶
func (x *ProfileResponse) GetEmptyTrace() bool
func (*ProfileResponse) GetToolData ¶
func (x *ProfileResponse) GetToolData() []*ProfileToolData
func (*ProfileResponse) ProtoMessage ¶
func (*ProfileResponse) ProtoMessage()
func (*ProfileResponse) ProtoReflect ¶
func (x *ProfileResponse) ProtoReflect() protoreflect.Message
func (*ProfileResponse) Reset ¶
func (x *ProfileResponse) Reset()
func (*ProfileResponse) String ¶
func (x *ProfileResponse) String() string
type ProfileSessionDataRequest ¶
type ProfileSessionDataRequest struct { // The place where we will read profile data. We will normally use // MODEL_DIR/plugins/profile as the repository root. RepositoryRoot string `protobuf:"bytes,1,opt,name=repository_root,json=repositoryRoot,proto3" json:"repository_root,omitempty"` SessionId string `protobuf:"bytes,2,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // Which host the data is associated. if empty, data from all hosts are // aggregated. HostName string `protobuf:"bytes,5,opt,name=host_name,json=hostName,proto3" json:"host_name,omitempty"` // Which tool ToolName string `protobuf:"bytes,3,opt,name=tool_name,json=toolName,proto3" json:"tool_name,omitempty"` // Tool's specific parameters. e.g. TraceViewer's viewport etc Parameters map[string]string `` /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ProfileSessionDataRequest) Descriptor
deprecated
func (*ProfileSessionDataRequest) Descriptor() ([]byte, []int)
Deprecated: Use ProfileSessionDataRequest.ProtoReflect.Descriptor instead.
func (*ProfileSessionDataRequest) GetHostName ¶
func (x *ProfileSessionDataRequest) GetHostName() string
func (*ProfileSessionDataRequest) GetParameters ¶
func (x *ProfileSessionDataRequest) GetParameters() map[string]string
func (*ProfileSessionDataRequest) GetRepositoryRoot ¶
func (x *ProfileSessionDataRequest) GetRepositoryRoot() string
func (*ProfileSessionDataRequest) GetSessionId ¶
func (x *ProfileSessionDataRequest) GetSessionId() string
func (*ProfileSessionDataRequest) GetToolName ¶
func (x *ProfileSessionDataRequest) GetToolName() string
func (*ProfileSessionDataRequest) ProtoMessage ¶
func (*ProfileSessionDataRequest) ProtoMessage()
func (*ProfileSessionDataRequest) ProtoReflect ¶
func (x *ProfileSessionDataRequest) ProtoReflect() protoreflect.Message
func (*ProfileSessionDataRequest) Reset ¶
func (x *ProfileSessionDataRequest) Reset()
func (*ProfileSessionDataRequest) String ¶
func (x *ProfileSessionDataRequest) String() string
type ProfileSessionDataResponse ¶
type ProfileSessionDataResponse struct { // Auxiliary error_message. ErrorMessage string `protobuf:"bytes,1,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` // Output format. e.g. "json" or "proto" or "blob" OutputFormat string `protobuf:"bytes,2,opt,name=output_format,json=outputFormat,proto3" json:"output_format,omitempty"` // TODO(jiesun): figure out whether to put bytes or oneof tool specific proto. Output []byte `protobuf:"bytes,3,opt,name=output,proto3" json:"output,omitempty"` // contains filtered or unexported fields }
func (*ProfileSessionDataResponse) Descriptor
deprecated
func (*ProfileSessionDataResponse) Descriptor() ([]byte, []int)
Deprecated: Use ProfileSessionDataResponse.ProtoReflect.Descriptor instead.
func (*ProfileSessionDataResponse) GetErrorMessage ¶
func (x *ProfileSessionDataResponse) GetErrorMessage() string
func (*ProfileSessionDataResponse) GetOutput ¶
func (x *ProfileSessionDataResponse) GetOutput() []byte
func (*ProfileSessionDataResponse) GetOutputFormat ¶
func (x *ProfileSessionDataResponse) GetOutputFormat() string
func (*ProfileSessionDataResponse) ProtoMessage ¶
func (*ProfileSessionDataResponse) ProtoMessage()
func (*ProfileSessionDataResponse) ProtoReflect ¶
func (x *ProfileSessionDataResponse) ProtoReflect() protoreflect.Message
func (*ProfileSessionDataResponse) Reset ¶
func (x *ProfileSessionDataResponse) Reset()
func (*ProfileSessionDataResponse) String ¶
func (x *ProfileSessionDataResponse) String() string
type ProfileSessionInfo ¶
type ProfileSessionInfo struct { SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // Which tool data is available for consumption. AvailableTools []string `protobuf:"bytes,2,rep,name=available_tools,json=availableTools,proto3" json:"available_tools,omitempty"` // contains filtered or unexported fields }
func (*ProfileSessionInfo) Descriptor
deprecated
func (*ProfileSessionInfo) Descriptor() ([]byte, []int)
Deprecated: Use ProfileSessionInfo.ProtoReflect.Descriptor instead.
func (*ProfileSessionInfo) GetAvailableTools ¶
func (x *ProfileSessionInfo) GetAvailableTools() []string
func (*ProfileSessionInfo) GetSessionId ¶
func (x *ProfileSessionInfo) GetSessionId() string
func (*ProfileSessionInfo) ProtoMessage ¶
func (*ProfileSessionInfo) ProtoMessage()
func (*ProfileSessionInfo) ProtoReflect ¶
func (x *ProfileSessionInfo) ProtoReflect() protoreflect.Message
func (*ProfileSessionInfo) Reset ¶
func (x *ProfileSessionInfo) Reset()
func (*ProfileSessionInfo) String ¶
func (x *ProfileSessionInfo) String() string
type ProfileToolData ¶
type ProfileToolData struct { // The file name which this data is associated (e.g. "input_pipeline.json", // "cluster_xxx.memory_viewer.json"). Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The data payload (likely json) for the specific tool. Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ProfileToolData) Descriptor
deprecated
func (*ProfileToolData) Descriptor() ([]byte, []int)
Deprecated: Use ProfileToolData.ProtoReflect.Descriptor instead.
func (*ProfileToolData) GetData ¶
func (x *ProfileToolData) GetData() []byte
func (*ProfileToolData) GetName ¶
func (x *ProfileToolData) GetName() string
func (*ProfileToolData) ProtoMessage ¶
func (*ProfileToolData) ProtoMessage()
func (*ProfileToolData) ProtoReflect ¶
func (x *ProfileToolData) ProtoReflect() protoreflect.Message
func (*ProfileToolData) Reset ¶
func (x *ProfileToolData) Reset()
func (*ProfileToolData) String ¶
func (x *ProfileToolData) String() string
type ProfilerServiceClient ¶
type ProfilerServiceClient interface { // Starts a profiling session, blocks until it completes, and returns data. Profile(ctx context.Context, in *ProfileRequest, opts ...grpc.CallOption) (*ProfileResponse, error) // Signal to terminate the Profile rpc for a on-going profiling session, // The Profile rpc will return successfully and prematurely without timeout. // This is used by programmatic mode to end the session in workers. Terminate(ctx context.Context, in *TerminateRequest, opts ...grpc.CallOption) (*TerminateResponse, error) // Collects profiling data and returns user-friendly metrics. Monitor(ctx context.Context, in *MonitorRequest, opts ...grpc.CallOption) (*MonitorResponse, error) }
ProfilerServiceClient is the client API for ProfilerService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewProfilerServiceClient ¶
func NewProfilerServiceClient(cc grpc.ClientConnInterface) ProfilerServiceClient
type ProfilerServiceMonitorResult ¶
type ProfilerServiceMonitorResult struct { // Type of profiling responses. ResponseType ProfilerServiceMonitorResult_ResponseType `` /* 156-byte string literal not displayed */ // Percentage of time when device is idle. DeviceIdleTimePercent float64 `` /* 130-byte string literal not displayed */ // TPU matrix unit utilization percentage. MatrixUnitUtilizationPercent float64 `` /* 151-byte string literal not displayed */ // Average step time in millisecond. StepTimeMsAvg float64 `protobuf:"fixed64,4,opt,name=step_time_ms_avg,json=stepTimeMsAvg,proto3" json:"step_time_ms_avg,omitempty"` // Minimum step time in millisecond. StepTimeMsMin float64 `protobuf:"fixed64,5,opt,name=step_time_ms_min,json=stepTimeMsMin,proto3" json:"step_time_ms_min,omitempty"` // Maximum step time in millisecond. StepTimeMsMax float64 `protobuf:"fixed64,6,opt,name=step_time_ms_max,json=stepTimeMsMax,proto3" json:"step_time_ms_max,omitempty"` // Average infeed percentage. InfeedPercentAvg float64 `protobuf:"fixed64,7,opt,name=infeed_percent_avg,json=infeedPercentAvg,proto3" json:"infeed_percent_avg,omitempty"` // Minimum infeed percentage. InfeedPercentMin float64 `protobuf:"fixed64,8,opt,name=infeed_percent_min,json=infeedPercentMin,proto3" json:"infeed_percent_min,omitempty"` // Maximum infeed percentage. InfeedPercentMax float64 `protobuf:"fixed64,9,opt,name=infeed_percent_max,json=infeedPercentMax,proto3" json:"infeed_percent_max,omitempty"` // contains filtered or unexported fields }
func (*ProfilerServiceMonitorResult) Descriptor
deprecated
func (*ProfilerServiceMonitorResult) Descriptor() ([]byte, []int)
Deprecated: Use ProfilerServiceMonitorResult.ProtoReflect.Descriptor instead.
func (*ProfilerServiceMonitorResult) GetDeviceIdleTimePercent ¶
func (x *ProfilerServiceMonitorResult) GetDeviceIdleTimePercent() float64
func (*ProfilerServiceMonitorResult) GetInfeedPercentAvg ¶
func (x *ProfilerServiceMonitorResult) GetInfeedPercentAvg() float64
func (*ProfilerServiceMonitorResult) GetInfeedPercentMax ¶
func (x *ProfilerServiceMonitorResult) GetInfeedPercentMax() float64
func (*ProfilerServiceMonitorResult) GetInfeedPercentMin ¶
func (x *ProfilerServiceMonitorResult) GetInfeedPercentMin() float64
func (*ProfilerServiceMonitorResult) GetMatrixUnitUtilizationPercent ¶
func (x *ProfilerServiceMonitorResult) GetMatrixUnitUtilizationPercent() float64
func (*ProfilerServiceMonitorResult) GetResponseType ¶
func (x *ProfilerServiceMonitorResult) GetResponseType() ProfilerServiceMonitorResult_ResponseType
func (*ProfilerServiceMonitorResult) GetStepTimeMsAvg ¶
func (x *ProfilerServiceMonitorResult) GetStepTimeMsAvg() float64
func (*ProfilerServiceMonitorResult) GetStepTimeMsMax ¶
func (x *ProfilerServiceMonitorResult) GetStepTimeMsMax() float64
func (*ProfilerServiceMonitorResult) GetStepTimeMsMin ¶
func (x *ProfilerServiceMonitorResult) GetStepTimeMsMin() float64
func (*ProfilerServiceMonitorResult) ProtoMessage ¶
func (*ProfilerServiceMonitorResult) ProtoMessage()
func (*ProfilerServiceMonitorResult) ProtoReflect ¶
func (x *ProfilerServiceMonitorResult) ProtoReflect() protoreflect.Message
func (*ProfilerServiceMonitorResult) Reset ¶
func (x *ProfilerServiceMonitorResult) Reset()
func (*ProfilerServiceMonitorResult) String ¶
func (x *ProfilerServiceMonitorResult) String() string
type ProfilerServiceMonitorResult_ResponseType ¶
type ProfilerServiceMonitorResult_ResponseType int32
Represents the different types of responses from the profiling service.
const ( // No result is returned from the profiling service. ProfilerServiceMonitorResult_EMPTY_RESULT ProfilerServiceMonitorResult_ResponseType = 0 // Only device utilization is available. ProfilerServiceMonitorResult_UTIL_ONLY ProfilerServiceMonitorResult_ResponseType = 1 // Both device utilization and device idle time are available. ProfilerServiceMonitorResult_UTIL_IDLE ProfilerServiceMonitorResult_ResponseType = 2 // Device utilization, device idle time, step time, and infeed percentage // are all available. ProfilerServiceMonitorResult_UTIL_IDLE_STEP ProfilerServiceMonitorResult_ResponseType = 3 )
func (ProfilerServiceMonitorResult_ResponseType) Descriptor ¶
func (ProfilerServiceMonitorResult_ResponseType) Descriptor() protoreflect.EnumDescriptor
func (ProfilerServiceMonitorResult_ResponseType) EnumDescriptor
deprecated
func (ProfilerServiceMonitorResult_ResponseType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProfilerServiceMonitorResult_ResponseType.Descriptor instead.
func (ProfilerServiceMonitorResult_ResponseType) Number ¶
func (x ProfilerServiceMonitorResult_ResponseType) Number() protoreflect.EnumNumber
func (ProfilerServiceMonitorResult_ResponseType) String ¶
func (x ProfilerServiceMonitorResult_ResponseType) String() string
func (ProfilerServiceMonitorResult_ResponseType) Type ¶
func (ProfilerServiceMonitorResult_ResponseType) Type() protoreflect.EnumType
type ProfilerServiceServer ¶
type ProfilerServiceServer interface { // Starts a profiling session, blocks until it completes, and returns data. Profile(context.Context, *ProfileRequest) (*ProfileResponse, error) // Signal to terminate the Profile rpc for a on-going profiling session, // The Profile rpc will return successfully and prematurely without timeout. // This is used by programmatic mode to end the session in workers. Terminate(context.Context, *TerminateRequest) (*TerminateResponse, error) // Collects profiling data and returns user-friendly metrics. Monitor(context.Context, *MonitorRequest) (*MonitorResponse, error) // contains filtered or unexported methods }
ProfilerServiceServer is the server API for ProfilerService service. All implementations must embed UnimplementedProfilerServiceServer for forward compatibility
type RemoteProfilerSessionManagerOptions ¶
type RemoteProfilerSessionManagerOptions struct { // Options for each local profiler. ProfilerOptions *ProfileOptions `protobuf:"bytes,1,opt,name=profiler_options,json=profilerOptions,proto3" json:"profiler_options,omitempty"` // List of servers to profile. Supported formats: host:port. ServiceAddresses []string `protobuf:"bytes,2,rep,name=service_addresses,json=serviceAddresses,proto3" json:"service_addresses,omitempty"` // Unix timestamp of when the session was started. SessionCreationTimestampNs uint64 `` /* 144-byte string literal not displayed */ // Maximum time (in milliseconds) a profiling session manager waits for all // profilers to finish after issuing gRPC request. If value is 0, session // continues until interrupted. Otherwise, value must be greater than // profiler_options.duration_ms. MaxSessionDurationMs uint64 `` /* 126-byte string literal not displayed */ // Start of profiling is delayed by this much (in milliseconds). DelayMs uint64 `protobuf:"varint,5,opt,name=delay_ms,json=delayMs,proto3" json:"delay_ms,omitempty"` // contains filtered or unexported fields }
Options for remote profiler session manager. Next ID: 6
func (*RemoteProfilerSessionManagerOptions) Descriptor
deprecated
func (*RemoteProfilerSessionManagerOptions) Descriptor() ([]byte, []int)
Deprecated: Use RemoteProfilerSessionManagerOptions.ProtoReflect.Descriptor instead.
func (*RemoteProfilerSessionManagerOptions) GetDelayMs ¶
func (x *RemoteProfilerSessionManagerOptions) GetDelayMs() uint64
func (*RemoteProfilerSessionManagerOptions) GetMaxSessionDurationMs ¶
func (x *RemoteProfilerSessionManagerOptions) GetMaxSessionDurationMs() uint64
func (*RemoteProfilerSessionManagerOptions) GetProfilerOptions ¶
func (x *RemoteProfilerSessionManagerOptions) GetProfilerOptions() *ProfileOptions
func (*RemoteProfilerSessionManagerOptions) GetServiceAddresses ¶
func (x *RemoteProfilerSessionManagerOptions) GetServiceAddresses() []string
func (*RemoteProfilerSessionManagerOptions) GetSessionCreationTimestampNs ¶
func (x *RemoteProfilerSessionManagerOptions) GetSessionCreationTimestampNs() uint64
func (*RemoteProfilerSessionManagerOptions) ProtoMessage ¶
func (*RemoteProfilerSessionManagerOptions) ProtoMessage()
func (*RemoteProfilerSessionManagerOptions) ProtoReflect ¶
func (x *RemoteProfilerSessionManagerOptions) ProtoReflect() protoreflect.Message
func (*RemoteProfilerSessionManagerOptions) Reset ¶
func (x *RemoteProfilerSessionManagerOptions) Reset()
func (*RemoteProfilerSessionManagerOptions) String ¶
func (x *RemoteProfilerSessionManagerOptions) String() string
type Sample ¶
type Sample struct { LocationId []uint64 `protobuf:"varint,1,rep,packed,name=location_id,json=locationId,proto3" json:"location_id,omitempty"` Value []int64 `protobuf:"varint,2,rep,packed,name=value,proto3" json:"value,omitempty"` Label []*Label `protobuf:"bytes,3,rep,name=label,proto3" json:"label,omitempty"` // contains filtered or unexported fields }
func (*Sample) Descriptor
deprecated
func (*Sample) GetLocationId ¶
func (*Sample) ProtoMessage ¶
func (*Sample) ProtoMessage()
func (*Sample) ProtoReflect ¶
func (x *Sample) ProtoReflect() protoreflect.Message
type TFProfTensorProto ¶
type TFProfTensorProto struct { Dtype framework.DataType `protobuf:"varint,1,opt,name=dtype,proto3,enum=tensorflow.DataType" json:"dtype,omitempty"` // Flatten tensor in row-major. // Only one of the following array is set. ValueDouble []float64 `protobuf:"fixed64,2,rep,packed,name=value_double,json=valueDouble,proto3" json:"value_double,omitempty"` ValueInt64 []int64 `protobuf:"varint,3,rep,packed,name=value_int64,json=valueInt64,proto3" json:"value_int64,omitempty"` ValueStr []string `protobuf:"bytes,4,rep,name=value_str,json=valueStr,proto3" json:"value_str,omitempty"` // contains filtered or unexported fields }
func (*TFProfTensorProto) Descriptor
deprecated
func (*TFProfTensorProto) Descriptor() ([]byte, []int)
Deprecated: Use TFProfTensorProto.ProtoReflect.Descriptor instead.
func (*TFProfTensorProto) GetDtype ¶
func (x *TFProfTensorProto) GetDtype() framework.DataType
func (*TFProfTensorProto) GetValueDouble ¶
func (x *TFProfTensorProto) GetValueDouble() []float64
func (*TFProfTensorProto) GetValueInt64 ¶
func (x *TFProfTensorProto) GetValueInt64() []int64
func (*TFProfTensorProto) GetValueStr ¶
func (x *TFProfTensorProto) GetValueStr() []string
func (*TFProfTensorProto) ProtoMessage ¶
func (*TFProfTensorProto) ProtoMessage()
func (*TFProfTensorProto) ProtoReflect ¶
func (x *TFProfTensorProto) ProtoReflect() protoreflect.Message
func (*TFProfTensorProto) Reset ¶
func (x *TFProfTensorProto) Reset()
func (*TFProfTensorProto) String ¶
func (x *TFProfTensorProto) String() string
type TerminateRequest ¶
type TerminateRequest struct { // Which session id to terminate. SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // contains filtered or unexported fields }
func (*TerminateRequest) Descriptor
deprecated
func (*TerminateRequest) Descriptor() ([]byte, []int)
Deprecated: Use TerminateRequest.ProtoReflect.Descriptor instead.
func (*TerminateRequest) GetSessionId ¶
func (x *TerminateRequest) GetSessionId() string
func (*TerminateRequest) ProtoMessage ¶
func (*TerminateRequest) ProtoMessage()
func (*TerminateRequest) ProtoReflect ¶
func (x *TerminateRequest) ProtoReflect() protoreflect.Message
func (*TerminateRequest) Reset ¶
func (x *TerminateRequest) Reset()
func (*TerminateRequest) String ¶
func (x *TerminateRequest) String() string
type TerminateResponse ¶
type TerminateResponse struct {
// contains filtered or unexported fields
}
func (*TerminateResponse) Descriptor
deprecated
func (*TerminateResponse) Descriptor() ([]byte, []int)
Deprecated: Use TerminateResponse.ProtoReflect.Descriptor instead.
func (*TerminateResponse) ProtoMessage ¶
func (*TerminateResponse) ProtoMessage()
func (*TerminateResponse) ProtoReflect ¶
func (x *TerminateResponse) ProtoReflect() protoreflect.Message
func (*TerminateResponse) Reset ¶
func (x *TerminateResponse) Reset()
func (*TerminateResponse) String ¶
func (x *TerminateResponse) String() string
type ToolRequestOptions ¶
type ToolRequestOptions struct { // Required formats for the tool, it should be one of "json", "proto", "raw" // etc. If not specified (backward compatible), use default format, i.e. most // tools use json format. OutputFormats string `protobuf:"bytes,2,opt,name=output_formats,json=outputFormats,proto3" json:"output_formats,omitempty"` // Whether save the result directly to repository or pass it back to caller. // Default to false for backward compatibilities. SaveToRepo bool `protobuf:"varint,3,opt,name=save_to_repo,json=saveToRepo,proto3" json:"save_to_repo,omitempty"` // contains filtered or unexported fields }
func (*ToolRequestOptions) Descriptor
deprecated
func (*ToolRequestOptions) Descriptor() ([]byte, []int)
Deprecated: Use ToolRequestOptions.ProtoReflect.Descriptor instead.
func (*ToolRequestOptions) GetOutputFormats ¶
func (x *ToolRequestOptions) GetOutputFormats() string
func (*ToolRequestOptions) GetSaveToRepo ¶
func (x *ToolRequestOptions) GetSaveToRepo() bool
func (*ToolRequestOptions) ProtoMessage ¶
func (*ToolRequestOptions) ProtoMessage()
func (*ToolRequestOptions) ProtoReflect ¶
func (x *ToolRequestOptions) ProtoReflect() protoreflect.Message
func (*ToolRequestOptions) Reset ¶
func (x *ToolRequestOptions) Reset()
func (*ToolRequestOptions) String ¶
func (x *ToolRequestOptions) String() string
type Tuple ¶
type Tuple struct { Int64Values []int64 `protobuf:"varint,1,rep,packed,name=int64_values,json=int64Values,proto3" json:"int64_values,omitempty"` // contains filtered or unexported fields }
func (*Tuple) Descriptor
deprecated
func (*Tuple) GetInt64Values ¶
func (*Tuple) ProtoMessage ¶
func (*Tuple) ProtoMessage()
func (*Tuple) ProtoReflect ¶
func (x *Tuple) ProtoReflect() protoreflect.Message
type UnimplementedProfileAnalysisServer ¶
type UnimplementedProfileAnalysisServer struct { }
UnimplementedProfileAnalysisServer must be embedded to have forward compatible implementations.
func (UnimplementedProfileAnalysisServer) EnumSessions ¶
func (UnimplementedProfileAnalysisServer) EnumSessions(context.Context, *EnumProfileSessionsAndToolsRequest) (*EnumProfileSessionsAndToolsResponse, error)
func (UnimplementedProfileAnalysisServer) GetSessionToolData ¶
func (UnimplementedProfileAnalysisServer) GetSessionToolData(context.Context, *ProfileSessionDataRequest) (*ProfileSessionDataResponse, error)
func (UnimplementedProfileAnalysisServer) NewSession ¶
func (UnimplementedProfileAnalysisServer) NewSession(context.Context, *NewProfileSessionRequest) (*NewProfileSessionResponse, error)
type UnimplementedProfilerServiceServer ¶
type UnimplementedProfilerServiceServer struct { }
UnimplementedProfilerServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedProfilerServiceServer) Monitor ¶
func (UnimplementedProfilerServiceServer) Monitor(context.Context, *MonitorRequest) (*MonitorResponse, error)
func (UnimplementedProfilerServiceServer) Profile ¶
func (UnimplementedProfilerServiceServer) Profile(context.Context, *ProfileRequest) (*ProfileResponse, error)
func (UnimplementedProfilerServiceServer) Terminate ¶
func (UnimplementedProfilerServiceServer) Terminate(context.Context, *TerminateRequest) (*TerminateResponse, error)
type UnsafeProfileAnalysisServer ¶
type UnsafeProfileAnalysisServer interface {
// contains filtered or unexported methods
}
UnsafeProfileAnalysisServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProfileAnalysisServer will result in compilation errors.
type UnsafeProfilerServiceServer ¶
type UnsafeProfilerServiceServer interface {
// contains filtered or unexported methods
}
UnsafeProfilerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProfilerServiceServer will result in compilation errors.
type ValueType ¶
type ValueType struct { Type int64 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"` Unit int64 `protobuf:"varint,2,opt,name=unit,proto3" json:"unit,omitempty"` // contains filtered or unexported fields }
func (*ValueType) Descriptor
deprecated
func (*ValueType) ProtoMessage ¶
func (*ValueType) ProtoMessage()
func (*ValueType) ProtoReflect ¶
func (x *ValueType) ProtoReflect() protoreflect.Message