profiler

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_tensorflow_core_profiler_profile_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

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: Do not use.
	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: Do not use.
	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: Do not use.
	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: Do not use.

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: Do not use.

func (*CodeDef_Trace) GetFunctionId

func (x *CodeDef_Trace) GetFunctionId() int64

func (*CodeDef_Trace) GetLine deprecated

func (x *CodeDef_Trace) GetLine() string

Deprecated: Do not use.

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

Deprecated: Use Function.ProtoReflect.Descriptor instead.

func (*Function) GetFilename

func (x *Function) GetFilename() int64

func (*Function) GetId

func (x *Function) GetId() uint64

func (*Function) GetName

func (x *Function) GetName() int64

func (*Function) GetStartLine

func (x *Function) GetStartLine() int64

func (*Function) GetSystemName

func (x *Function) GetSystemName() int64

func (*Function) ProtoMessage

func (*Function) ProtoMessage()

func (*Function) ProtoReflect

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

func (*Function) Reset

func (x *Function) Reset()

func (*Function) String

func (x *Function) String() string

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

Deprecated: Use Label.ProtoReflect.Descriptor instead.

func (*Label) GetKey

func (x *Label) GetKey() int64

func (*Label) GetNum

func (x *Label) GetNum() int64

func (*Label) GetStr

func (x *Label) GetStr() int64

func (*Label) ProtoMessage

func (*Label) ProtoMessage()

func (*Label) ProtoReflect

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

func (*Label) Reset

func (x *Label) Reset()

func (*Label) String

func (x *Label) String() string

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

Deprecated: Use Line.ProtoReflect.Descriptor instead.

func (*Line) GetFunctionId

func (x *Line) GetFunctionId() uint64

func (*Line) GetLine

func (x *Line) GetLine() int64

func (*Line) ProtoMessage

func (*Line) ProtoMessage()

func (*Line) ProtoReflect

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

func (*Line) Reset

func (x *Line) Reset()

func (*Line) String

func (x *Line) String() string

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

Deprecated: Use Location.ProtoReflect.Descriptor instead.

func (*Location) GetAddress

func (x *Location) GetAddress() uint64

func (*Location) GetId

func (x *Location) GetId() uint64

func (*Location) GetLine

func (x *Location) GetLine() []*Line

func (*Location) GetMappingId

func (x *Location) GetMappingId() uint64

func (*Location) ProtoMessage

func (*Location) ProtoMessage()

func (*Location) ProtoReflect

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

func (*Location) Reset

func (x *Location) Reset()

func (*Location) String

func (x *Location) String() string

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

Deprecated: Use Mapping.ProtoReflect.Descriptor instead.

func (*Mapping) GetBuildId

func (x *Mapping) GetBuildId() int64

func (*Mapping) GetFileOffset

func (x *Mapping) GetFileOffset() uint64

func (*Mapping) GetFilename

func (x *Mapping) GetFilename() int64

func (*Mapping) GetHasFilenames

func (x *Mapping) GetHasFilenames() bool

func (*Mapping) GetHasFunctions

func (x *Mapping) GetHasFunctions() bool

func (*Mapping) GetHasInlineFrames

func (x *Mapping) GetHasInlineFrames() bool

func (*Mapping) GetHasLineNumbers

func (x *Mapping) GetHasLineNumbers() bool

func (*Mapping) GetId

func (x *Mapping) GetId() uint64

func (*Mapping) GetMemoryLimit

func (x *Mapping) GetMemoryLimit() uint64

func (*Mapping) GetMemoryStart

func (x *Mapping) GetMemoryStart() uint64

func (*Mapping) ProtoMessage

func (*Mapping) ProtoMessage()

func (*Mapping) ProtoReflect

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

func (*Mapping) Reset

func (x *Mapping) Reset()

func (*Mapping) String

func (x *Mapping) String() string

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

Deprecated: Use Profile.ProtoReflect.Descriptor instead.

func (*Profile) GetComment

func (x *Profile) GetComment() []int64

func (*Profile) GetDefaultSampleType

func (x *Profile) GetDefaultSampleType() int64

func (*Profile) GetDropFrames

func (x *Profile) GetDropFrames() int64

func (*Profile) GetDurationNanos

func (x *Profile) GetDurationNanos() int64

func (*Profile) GetFunction

func (x *Profile) GetFunction() []*Function

func (*Profile) GetKeepFrames

func (x *Profile) GetKeepFrames() int64

func (*Profile) GetLocation

func (x *Profile) GetLocation() []*Location

func (*Profile) GetMapping

func (x *Profile) GetMapping() []*Mapping

func (*Profile) GetPeriod

func (x *Profile) GetPeriod() int64

func (*Profile) GetPeriodType

func (x *Profile) GetPeriodType() *ValueType

func (*Profile) GetSample

func (x *Profile) GetSample() []*Sample

func (*Profile) GetSampleType

func (x *Profile) GetSampleType() []*ValueType

func (*Profile) GetStringTable

func (x *Profile) GetStringTable() []string

func (*Profile) GetTimeNanos

func (x *Profile) GetTimeNanos() int64

func (*Profile) ProtoMessage

func (*Profile) ProtoMessage()

func (*Profile) ProtoReflect

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

func (*Profile) Reset

func (x *Profile) Reset()

func (*Profile) String

func (x *Profile) String() string

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

Deprecated: Use Sample.ProtoReflect.Descriptor instead.

func (*Sample) GetLabel

func (x *Sample) GetLabel() []*Label

func (*Sample) GetLocationId

func (x *Sample) GetLocationId() []uint64

func (*Sample) GetValue

func (x *Sample) GetValue() []int64

func (*Sample) ProtoMessage

func (*Sample) ProtoMessage()

func (*Sample) ProtoReflect

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

func (*Sample) Reset

func (x *Sample) Reset()

func (*Sample) String

func (x *Sample) String() string

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

Deprecated: Use ValueType.ProtoReflect.Descriptor instead.

func (*ValueType) GetType

func (x *ValueType) GetType() int64

func (*ValueType) GetUnit

func (x *ValueType) GetUnit() int64

func (*ValueType) ProtoMessage

func (*ValueType) ProtoMessage()

func (*ValueType) ProtoReflect

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

func (*ValueType) Reset

func (x *ValueType) Reset()

func (*ValueType) String

func (x *ValueType) String() string

Jump to

Keyboard shortcuts

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