Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for incTime (0.22 sec)

  1. cmd/os-instrumented.go

    	startTime := time.Now()
    	return func() {
    		duration := time.Since(startTime)
    
    		atomic.AddUint64(&o.operations[s], 1)
    		o.latency[s].add(duration)
    	}
    }
    
    // incTime will increment time on metric s with a specific duration.
    func (o *osMetrics) incTime(s osMetric, d time.Duration) {
    	atomic.AddUint64(&o.operations[s], 1)
    	o.latency[s].add(d)
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Feb 15 01:09:38 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  2. cmd/data-scanner-metric.go

    		atomic.AddUint64(&p.operations[s], 1)
    		if s < scannerMetricLastRealtime {
    			p.latency[s].addSize(duration, int64(sz))
    		}
    	}
    }
    
    // incTime will increment time on metric s with a specific duration.
    // Use for s < scannerMetricLastRealtime
    func (p *scannerMetrics) incTime(s scannerMetric, d time.Duration) {
    	atomic.AddUint64(&p.operations[s], 1)
    	if s < scannerMetricLastRealtime {
    		p.latency[s].add(d)
    	}
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 25 05:15:31 GMT 2023
    - 9.1K bytes
    - Viewed (0)
  3. cmd/data-scanner.go

    				if d.isScanner {
    					globalScannerMetrics.incTime(scannerMetricYield, wantSleep)
    				}
    			}
    			return
    		case <-timer.C:
    			if d.isScanner {
    				globalScannerMetrics.incTime(scannerMetricYield, wantSleep)
    			}
    			return
    		case <-cycle:
    			if !timer.Stop() {
    				// We expired.
    				<-timer.C
    				if d.isScanner {
    					globalScannerMetrics.incTime(scannerMetricYield, wantSleep)
    				}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Apr 15 09:40:19 GMT 2024
    - 46.9K bytes
    - Viewed (0)
Back to top