profiler

package
v2.14.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2023 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ProfileOptions_CPU = protobuf.ProfileOptions_CPU
View Source
const ProfileOptions_GPU = protobuf.ProfileOptions_GPU
View Source
const ProfileOptions_PLUGGABLE_DEVICE = protobuf.ProfileOptions_PLUGGABLE_DEVICE
View Source
const ProfileOptions_TPU = protobuf.ProfileOptions_TPU
View Source
const ProfileOptions_UNSPECIFIED = protobuf.ProfileOptions_UNSPECIFIED
View Source
const ProfilerServiceMonitorResult_EMPTY_RESULT = protobuf.ProfilerServiceMonitorResult_EMPTY_RESULT
View Source
const ProfilerServiceMonitorResult_UTIL_IDLE = protobuf.ProfilerServiceMonitorResult_UTIL_IDLE
View Source
const ProfilerServiceMonitorResult_UTIL_IDLE_STEP = protobuf.ProfilerServiceMonitorResult_UTIL_IDLE_STEP
View Source
const ProfilerServiceMonitorResult_UTIL_ONLY = protobuf.ProfilerServiceMonitorResult_UTIL_ONLY

Variables

View Source
var File_tensorflow_core_profiler_profile_proto protoreflect.FileDescriptor
View Source
var File_tensorflow_core_profiler_profiler_analysis_proto protoreflect.FileDescriptor
View Source
var File_tensorflow_core_profiler_profiler_options_proto protoreflect.FileDescriptor
View Source
var File_tensorflow_core_profiler_profiler_service_monitor_result_proto protoreflect.FileDescriptor
View Source
var File_tensorflow_core_profiler_profiler_service_proto protoreflect.FileDescriptor
View Source
var File_tensorflow_core_profiler_tfprof_log_proto protoreflect.FileDescriptor
View Source
var File_tensorflow_core_profiler_tfprof_options_proto protoreflect.FileDescriptor
View Source
var File_tensorflow_core_profiler_tfprof_output_proto protoreflect.FileDescriptor
View Source
var ProfileOptions_DeviceType_name = protobuf.ProfileOptions_DeviceType_name
View Source
var ProfileOptions_DeviceType_value = protobuf.ProfileOptions_DeviceType_value
View Source
var ProfilerServiceMonitorResult_ResponseType_name = protobuf.ProfilerServiceMonitorResult_ResponseType_name
View Source
var ProfilerServiceMonitorResult_ResponseType_value = protobuf.ProfilerServiceMonitorResult_ResponseType_value

Functions

This section is empty.

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 (*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 (*AdvisorOptionsProto_CheckerOption) Reset

func (*AdvisorOptionsProto_CheckerOption) 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) Descriptor() ([]byte, []int)

Deprecated: Use CodeDef.ProtoReflect.Descriptor instead.

func (*CodeDef) GetTraces

func (x *CodeDef) GetTraces() []*CodeDef_Trace

func (*CodeDef) ProtoMessage

func (*CodeDef) ProtoMessage()

func (*CodeDef) ProtoReflect

func (x *CodeDef) ProtoReflect() protoreflect.Message

func (*CodeDef) Reset

func (x *CodeDef) Reset()

func (*CodeDef) String

func (x *CodeDef) String() string

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 = protobuf.EnumProfileSessionsAndToolsRequest

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) Descriptor() ([]byte, []int)

Deprecated: Use ExecTime.ProtoReflect.Descriptor instead.

func (*ExecTime) GetTimes

func (x *ExecTime) GetTimes() []*Tuple

func (*ExecTime) ProtoMessage

func (*ExecTime) ProtoMessage()

func (*ExecTime) ProtoReflect

func (x *ExecTime) ProtoReflect() protoreflect.Message

func (*ExecTime) Reset

func (x *ExecTime) Reset()

func (*ExecTime) String

func (x *ExecTime) String() string

type Function

type Function = protobuf.Function

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 = protobuf.Label

type Line

type Line = protobuf.Line

type Location

type Location = protobuf.Location

type Mapping

type Mapping = protobuf.Mapping

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) Descriptor() ([]byte, []int)

Deprecated: Use Memory.ProtoReflect.Descriptor instead.

func (*Memory) GetBytes

func (x *Memory) GetBytes() int64

func (*Memory) GetPtr

func (x *Memory) GetPtr() uint64

func (*Memory) ProtoMessage

func (*Memory) ProtoMessage()

func (*Memory) ProtoReflect

func (x *Memory) ProtoReflect() protoreflect.Message

func (*Memory) Reset

func (x *Memory) Reset()

func (*Memory) String

func (x *Memory) String() string

type MonitorRequest

type MonitorRequest = protobuf.MonitorRequest

type MonitorResponse

type MonitorResponse = protobuf.MonitorResponse

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 = protobuf.NewProfileSessionRequest

type NewProfileSessionResponse

type NewProfileSessionResponse = protobuf.NewProfileSessionResponse

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 = protobuf.Profile

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

func (x *ProfileNode) GetAttrs() map[string]*framework.AttrValue

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 = protobuf.ProfileOptions

type ProfileOptions_DeviceType

type ProfileOptions_DeviceType = protobuf.ProfileOptions_DeviceType

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 = protobuf.ProfileRequest

type ProfileResponse

type ProfileResponse = protobuf.ProfileResponse

type ProfileSessionDataRequest

type ProfileSessionDataRequest = protobuf.ProfileSessionDataRequest

type ProfileSessionDataResponse

type ProfileSessionDataResponse = protobuf.ProfileSessionDataResponse

type ProfileSessionInfo

type ProfileSessionInfo = protobuf.ProfileSessionInfo

type ProfileToolData

type ProfileToolData = protobuf.ProfileToolData

type ProfilerServiceMonitorResult

type ProfilerServiceMonitorResult = protobuf.ProfilerServiceMonitorResult

type Sample

type Sample = protobuf.Sample

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 = protobuf.TerminateRequest

type TerminateResponse

type TerminateResponse = protobuf.TerminateResponse

type ToolRequestOptions

type ToolRequestOptions = protobuf.ToolRequestOptions

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) Descriptor() ([]byte, []int)

Deprecated: Use Tuple.ProtoReflect.Descriptor instead.

func (*Tuple) GetInt64Values

func (x *Tuple) GetInt64Values() []int64

func (*Tuple) ProtoMessage

func (*Tuple) ProtoMessage()

func (*Tuple) ProtoReflect

func (x *Tuple) ProtoReflect() protoreflect.Message

func (*Tuple) Reset

func (x *Tuple) Reset()

func (*Tuple) String

func (x *Tuple) String() string

type ValueType

type ValueType = protobuf.ValueType

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL