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
↓ 5 callers
Function
decodeBool
(b *buffer, x *bool)
profile/proto.go:374
↓ 5 callers
Function
encodeBoolOpt
(b *buffer, tag int, x bool)
profile/proto.go:161
↓ 5 callers
Function
encodeUint64
(b *buffer, tag int, x uint64)
profile/proto.go:77
↓ 5 callers
Function
fetchProfiles
fetchProfiles fetches and symbolizes the profiles specified by s. It will merge all the profiles it is able to retrieve, even if there are some failur
internal/driver/fetch.go:41
↓ 5 callers
Function
getEventPoint
* Instance an SVGPoint object with given event coordinates.
third_party/svgpan/svgpan.js:108
↓ 5 callers
Function
getFlag
(flags testFlags, name string, def T)
browsertests/testutils.go:184
↓ 5 callers
Function
locationHash
locationHash constructs a string to use as a hashkey for a sample, based on its locations
profile/profile_test.go:1074
↓ 5 callers
Method
makeURL
makeURL returns a URL based on initialURL that contains the config contents as parameters. The second result is true iff a parameter value was change
internal/driver/config.go:344
↓ 5 callers
Method
newGraph
newGraph creates a new graph for this report. If nodes is non-nil, only nodes whose info matches are included. Otherwise, all nodes are included, with
internal/report/report.go:238
↓ 5 callers
Function
newTempFile
newTempFile returns a new output file in dir with the provided prefix and suffix.
internal/driver/tempfile.go:25
↓ 5 callers
Function
percentText
(v)
internal/driver/html/stacks.js:583
↓ 5 callers
Function
readSettings
readSettings reads settings from fname.
internal/driver/settings.go:34
↓ 5 callers
Method
selectOutputUnit
(g *graph.Graph)
internal/report/report.go:187
↓ 5 callers
Function
showDialog
(dialog)
internal/driver/html/common.js:293
↓ 5 callers
Function
toggleClass
(src, cl, value)
internal/driver/html/stacks.js:504
↓ 5 callers
Function
updateButtons
()
internal/driver/html/common.js:655
↓ 4 callers
Function
Generate
Generate generates a report as directed by the Report.
internal/report/report.go:88
↓ 4 callers
Method
Int
(name string, def int, usage string)
driver/driver.go:92
↓ 4 callers
Function
MakeWebList
MakeWebList returns an annotated source listing of rpt. rpt.prof should contain inlined call info.
internal/report/source.go:243
↓ 4 callers
Method
Scale
Scale multiplies all sample values in a profile by a constant and keeps only samples that have at least one non-zero value.
profile/profile.go:778
↓ 4 callers
Method
WeightValue
WeightValue returns the weight value for this edge, normalizing if a divisor is available.
internal/graph/graph.go:285
↓ 4 callers
Method
addSample
(dw, w int64, labels string, numLabel map[string][]int64, numUnit map[string][]string, format func(int64, stri
internal/graph/graph.go:657
↓ 4 callers
Function
compileTagFilter
(name, value string, numLabelUnits map[string]string, ui plugin.UI, err error)
internal/driver/driver_focus.go:81
↓ 4 callers
Function
createExpectedNodes
createExpectedNodes creates a slice of expectedNodes from nodes.
internal/graph/graph_test.go:161
↓ 4 callers
Function
encodeLength
(b *buffer, tag int, len int)
profile/proto.go:72
↓ 4 callers
Method
fieldPtr
fieldPtr returns a pointer to the field identified by f in *cfg.
internal/driver/config.go:200
↓ 4 callers
Function
findTouch
(tlist, id)
internal/driver/html/common.js:137
↓ 4 callers
Function
interleave
(input []string, seed int64)
internal/driver/interactive_test.go:160
↓ 4 callers
Function
isMemoryMapSentinel
isMemoryMapSentinel returns true if the string contains one of the known sentinels for memory map information.
profile/legacy_profile.go:1084
↓ 4 callers
Method
mapMapping
(src *Mapping)
profile/merge.go:346
↓ 4 callers
Function
matchRegexp
matchRegexp is a chromedp.Action that fetches the text of the first node that matched query and checks that the text matches regexp re.
browsertests/browser_test.go:138
↓ 4 callers
Method
newCopy
newCopy returns a new copy of the profile.
internal/driver/driver.go:402
↓ 4 callers
Function
panMove
(x, y)
internal/driver/html/common.js:90
↓ 4 callers
Function
parseAdditionalSections
parseAdditionalSections parses any additional sections in the profile, ignoring any unrecognized sections.
profile/legacy_profile.go:959
↓ 4 callers
Function
parseHexAddresses
parseHexAddresses extracts hex numbers from a string, attempts to convert each to an unsigned 64-bit number and returns the resulting numbers as a sli
profile/legacy_profile.go:641
↓ 4 callers
Function
redirectWithQuery
redirectWithQuery responds with a given redirect code, preserving query parameters in the redirect URL. It does not convert relative paths to absolute
internal/driver/webui.go:223
↓ 4 callers
Function
reportLabels
reportLabels returns printable labels for a report. Includes profileLabels.
internal/report/report.go:1208
↓ 4 callers
Method
run
(name, subtest)
browsertests/testdata/testfixture.js:10
↓ 4 callers
Method
set
(id uint64, loc *Location)
profile/merge.go:568
↓ 4 callers
Function
setCTM
* Sets the current transform matrix of an element.
third_party/svgpan/svgpan.js:120
↓ 4 callers
Method
sniffUnit
sniffUnit simplifies the input alias and returns the unit associated with the specified alias. It returns nil if the unit with such alias is not found
internal/measurement/measurement.go:210
↓ 4 callers
Function
symzProfile
()
internal/driver/driver_test.go:1000
↓ 3 callers
Method
AddToEdgeDiv
AddToEdgeDiv increases the weight of an edge between two nodes. If there isn't such an edge one is created.
internal/graph/graph.go:128
↓ 3 callers
Function
CreateNodes
CreateNodes creates graph nodes for all locations in a profile. It returns set of all nodes, plus a mapping of each location to the set of correspondi
internal/graph/graph.go:570
↓ 3 callers
Method
Disasm
Disasm disassembles the named object file, starting at the start address and stopping at (before) the end address.
driver/driver.go:148
↓ 3 callers
Function
GetBase
GetBase determines the base address to subtract from virtual address to get symbol table address. For an executable, the base is 0. Otherwise, it's a
internal/elfexec/elfexec.go:216
↓ 3 callers
Method
HasFileLines
HasFileLines determines if all locations in this profile have symbolized file and line number information.
profile/profile.go:837
↓ 3 callers
Method
HasFunctions
HasFunctions determines if all locations in this profile have symbolized function information.
profile/profile.go:826
↓ 3 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).
driver/driver.go:224
↓ 3 callers
Function
ParseData
ParseData parses a profile from a buffer and checks for its validity.
profile/profile.go:182
↓ 3 callers
Function
PrintAssembly
PrintAssembly prints annotated disassembly of rpt to w.
internal/report/report.go:391
↓ 3 callers
Method
SampleIndexByName
SampleIndexByName returns the appropriate index for a value of sample index. If numeric, it returns the number, otherwise it looks up the text in the
profile/index.go:26
↓ 3 callers
Method
ScaleN
ScaleN multiplies each sample values in a sample by a different amount and keeps only samples that have at least one non-zero value.
profile/profile.go:791
↓ 3 callers
Method
SetFastSymbolization
SetFastSymbolization sets a toggle that makes binutils use fast symbolization (using nm), which is much faster than addr2line but provides only symbol
internal/binutils/binutils.go:121
↓ 3 callers
Method
SetTools
SetTools processes the contents of the tools option. It expects a set of entries separated by commas; each entry is a pair of the form t:path, where c
internal/binutils/binutils.go:130
↓ 3 callers
Function
ShortenFunctionName
ShortenFunctionName returns a shortened version of a function's name.
internal/graph/graph.go:466
↓ 3 callers
Method
SortNodes
SortNodes sorts the nodes in a graph based on a specific heuristic.
internal/graph/graph.go:828
↓ 3 callers
Method
Total
Total returns the total number of samples in a report.
internal/report/report.go:1340
↓ 3 callers
Method
TrimTree
TrimTree trims a Graph in forest form, keeping only the nodes in kept. This will not work correctly if even a single node has multiple parents.
internal/graph/graph.go:479
↓ 3 callers
Method
WriteUncompressed
WriteUncompressed writes the profile as a marshaled protobuf.
profile/profile.go:353
↓ 3 callers
Function
adjust
adjust shifts the specified address by the signed offset. It returns the adjusted address. It signals that the address cannot be adjusted without an o
internal/symbolz/symbolz.go:184
↓ 3 callers
Method
applyURL
applyURL updates *cfg based on params.
internal/driver/config.go:326
↓ 3 callers
Function
baseFlags
()
internal/driver/driver_test.go:358
↓ 3 callers
Function
benchmarkURL
(b *testing.B, path string, needDot bool)
internal/driver/webui_test.go:309
↓ 3 callers
Function
browsers
browsers returns a list of commands to attempt for web visualization.
internal/driver/commands.go:341
↓ 3 callers
Function
checkTestSample
(p *Profile, want []uint64)
profile/legacy_profile_test.go:99
↓ 3 callers
Function
chooseExe
chooseExe finds and returns path to preferred binary. names is a list of names to search on both Linux and OSX. osxNames is a list of names specific t
internal/binutils/binutils.go:194
↓ 3 callers
Function
combineProfiles
(profiles []*profile.Profile, msrcs []plugin.MappingSources)
internal/driver/fetch.go:244
↓ 3 callers
Method
comparePrintableName
comparePrintableName compares NodeInfo lexicographically the same way as `i.PrintableName() < right.PrintableName()`, but much more performant.
internal/graph/graph.go:200
↓ 3 callers
Function
createEmptyNode
createEmptyNode creates a node without any edges.
internal/graph/graph_test.go:153
↓ 3 callers
Method
cumValue
()
internal/report/report.go:628
↓ 3 callers
Function
deferDeleteTempFile
deferDeleteTempFile marks a file to be deleted by next call to Cleanup()
internal/driver/tempfile.go:42
↓ 3 callers
Function
dotColor
dotColor returns a color for the given score (between -1.0 and 1.0), with -1.0 colored green, 0.0 colored grey, and 1.0 colored red. If isBackground i
internal/graph/dotgraph.go:330
↓ 3 callers
Function
encodeInt64
(b *buffer, tag int, x int64)
profile/proto.go:110
↓ 3 callers
Method
findOrAddTag
(label, unit string, value int64)
internal/graph/graph.go:712
↓ 3 callers
Function
findSymbol
(syms []*plugin.Sym, name string)
internal/binutils/binutils_test.go:322
↓ 3 callers
Method
flatValue
()
internal/report/report.go:621
↓ 3 callers
Method
get
get returns the current representation for bu, initializing it if necessary.
internal/binutils/binutils.go:72
↓ 3 callers
Function
getRoot
* Retrieves the root element for SVG manipulation. The element is then cached into the svgRoot global variable.
third_party/svgpan/svgpan.js:85
↓ 3 callers
Function
graphTotal
(g *graph.Graph)
internal/report/report.go:1198
↓ 3 callers
Function
identifyNumLabelUnits
identifyNumLabelUnits returns a map of numeric label keys to the units associated with those keys.
internal/driver/driver.go:353
↓ 3 callers
Function
initTools
(b *binrep, config string)
internal/binutils/binutils.go:134
↓ 3 callers
Function
isLocalhost
(host string)
internal/driver/webui.go:231
↓ 3 callers
Function
isProfileType
(p *Profile, types [][]string)
profile/legacy_profile.go:1115
↓ 3 callers
Method
line
line returns the line numbered "lineno" in path, or _,false if lineno is out of range.
internal/report/source.go:974
↓ 3 callers
Function
listHelp
(c string, redirect bool)
internal/driver/commands.go:327
↓ 3 callers
Function
makeEdgeInline
(edgeMap EdgeMap, node *Node)
internal/graph/graph_test.go:132
↓ 3 callers
Function
makeExpectedEdgeResidual
makeExpectedEdgeResidual makes the edge from parent to child residual.
internal/graph/graph_test.go:127
↓ 3 callers
Function
makeFakeProfile
()
browsertests/testutils.go:105
↓ 3 callers
Function
makeFileLocation
makeFileLocation switches loc from function to file-granularity.
internal/report/stacks_test.go:229
↓ 3 callers
Function
makeProfileCopier
(src *profile.Profile)
internal/driver/driver.go:394
↓ 3 callers
Function
makeTestServer
(t testing.TB, prof *profile.Profile)
browsertests/testutils.go:17
↓ 3 callers
Function
mappingSources
mappingSources creates MappingSources map with a single item.
internal/driver/fetch_test.go:577
↓ 3 callers
Method
matchesName
matchesName returns whether the location matches the regular expression. It checks any available function names, file names, and mapping object filena
profile/filter.go:179
↓ 3 callers
Function
maybeSkipBrowserTest
(t *testing.T)
browsertests/browser_test.go:32
↓ 3 callers
Function
newContext
(ctx context.Context, t *testing.T)
browsertests/browser_test.go:114
↓ 3 callers
Function
newSynthCode
(mappings []*profile.Mapping)
internal/report/synth.go:13
↓ 3 callers
Method
openELF
(name string, start, limit, offset uint64, relocationSymbol string)
internal/binutils/binutils.go:428
↓ 3 callers
Function
parallel
parallel runs n copies of fn in parallel.
profile/profile_test.go:1895
↓ 3 callers
Function
parseFlags
parseFlags parses the command lines through the specified flags package and returns the source of the profile and optionally the command for the kind
internal/driver/cli.go:46
← previous
next →
101–200 of 1,045, ranked by callers