MCPcopy Create free account
hub / github.com/google/pprof / testSample

Function testSample

internal/report/report_test.go:256–261  ·  view source on GitHub ↗

testSample returns a profile sample with specified value and stack. Note: callees come first in sample stacks.

(value int64, locs ...*profile.Location)

Source from the content-addressed store, hash-verified

254// testSample returns a profile sample with specified value and stack.
255// Note: callees come first in sample stacks.
256func testSample(value int64, locs ...*profile.Location) *profile.Sample {
257 return &profile.Sample{
258 Value: []int64{value},
259 Location: locs,
260 }
261}
262
263// makeTestProfile returns a profile with specified samples that uses testL/testF/testM
264// (defined in report_test.go).

Callers 3

TestStacksFunction · 0.85
TestStackSourcesFunction · 0.85
TestLegendFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…