Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for profileToStrings (0.19 sec)

  1. src/runtime/pprof/protomem_test.go

    			}
    
    			checkProfile(t, p, rate, periodType, sampleType, samples, tc.defaultSampleType)
    		})
    	}
    }
    
    func genericAllocFunc[T interface{ uint32 | uint64 }](n int) []T {
    	return make([]T, n)
    }
    
    func profileToStrings(p *profile.Profile) []string {
    	var res []string
    	for _, s := range p.Sample {
    		res = append(res, sampleToString(s))
    	}
    	return res
    }
    
    func sampleToString(s *profile.Sample) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 14:38:45 UTC 2024
    - 6.7K bytes
    - Viewed (0)
Back to top