Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for SampleType (0.14 sec)

  1. src/runtime/pprof/pprof_test.go

    		} {
    			if !containsStack(stks, want) {
    				t.Errorf("No matching stack entry for %+v", want)
    			}
    		}
    
    		i := 0
    		for ; i < len(p.SampleType); i++ {
    			if p.SampleType[i].Unit == "nanoseconds" {
    				break
    			}
    		}
    		if i >= len(p.SampleType) {
    			t.Fatalf("profile did not contain nanoseconds sample")
    		}
    		total := int64(0)
    		for _, s := range p.Sample {
    			total += s.Value[i]
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
Back to top