package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev
# Functions
CollectDuration collects log time field.
CollectFailureUnit collects fail reason.
CollectInt collects log int field.
CollectSuccessUnit collects success time costs.
CollectUint collects log uint64 field.
InitCollector initilize global collector instance.
Log outputs log.
NewLogCollector returns a new LogCollector.
NowDureTime returns the duration between start time and current time.
SetLogCollector allow pass LogCollector outside.
SetSuccessStatus sets final success status.
SetUnit set unit "backup/restore" for summary log.
Summary outputs summary log.
# Constants
BackupDataSize is a field we collect after backup finish.
BackupUnit tells summary in backup.
RestoreDataSize is a field we collection after restore finish.
RestoreUnit tells summary in restore.
SkippedBytesByCheckpoint is a field we skip during backup/restore.
SkippedKVCountByCheckpoint is a field we skip during backup/restore.
TotalBytes is a field we collect during backup/restore.
TotalKV is a field we collect during backup/restore.
# Interfaces
LogCollector collects infos into summary log.