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
↓ 58 callers
Method
Copy
Copy makes a fully independent copy of a profile.
profile/profile.go:865
↓ 51 callers
Method
String
(name string, def string, usage string)
driver/driver.go:94
↓ 41 callers
Method
Close
Close closes the file, releasing associated resources.
driver/driver.go:185
↓ 38 callers
Method
PrintErr
PrintErr shows an error message to the user. It formats the text as fmt.Print would and adds a final \n if not already present. For line-based UI, Pri
driver/driver.go:220
↓ 35 callers
Function
abs64
(i int64)
internal/graph/graph.go:1182
↓ 31 callers
Function
helpText
(s ...string)
internal/driver/commands.go:254
↓ 28 callers
Method
Name
Name returns the underlying file name, if available.
driver/driver.go:163
↓ 28 callers
Function
frame
(fname, file string, line int, column int)
internal/symbolizer/symbolizer_test.go:327
↓ 23 callers
Function
Scale
Scale a measurement from a unit to a different unit and returns the scaled value and the target unit. The returned target unit will be empty if uninte
internal/measurement/measurement.go:128
↓ 22 callers
Function
decodeInt64
(b *buffer, x *int64)
profile/proto.go:289
↓ 20 callers
Method
Write
Write writes the profile as a gzip-compressed marshaled protobuf.
profile/profile.go:345
↓ 20 callers
Function
encodeInt64Opt
(b *buffer, tag int, x int64)
profile/proto.go:135
↓ 19 callers
Function
addString
(strings map[string]int, s string)
profile/encode.go:577
↓ 19 callers
Function
currentConfig
()
internal/driver/config.go:81
↓ 19 callers
Function
testSample
testSample returns a profile sample with specified value and stack. Note: callees come first in sample stacks.
internal/report/report_test.go:256
↓ 18 callers
Method
set
set sets the value of field f in cfg to value.
internal/driver/config.go:225
↓ 17 callers
Method
FlatValue
FlatValue returns the exclusive value for this tag, computing the mean if a divisor is available.
internal/graph/graph.go:303
↓ 17 callers
Method
Open
(name string)
driver/driver.go:83
↓ 17 callers
Function
Percentage
Percentage computes the percentage of total of a value, and encodes it as a string. At least two digits of precision are printed.
internal/measurement/measurement.go:166
↓ 17 callers
Function
getString
(strings []string, strng *int64, err error)
profile/encode.go:586
↓ 16 callers
Method
Bool
Bool, Int, Float64, and String define new flags, like the functions of the same name in package flag.
driver/driver.go:91
↓ 16 callers
Method
PrintableName
PrintableName calls the Node's Formatter function with a single space separator.
internal/graph/graph.go:162
↓ 15 callers
Method
Parse
Parse initializes the flags with their values for this run and returns the non-flag command line arguments. If an unknown flag is encountered or there
driver/driver.go:114
↓ 15 callers
Method
Sort
Sort reorders a slice of nodes based on the specified ordering criteria. The result is sorted in decreasing order for (absolute) numeric quantities, a
internal/graph/graph.go:958
↓ 15 callers
Function
reportHelp
(c string, cum, redirect bool)
internal/driver/commands.go:310
↓ 14 callers
Function
Parse
Parse parses a profile and checks for its validity. The input may be a gzip-compressed encoded protobuf or one of many legacy profile formats which ma
profile/profile.go:172
↓ 14 callers
Method
get
get returns the value of field f in cfg.
internal/driver/config.go:210
↓ 13 callers
Function
Diff
Diff compares two byte arrays using the diff tool to highlight the differences. It is meant for testing purposes to display the differences between ex
internal/proftest/proftest.go:37
↓ 13 callers
Method
Print
Print shows a message to the user. It formats the text as fmt.Print would and adds a final \n if not already present. For line-based UI, Print writes
driver/driver.go:215
↓ 12 callers
Function
elem
(id)
internal/driver/html/common.js:277
↓ 12 callers
Function
setCurrentConfig
(cfg config)
internal/driver/config.go:87
↓ 12 callers
Function
uint64p
(n uint64)
internal/elfexec/elfexec_test.go:116
↓ 12 callers
Function
valueOrDot
valueOrDot formats a value according to a report, intercepting zero values.
internal/report/report.go:689
↓ 11 callers
Method
CumValue
CumValue returns the inclusive value for this tag, computing the mean if a divisor is available.
internal/graph/graph.go:312
↓ 11 callers
Function
Merge
Merge merges all the profiles in profs into a single Profile. Returns a new profile independent of the input profiles. The merged profile is compacted
profile/merge.go:44
↓ 11 callers
Function
New
New builds a new report indexing the sample values interpreting the samples with the provided function.
internal/report/report.go:1271
↓ 11 callers
Function
addString
(name []string, f *testFlags, components []string)
internal/driver/driver_test.go:291
↓ 11 callers
Function
homeEnv
()
internal/driver/fetch.go:287
↓ 11 callers
Function
warnNoMatches
(match bool, option string, ui plugin.UI)
internal/driver/driver_focus.go:214
↓ 10 callers
Function
ComposeDot
Number of nodelets for labels (both numeric and non) ComposeDot creates and writes a in the DOT format to the writer, using the configurations given.
internal/graph/dotgraph.go:57
↓ 10 callers
Function
decodeUint64
(b *buffer, x *uint64)
profile/proto.go:323
↓ 10 callers
Function
setEdgeWeight
(edgeMap EdgeMap, node *Node, weight int64)
internal/graph/graph_test.go:136
↓ 9 callers
Function
ProfileLabels
ProfileLabels returns printable labels for a profile.
internal/report/report.go:1158
↓ 9 callers
Function
checkUnitText
(unit, v, expect)
browsertests/testdata/testflame.js:113
↓ 9 callers
Function
decodeMessage
(b *buffer, m message)
profile/proto.go:266
↓ 9 callers
Function
encodeUint64Opt
(b *buffer, tag int, x uint64)
profile/proto.go:103
↓ 9 callers
Function
makeTestStacks
makeTestStacks generates a StackSet from a supplied list of samples.
internal/report/stacks_test.go:14
↓ 8 callers
Method
ObjAddr
ObjAddr returns the objdump address corresponding to a runtime address.
driver/driver.go:166
↓ 8 callers
Method
addrInfo
addrInfo returns the stack frame information for a specific program address. It returns nil if the address could not be identified.
internal/binutils/addr2liner.go:210
↓ 8 callers
Function
awayFromTTY
awayFromTTY saves the output in a file if it would otherwise go to the terminal screen. This is used to avoid dumping binary data on the screen.
internal/driver/commands.go:370
↓ 8 callers
Function
baseAttrsAndConfig
()
internal/graph/dotgraph_test.go:200
↓ 8 callers
Function
checkWidth
(t, fraction)
browsertests/testdata/testflame.js:56
↓ 8 callers
Function
compareGraphs
(t *testing.T, got []byte, wantFile string)
internal/graph/dotgraph_test.go:215
↓ 8 callers
Function
compileRegexOption
(name, value string, err error)
internal/driver/driver_focus.go:70
↓ 8 callers
Function
encodeMessage
(b *buffer, tag int, m message)
profile/proto.go:167
↓ 8 callers
Method
err
(...args)
browsertests/testdata/testfixture.js:27
↓ 8 callers
Function
invokeDot
(format string)
internal/driver/commands.go:385
↓ 8 callers
Function
setMode
(m)
internal/driver/html/common.js:78
↓ 8 callers
Function
testSourceURL
(port int)
internal/driver/driver_test.go:259
↓ 7 callers
Function
baseGraph
()
internal/graph/dotgraph_test.go:166
↓ 7 callers
Function
bind
(event, elem, fn)
internal/driver/html/common.js:366
↓ 7 callers
Function
configure
configure stores the name=value mapping into the current config, correctly handling the case when name identifies a particular choice in a field.
internal/driver/config.go:296
↓ 7 callers
Function
defaultConfig
defaultConfig returns the default configuration values; it is unaffected by flags and interactive assignments.
internal/driver/config.go:63
↓ 7 callers
Function
heapProfile
()
internal/driver/driver_test.go:780
↓ 7 callers
Method
readLine
()
internal/binutils/addr2liner.go:57
↓ 7 callers
Function
sampleIndex
(flag *bool, si string, sampleType, option string, ui plugin.UI)
internal/driver/cli.go:267
↓ 7 callers
Method
write
write appends a null-terminated string and returns its starting index.
internal/binutils/binutils_test.go:847
↓ 6 callers
Method
Aggregate
Aggregate merges the locations in the profile into equivalence classes preserving the request attributes. It also updates the samples to point to the
profile/profile.go:443
↓ 6 callers
Method
CheckValid
CheckValid tests whether the profile is valid. Checks include, but are not limited to: - len(Profile.Sample[n].value) == len(Profile.value_unit) - Sam
profile/profile.go:362
↓ 6 callers
Function
ScaledLabel
ScaledLabel scales the passed-in measurement (if necessary) and returns the label used to describe a float measurement.
internal/measurement/measurement.go:155
↓ 6 callers
Function
SortTags
SortTags sorts a slice of tags based on their weight.
internal/graph/graph.go:323
↓ 6 callers
Method
SourceLine
SourceLine reports the source line information for a given address in the file. Due to inlining, the source line information is in general a list of p
driver/driver.go:175
↓ 6 callers
Method
Sum
Sum adds the flat and cum values of a set of nodes.
internal/graph/graph.go:649
↓ 6 callers
Method
Symbols
Symbols returns a list of symbols in the object file. If r is not nil, Symbols restricts the list to symbols with names matching the regular expressio
driver/driver.go:182
↓ 6 callers
Function
abs64
(i int64)
internal/report/report.go:1361
↓ 6 callers
Function
checkCalls
(a, b, gap = 0)
browsertests/testdata/testflame.js:38
↓ 6 callers
Function
compareNodes
compareNodes compares two nodes to provide a deterministic ordering between them. Two nodes cannot have the same Node.Info value.
internal/graph/graph.go:1064
↓ 6 callers
Function
createEdges
createEdges creates directed edges from the parent to each of the children.
internal/graph/graph_test.go:141
↓ 6 callers
Function
decodeVarint
(data []byte)
profile/proto.go:201
↓ 6 callers
Function
encodeVarint
(b *buffer, x uint64)
profile/proto.go:64
↓ 6 callers
Function
escapeForDot
escapeForDot escapes double quotes and backslashes, and replaces Graphviz's "center" character (\n) with a left-justified character. See https://graph
internal/graph/dotgraph.go:492
↓ 6 callers
Function
find
(name)
internal/driver/html/stacks.js:595
↓ 6 callers
Method
get
(id uint64)
profile/merge.go:561
↓ 6 callers
Function
invokeVisualizer
(suffix string, visualizers []string)
internal/driver/commands.go:410
↓ 6 callers
Function
isSpaceOrComment
(line string)
profile/legacy_profile.go:72
↓ 6 callers
Method
makeReport
makeReport generates a report for the specified command. If configEditor is not null, it is used to edit the config used for the report.
internal/driver/webui.go:261
↓ 6 callers
Method
newTrimmedGraph
newTrimmedGraph creates a graph for this report, trimmed according to the report options.
internal/report/report.go:124
↓ 6 callers
Method
render
render responds with html generated by passing data to the named template.
internal/driver/webui.go:297
↓ 6 callers
Function
setDefaults
setDefaults returns a new plugin.Options with zero fields sets to sensible defaults.
internal/driver/options.go:32
↓ 6 callers
Function
setHrefParam
(id, param, src)
internal/driver/html/stacks.js:124
↓ 5 callers
Function
Label
Label returns the label used to describe a certain measurement.
internal/measurement/measurement.go:149
↓ 5 callers
Function
LargeProfile
LargeProfile returns a large profile that may be useful in benchmarks. If the flag --large_profile is set, the contents of the file named by the flag
internal/proftest/proftest.go:151
↓ 5 callers
Function
New
New returns a round tripper for making requests with the specified cert, key, and ca. The flags tls_cert, tls_key, and tls_ca are added to the flagset
internal/transport/transport.go:49
↓ 5 callers
Method
Normalize
Normalize normalizes the source profile by multiplying each value in profile by the ratio of the sum of the base profile's values of that sample type
profile/merge.go:94
↓ 5 callers
Method
Open
Open satisfies the plugin.ObjTool interface.
internal/binutils/binutils.go:287
↓ 5 callers
Method
address
address returns the synthetic address for loc, creating one if needed.
internal/report/synth.go:25
↓ 5 callers
Function
callgrindName
callgrindName implements the callgrind naming compression scheme. For names not previously seen returns "(N) name", where N is a unique index. For nam
internal/report/report.go:1029
↓ 5 callers
Function
checkType
(b *buffer, typ int)
profile/proto.go:259
↓ 5 callers
Method
close
()
internal/binutils/addr2liner.go:58
↓ 5 callers
Method
computeBase
computeBase computes the relocation base for the given binary file only if the elfMapping field is set. It populates the base and isData fields and re
internal/binutils/binutils.go:592
next →
1–100 of 1,045, ranked by callers