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

Function TestFlameGraph

browsertests/browser_test.go:74–90  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

72}
73
74func TestFlameGraph(t *testing.T) {
75 maybeSkipBrowserTest(t)
76
77 prof := makeFakeProfile()
78 server := makeTestServer(t, prof)
79 ctx := newContext(context.Background(), t)
80
81 var ignored []byte // Some chromedp.Evaluate() versions wants non-nil result argument
82 err := chromedp.Run(ctx,
83 chromedp.Navigate(server.URL),
84 chromedp.Evaluate(jsTestFixture, &ignored),
85 eval(t, jsCheckFlame),
86 )
87 if err != nil {
88 t.Fatal(err)
89 }
90}
91
92//go:embed testdata/testflame.js
93var jsCheckFlame string

Callers

nothing calls this directly

Calls 5

maybeSkipBrowserTestFunction · 0.85
newContextFunction · 0.85
evalFunction · 0.85
makeFakeProfileFunction · 0.70
makeTestServerFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…