Documentation ¶
Index ¶
- type ConcurrencyStats
- func (s *ConcurrencyStats) AddTotal(n int64)
- func (s *ConcurrencyStats) Failed(n, records int64)
- func (s *ConcurrencyStats) Init()
- func (s *ConcurrencyStats) RequestFailed(nRecords int64)
- func (s *ConcurrencyStats) RequestSucceeded(nRecords int64, latency, respTime time.Duration)
- func (s *ConcurrencyStats) Stats() *Stats
- func (s *ConcurrencyStats) String() string
- func (s *ConcurrencyStats) Succeeded(n, nRecords int64)
- type Stats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConcurrencyStats ¶
type ConcurrencyStats struct {
// contains filtered or unexported fields
}
func NewConcurrencyStats ¶
func NewConcurrencyStats(byteStats bool) *ConcurrencyStats
func (*ConcurrencyStats) AddTotal ¶ added in v1.1.20
func (s *ConcurrencyStats) AddTotal(n int64)
func (*ConcurrencyStats) Failed ¶
func (s *ConcurrencyStats) Failed(n, records int64)
func (*ConcurrencyStats) Init ¶
func (s *ConcurrencyStats) Init()
func (*ConcurrencyStats) RequestFailed ¶
func (s *ConcurrencyStats) RequestFailed(nRecords int64)
func (*ConcurrencyStats) RequestSucceeded ¶
func (s *ConcurrencyStats) RequestSucceeded(nRecords int64, latency, respTime time.Duration)
func (*ConcurrencyStats) Stats ¶
func (s *ConcurrencyStats) Stats() *Stats
func (*ConcurrencyStats) String ¶
func (s *ConcurrencyStats) String() string
func (*ConcurrencyStats) Succeeded ¶
func (s *ConcurrencyStats) Succeeded(n, nRecords int64)
type Stats ¶
type Stats struct { StartTime time.Time // The time to start statistics. Processed int64 // The processed bytes or records. Total int64 // The total bytes or records. RecordStats bool // is bytes or records FailedRecords int64 // The number of records that have failed to be processed. TotalRecords int64 // The number of records that have been processed. FailedRequest int64 // The number of requests that have failed. TotalRequest int64 // The number of requests that have been processed. TotalLatency time.Duration // The cumulative latency. TotalRespTime time.Duration // The cumulative response time. FailedProcessed int64 // The number of nodes and edges that have failed to be processed. TotalProcessed int64 // The number of nodes and edges that have been processed. }
func (*Stats) Percentage ¶
Click to show internal directories.
Click to hide internal directories.