Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ExecTime (3.28 sec)

  1. src/cmd/trace/goroutines.go

    			ExecTime time.Duration // Total execution time of all goroutines in this group.
    		}
    		// Accumulate groups by Name.
    		groupsByName := make(map[string]goroutineGroup)
    		for _, summary := range summaries {
    			group := groupsByName[summary.Name]
    			group.Name = summary.Name
    			group.N++
    			group.ExecTime += summary.ExecTime
    			groupsByName[summary.Name] = group
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  2. src/internal/trace/summary.go

    	if sum < s.TotalTime {
    		return s.TotalTime - sum
    	}
    	return 0
    }
    
    // sub returns the stats v-s.
    func (s GoroutineExecStats) sub(v GoroutineExecStats) (r GoroutineExecStats) {
    	r = s.clone()
    	r.ExecTime -= v.ExecTime
    	r.SchedWaitTime -= v.SchedWaitTime
    	for reason := range s.BlockTimeByReason {
    		r.BlockTimeByReason[reason] -= v.BlockTimeByReason[reason]
    	}
    	r.SyscallTime -= v.SyscallTime
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  3. src/internal/trace/summary_test.go

    			}
    		}
    	default:
    		t.Errorf("unexpected want end event type: %s", wantEnd)
    	}
    }
    
    func basicGoroutineExecStatsChecks(t *testing.T, stats *trace.GoroutineExecStats) {
    	if stats.ExecTime < 0 {
    		t.Error("found negative ExecTime")
    	}
    	if stats.SchedWaitTime < 0 {
    		t.Error("found negative SchedWaitTime")
    	}
    	if stats.SyscallTime < 0 {
    		t.Error("found negative SyscallTime")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 13.4K bytes
    - Viewed (0)
Back to top