stats

package
v7.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: Apache-2.0 Imports: 9 Imported by: 6

Documentation

Index

Constants

View Source
const (
	StatsDump    = "stats-dump"
	StatsRestore = "stats-restore"

	ImgServiceMagic = 0x55105940 /* Zlatoust */
	StatsMagic      = 0x57093306 /* Ostashkov */

	PrimaryMagicOffset   = 0x0
	SecondaryMagicOffset = 0x4
	SizeOffset           = 0x8
	PayloadOffset        = 0xC
)

Variables

View Source
var File_stats_stats_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type DumpStatsEntry

type DumpStatsEntry struct {
	FreezingTime         *uint32 `protobuf:"varint,1,req,name=freezing_time,json=freezingTime" json:"freezing_time,omitempty"`
	FrozenTime           *uint32 `protobuf:"varint,2,req,name=frozen_time,json=frozenTime" json:"frozen_time,omitempty"`
	MemdumpTime          *uint32 `protobuf:"varint,3,req,name=memdump_time,json=memdumpTime" json:"memdump_time,omitempty"`
	MemwriteTime         *uint32 `protobuf:"varint,4,req,name=memwrite_time,json=memwriteTime" json:"memwrite_time,omitempty"`
	PagesScanned         *uint64 `protobuf:"varint,5,req,name=pages_scanned,json=pagesScanned" json:"pages_scanned,omitempty"`
	PagesSkippedParent   *uint64 `protobuf:"varint,6,req,name=pages_skipped_parent,json=pagesSkippedParent" json:"pages_skipped_parent,omitempty"`
	PagesWritten         *uint64 `protobuf:"varint,7,req,name=pages_written,json=pagesWritten" json:"pages_written,omitempty"`
	IrmapResolve         *uint32 `protobuf:"varint,8,opt,name=irmap_resolve,json=irmapResolve" json:"irmap_resolve,omitempty"`
	PagesLazy            *uint64 `protobuf:"varint,9,req,name=pages_lazy,json=pagesLazy" json:"pages_lazy,omitempty"`
	PagePipes            *uint64 `protobuf:"varint,10,opt,name=page_pipes,json=pagePipes" json:"page_pipes,omitempty"`
	PagePipeBufs         *uint64 `protobuf:"varint,11,opt,name=page_pipe_bufs,json=pagePipeBufs" json:"page_pipe_bufs,omitempty"`
	ShpagesScanned       *uint64 `protobuf:"varint,12,opt,name=shpages_scanned,json=shpagesScanned" json:"shpages_scanned,omitempty"`
	ShpagesSkippedParent *uint64 `protobuf:"varint,13,opt,name=shpages_skipped_parent,json=shpagesSkippedParent" json:"shpages_skipped_parent,omitempty"`
	ShpagesWritten       *uint64 `protobuf:"varint,14,opt,name=shpages_written,json=shpagesWritten" json:"shpages_written,omitempty"`
	// contains filtered or unexported fields
}

This one contains statistics about dump/restore process

func CriuGetDumpStats

func CriuGetDumpStats(imgDir *os.File) (*DumpStatsEntry, error)

func (*DumpStatsEntry) Descriptor deprecated

func (*DumpStatsEntry) Descriptor() ([]byte, []int)

Deprecated: Use DumpStatsEntry.ProtoReflect.Descriptor instead.

func (*DumpStatsEntry) GetFreezingTime

func (x *DumpStatsEntry) GetFreezingTime() uint32

func (*DumpStatsEntry) GetFrozenTime

func (x *DumpStatsEntry) GetFrozenTime() uint32

func (*DumpStatsEntry) GetIrmapResolve

func (x *DumpStatsEntry) GetIrmapResolve() uint32

func (*DumpStatsEntry) GetMemdumpTime

func (x *DumpStatsEntry) GetMemdumpTime() uint32

func (*DumpStatsEntry) GetMemwriteTime

func (x *DumpStatsEntry) GetMemwriteTime() uint32

func (*DumpStatsEntry) GetPagePipeBufs

func (x *DumpStatsEntry) GetPagePipeBufs() uint64

func (*DumpStatsEntry) GetPagePipes

func (x *DumpStatsEntry) GetPagePipes() uint64

func (*DumpStatsEntry) GetPagesLazy

func (x *DumpStatsEntry) GetPagesLazy() uint64

func (*DumpStatsEntry) GetPagesScanned

