Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/google/pprof
/ functions
Functions
1,045 in github.com/google/pprof
⨍
Functions
1,045
◇
Types & classes
188
↓ 2 callers
Function
trimLowFreqTags
(tags TagMap, minValue int64)
internal/graph/graph.go:801
↓ 2 callers
Function
unmarshal
(data []byte, m message)
profile/proto.go:178
↓ 2 callers
Function
unsourceMappings
unsourceMappings iterates over the mappings in a profile and replaces file set to the remote source URL by collectMappingSources back to empty string.
internal/driver/fetch.go:392
↓ 2 callers
Method
update
update modifies the rep for bu via the supplied function.
internal/binutils/binutils.go:85
↓ 2 callers
Function
valueExtractor
(ix int)
internal/driver/driver.go:384
↓ 1 callers
Method
AddExtraUsage
AddExtraUsage appends additional text to the end of the extra usage message.
driver/driver.go:108
↓ 1 callers
Function
AddSourceTemplates
AddSourceTemplates adds templates used by PrintWebList to t.
internal/report/source_html.go:22
↓ 1 callers
Method
Disasm
Disasm returns the assembly instructions for the specified address range of a binary.
internal/binutils/binutils.go:259
↓ 1 callers
Method
DiscardLowFrequencyNodePtrs
DiscardLowFrequencyNodePtrs returns a NodePtrSet of nodes at or over a specific cum value cutoff.
internal/graph/graph.go:758
↓ 1 callers
Method
DiscardLowFrequencyNodes
DiscardLowFrequencyNodes returns a set of the nodes at or over a specific cum value cutoff.
internal/graph/graph.go:752
↓ 1 callers
Method
ExtraUsage
ExtraUsage returns any additional text that should be printed after the standard usage message. The extra usage message returned includes all text add
driver/driver.go:105
↓ 1 callers
Method
Fetch
(src string, duration, timeout time.Duration)
driver/driver.go:122
↓ 1 callers
Method
FilterSamplesByTag
FilterSamplesByTag removes all samples from the profile, except those that match focus and do not match the ignore regular expression.
profile/filter.go:256
↓ 1 callers
Method
FindOrInsertNode
FindOrInsertNode takes the info for a node and either returns a matching node from the node map if one exists, or adds one to the map if one does not.
internal/graph/graph.go:234
↓ 1 callers
Function
GetBuildID
GetBuildID returns the GNU build-ID for an ELF binary. If no build-ID was found but the binary was read without error, it returns (nil, nil).
internal/elfexec/elfexec.go:121
↓ 1 callers
Method
IsTerminal
IsTerminal returns whether the UI is known to be tied to an interactive terminal (as opposed to being redirected to a file).
pprof.go:96
↓ 1 callers
Function
New
New summarizes performance data from a profile into a graph.
internal/graph/graph.go:330
↓ 1 callers
Method
OutputFormat
OutputFormat returns the output format for the report.
internal/report/report.go:1343
↓ 1 callers
Method
ParseMemoryMap
ParseMemoryMap parses a memory map in the format of proc/self/maps, and overrides the mappings in the current profile. It renumbers the samples and lo
profile/legacy_profile.go:1023
↓ 1 callers
Function
ParseProcMaps
ParseProcMaps parses a memory map in the format of /proc/self/maps. ParseMemoryMap should be called after setting on a profile to associate locations
profile/legacy_profile.go:972
↓ 1 callers
Method
Prune
Prune removes all nodes beneath a node matching dropRx, and not matching keepRx. If the root node of a Sample matches, the sample will have an empty s
profile/prune.go:56
↓ 1 callers
Method
PruneFrom
PruneFrom removes all nodes beneath the lowest node matching dropRx, not including itself. Please see the example below to understand this method as
profile/prune.go:162
↓ 1 callers
Method
ReadLine
ReadLine returns a line of text (a command) read from the user. prompt is printed before reading the command.
driver/driver.go:209
↓ 1 callers
Method
RemoveNumLabel
RemoveNumLabel removes all numerical labels associated with the specified key for all samples in the profile.
profile/profile.go:763
↓ 1 callers
Function
ScaleProfiles
ScaleProfiles updates the units in a set of profiles to make them compatible. It scales the profiles to the smallest unit to preserve data.
internal/measurement/measurement.go:31
↓ 1 callers
Method
SelectTopNodePtrs
SelectTopNodePtrs returns a set of the top maxNodes *Node in a graph.
internal/graph/graph.go:842
↓ 1 callers
Method
SetAutoComplete
SetAutoComplete instructs the UI to call complete(cmd) to obtain the auto-completion of cmd, if the UI supports auto-completion at all.
driver/driver.go:231
↓ 1 callers
Method
SetNumLabel
SetNumLabel sets the specified key to the specified value for all samples in the profile. "unit" is a slice that describes the units that each corresp
profile/profile.go:746
↓ 1 callers
Method
Sort
Sort returns a slice of the edges in the map, in a consistent order. The sort order is first based on the edge weight (higher-to-lower) and then by th
internal/graph/graph.go:1136
↓ 1 callers
Method
Symbolize
Symbolize attempts to symbolize profile p. First uses binutils on local binaries; if the source is a URL it attempts to get any missed entries using s
internal/symbolizer/symbolizer.go:50
↓ 1 callers
Function
TestFlame
()
browsertests/testdata/testflame.js:1
↓ 1 callers
Method
WantBrowser
WantBrowser indicates whether browser should be opened with the -http option.
driver/driver.go:227
↓ 1 callers
Function
absoluteURL
(str string)
internal/report/report.go:1354
↓ 1 callers
Function
addAction
(id, action)
internal/driver/html/common.js:690
↓ 1 callers
Method
addBaseProfiles
addBaseProfiles adds the list of base profiles or diff base profiles to the source. This function will return an error if both base and diff base prof
internal/driver/cli.go:174
↓ 1 callers
Method
addEdge
addEdge generates a graph edge in DOT format.
internal/graph/dotgraph.go:285
↓ 1 callers
Function
addElem
(src, elem)
internal/driver/html/stacks.js:493
↓ 1 callers
Method
addLegacyFrameInfo
()
profile/legacy_profile.go:1093
↓ 1 callers
Method
addLegend
addLegend generates a legend in DOT format.
internal/graph/dotgraph.go:123
↓ 1 callers
Method
addNode
addNode generates a graph node in DOT format.
internal/graph/dotgraph.go:141
↓ 1 callers
Method
addNodelets
addNodelets generates the DOT boxes for the node tags if they exist.
internal/graph/dotgraph.go:216
↓ 1 callers
Function
addTemplates
addTemplates adds a set of template definitions to templates.
internal/driver/webhtml.go:47
↓ 1 callers
Function
adjacent
adjacent returns whether two mapping entries represent the same mapping that has been split into two. Check that their addresses are adjacent, and if
profile/profile.go:305
↓ 1 callers
Function
adjustURL
adjustURL validates if a profile source is a URL and returns an cleaned up URL and the timeout to use for retrieval over HTTP. If the source cannot be
internal/driver/fetch.go:595
↓ 1 callers
Function
aggregate
(prof *profile.Profile, cfg config)
internal/driver/driver.go:253
↓ 1 callers
Function
annotateAssembly
annotateAssembly annotates a set of assembly instructions with a set of samples. It returns a set of nodes to display. base is an offset to adjust the
internal/report/report.go:638
↓ 1 callers
Method
autoScale
autoScale takes in the value with units of the base unit and returns that value scaled to a reasonable unit if a reasonable unit is found.
internal/measurement/measurement.go:221
↓ 1 callers
Function
busyLoop
()
internal/report/testdata/sample/sample.go:43
↓ 1 callers
Function
canonicalizeFileName
(fname string)
internal/report/source.go:1112
↓ 1 callers
Function
checkAddress
(got []plugin.Frame, address uint64, want string)
internal/binutils/binutils_test.go:234
↓ 1 callers
Function
checkAggregation
checkAggregation verifies that the profile remained consistent with its aggregation.
profile/profile_test.go:673
↓ 1 callers
Function
checkSymbol
(got []*plugin.Sym, want []plugin.Sym)
internal/binutils/disasm_test.go:74
↓ 1 callers
Function
checkSymbolizedLocation
(a uint64, got []profile.Line)
internal/symbolizer/symbolizer_test.go:292
↓ 1 callers
Function
colorize
colorize the msg using ANSI color escapes.
pprof.go:87
↓ 1 callers
Function
commandHelp
commandHelp displays help and usage information for all Commands and Variables or a specific Command or Variable.
internal/driver/interactive.go:318
↓ 1 callers
Function
commitSave
(e)
internal/driver/html/common.js:317
↓ 1 callers
Function
commonSampleTypes
commonSampleTypes returns sample types that appear in all profiles in the order how they ordered in the first profile.
profile/merge.go:601
↓ 1 callers
Function
compatibilizeSampleTypes
compatibilizeSampleTypes drops sample types that are not present in sTypes list and reorder them if needed. It sets DefaultSampleType to sType[0] if
profile/merge.go:627
↓ 1 callers
Function
compatibleValueTypes
(v1, v2 *profile.ValueType)
internal/measurement/measurement.go:105
↓ 1 callers
Function
completeConfig
completeConfig returns the list of configurable names starting with prefix.
internal/driver/config.go:284
↓ 1 callers
Function
concurrentGrab
concurrentGrab fetches multiple profiles concurrently
internal/driver/fetch.go:207
↓ 1 callers
Function
convertPerfData
convertPerfData converts the file at path which should be in perf.data format using the perf_to_profile tool and returns the file containing the profi
internal/driver/fetch.go:574
↓ 1 callers
Method
convertUnit
convertUnit converts a value from the fromUnit to the toUnit, autoscaling the value if the toUnit is "minimum" or "auto". If the fromUnit is not inclu
internal/measurement/measurement.go:241
↓ 1 callers
Function
cpuProfileSmall
()
internal/driver/driver_test.go:706
↓ 1 callers
Function
createTrimTreeTestCases
()
internal/graph/graph_test.go:311
↓ 1 callers
Function
decodeField
(b *buffer, data []byte)
profile/proto.go:214
↓ 1 callers
Function
decodeString
(b *buffer, x *string)
profile/proto.go:357
↓ 1 callers
Function
decodeStrings
(b *buffer, x *[]string)
profile/proto.go:365
↓ 1 callers
Function
decodeUint64s
(b *buffer, x *[]uint64)
profile/proto.go:331
↓ 1 callers
Method
decoder
()
profile/proto.go:54
↓ 1 callers
Function
deleteConfig
(e, elem)
internal/driver/html/common.js:338
↓ 1 callers
Function
details
(box)
internal/driver/html/stacks.js:560
↓ 1 callers
Function
display
(xscale, posTotal, negTotal, list, showPivotSummary)
internal/driver/html/stacks.js:394
↓ 1 callers
Function
dotToSvg
(dot []byte)
internal/driver/webui.go:347
↓ 1 callers
Function
drawBox
(xscale, box)
internal/driver/html/stacks.js:418
↓ 1 callers
Function
drawSep
(y, posTotal, negTotal)
internal/driver/html/stacks.js:482
↓ 1 callers
Function
encodeBool
(b *buffer, tag int, x bool)
profile/proto.go:153
↓ 1 callers
Function
encodeString
(b *buffer, tag int, x string)
profile/proto.go:142
↓ 1 callers
Function
encodeStrings
(b *buffer, tag int, x []string)
profile/proto.go:147
↓ 1 callers
Function
encodeUint64s
(b *buffer, tag int, x []uint64)
profile/proto.go:83
↓ 1 callers
Function
entropyScore
entropyScore computes a score for a node representing how important it is to include this node on a graph visualization. It is used to sort the nodes
internal/graph/graph.go:1075
↓ 1 callers
Function
eval
eval runs the specified javascript in the browser. The javascript must return an [][]any, where each of the []any starts with either "LOG" or "ERROR"
browsertests/browser_test.go:183
↓ 1 callers
Method
expand
(input string)
internal/driver/interactive.go:146
↓ 1 callers
Method
expandAddresses
(rpt *Report, addrs map[uint64]addrInfo, flat map[uint64]int64)
internal/report/source.go:371
↓ 1 callers
Function
expectedNodesDebugString
(expected []expectedNode)
internal/graph/graph_test.go:63
↓ 1 callers
Function
fakeDemangler
(name string)
internal/driver/driver_test.go:487
↓ 1 callers
Function
fakeELFFile
fakeELFFile generates a minimal valid ELF file, with fake .head.text and .text sections, and their corresponding _text and _stext start symbols, mimic
internal/binutils/binutils_test.go:857
↓ 1 callers
Function
fetchURL
fetchURL fetches a profile from a URL using HTTP.
internal/driver/fetch.go:525
↓ 1 callers
Method
fileError
(path string)
internal/report/source.go:969
↓ 1 callers
Method
fillPlaces
()
internal/report/stacks.go:186
↓ 1 callers
Function
filterShowFromLocation
filterShowFromLocation tests a showFrom regex against a location, removes lines after the last match and returns whether a match was found. If the map
profile/filter.go:122
↓ 1 callers
Method
findByAlias
findByAlias returns the unit associated with the specified alias. It returns nil if the unit with such alias is not found.
internal/measurement/measurement.go:199
↓ 1 callers
Function
findPolygon
(elem)
internal/driver/html/common.js:552
↓ 1 callers
Method
findProgramHeader
findProgramHeader returns the program segment that matches the current mapping and the given address, or an error if it cannot find a unique program h
internal/binutils/binutils.go:537
↓ 1 callers
Function
findSource
(stacks StackSet, name string)
internal/report/stacks_test.go:203
↓ 1 callers
Method
finish
finish closes the opening curly bracket in the constructed DOT buffer.
internal/graph/dotgraph.go:118
↓ 1 callers
Function
fitText
(t, avail, textList)
internal/driver/html/stacks.js:514
↓ 1 callers
Function
floatEqual
(a, b float64)
internal/measurement/measurement_test.go:72
↓ 1 callers
Function
focusedAndNotIgnored
focusedAndNotIgnored looks up a slice of ids against a map of focused/ignored locations. The map only contains locations that are explicitly focused o
profile/filter.go:233
↓ 1 callers
Function
formatLabelValues
formatLabelValues returns all the string and numeric labels in Sample, with the numeric labels formatted according to outputUnit.
internal/driver/tagroot.go:115
← previous
next →
401–500 of 1,045, ranked by callers