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

Function deferDeleteTempFile

internal/driver/tempfile.go:42–46  ·  view source on GitHub ↗

deferDeleteTempFile marks a file to be deleted by next call to Cleanup()

(path string)

Source from the content-addressed store, hash-verified

40
41// deferDeleteTempFile marks a file to be deleted by next call to Cleanup()
42func deferDeleteTempFile(path string) {
43 tempFilesMu.Lock()
44 tempFiles = append(tempFiles, path)
45 tempFilesMu.Unlock()
46}
47
48// cleanupTempFiles removes any temporary files selected for deferred cleaning.
49func cleanupTempFiles() error {

Callers 3

invokeVisualizerFunction · 0.85
TestNewTempFileFunction · 0.85
convertPerfDataFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestNewTempFileFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…