func (x *DumpStatsEntry) GetPagesScanned() uint64

func (*DumpStatsEntry) GetPagesSkippedParent

func (x *DumpStatsEntry) GetPagesSkippedParent() uint64

func (*DumpStatsEntry) GetPagesWritten

func (x *DumpStatsEntry) GetPagesWritten() uint64

func (*DumpStatsEntry) GetShpagesScanned

func (x *DumpStatsEntry) GetShpagesScanned() uint64

func (*DumpStatsEntry) GetShpagesSkippedParent

func (x *DumpStatsEntry) GetShpagesSkippedParent() uint64

func (*DumpStatsEntry) GetShpagesWritten

func (x *DumpStatsEntry) GetShpagesWritten() uint64

func (*DumpStatsEntry) ProtoMessage

func (*DumpStatsEntry) ProtoMessage()

func (*DumpStatsEntry) ProtoReflect

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

func (*DumpStatsEntry) Reset

func (x *DumpStatsEntry) Reset()

func (*DumpStatsEntry) String

func (x *DumpStatsEntry) String() string

type RestoreStatsEntry

type RestoreStatsEntry struct {
	PagesCompared   *uint64 `protobuf:"varint,1,req,name=pages_compared,json=pagesCompared" json:"pages_compared,omitempty"`
	PagesSkippedCow *uint64 `protobuf:"varint,2,req,name=pages_skipped_cow,json=pagesSkippedCow" json:"pages_skipped_cow,omitempty"`
	ForkingTime     *uint32 `protobuf:"varint,3,req,name=forking_time,json=forkingTime" json:"forking_time,omitempty"`
	RestoreTime     *uint32 `protobuf:"varint,4,req,name=restore_time,json=restoreTime" json:"restore_time,omitempty"`
	PagesRestored   *uint64 `protobuf:"varint,5,opt,name=pages_restored,json=pagesRestored" json:"pages_restored,omitempty"`
	// contains filtered or unexported fields
}

func CriuGetRestoreStats

func CriuGetRestoreStats(imgDir *os.File) (*RestoreStatsEntry, error)

func (*RestoreStatsEntry) Descriptor deprecated

func (*RestoreStatsEntry) Descriptor() ([]byte, []int)

Deprecated: Use RestoreStatsEntry.ProtoReflect.Descriptor instead.

func (*RestoreStatsEntry) GetForkingTime

func (x *RestoreStatsEntry) GetForkingTime() uint32

func (*RestoreStatsEntry) GetPagesCompared

func (x *RestoreStatsEntry) GetPagesCompared() uint64

func (*RestoreStatsEntry) GetPagesRestored

func (x *RestoreStatsEntry) GetPagesRestored() uint64

func (*RestoreStatsEntry) GetPagesSkippedCow

func (x *RestoreStatsEntry) GetPagesSkippedCow() uint64

func (*RestoreStatsEntry) GetRestoreTime

func (x *RestoreStatsEntry) GetRestoreTime() uint32

func (*RestoreStatsEntry) ProtoMessage

func (*RestoreStatsEntry) ProtoMessage()

func (*RestoreStatsEntry) ProtoReflect

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

func (*RestoreStatsEntry) Reset

func (x *RestoreStatsEntry) Reset()

func (*RestoreStatsEntry) String

func (x *RestoreStatsEntry) String() string

type StatsEntry

type StatsEntry struct {
	Dump    *DumpStatsEntry    `protobuf:"bytes,1,opt,name=dump" json:"dump,omitempty"`
	Restore *RestoreStatsEntry `protobuf:"bytes,2,opt,name=restore" json:"restore,omitempty"`
	// contains filtered or unexported fields
}

func (*StatsEntry) Descriptor deprecated

func (*StatsEntry) Descriptor() ([]byte, []int)

Deprecated: Use StatsEntry.ProtoReflect.Descriptor instead.

func (*StatsEntry) GetDump

func (x *StatsEntry) GetDump() *DumpStatsEntry

func (*StatsEntry) GetRestore

func (x *StatsEntry) GetRestore() *RestoreStatsEntry

func (*StatsEntry) ProtoMessage

func (*StatsEntry) ProtoMessage()

func (*StatsEntry) ProtoReflect

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

func (*StatsEntry) Reset

func (x *StatsEntry) Reset()

func (*StatsEntry) String

func (x *StatsEntry) String() string

Jump to

Keyboard shortcuts

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