MCPcopy Create free account

hub / github.com/google/pprof / functions

Functions1,045 in github.com/google/pprof

↓ 58 callersMethodCopy
Copy makes a fully independent copy of a profile.
profile/profile.go:865
↓ 51 callersMethodString
(name string, def string, usage string)
driver/driver.go:94
↓ 41 callersMethodClose
Close closes the file, releasing associated resources.
driver/driver.go:185
↓ 38 callersMethodPrintErr
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 callersFunctionabs64
(i int64)
internal/graph/graph.go:1182
↓ 31 callersFunctionhelpText
(s ...string)
internal/driver/commands.go:254
↓ 28 callersMethodName
Name returns the underlying file name, if available.
driver/driver.go:163
↓ 28 callersFunctionframe
(fname, file string, line int, column int)
internal/symbolizer/symbolizer_test.go:327
↓ 23 callersFunctionScale
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 callersFunctiondecodeInt64
(b *buffer, x *int64)
profile/proto.go:289
↓ 20 callersMethodWrite
Write writes the profile as a gzip-compressed marshaled protobuf.
profile/profile.go:345
↓ 20 callersFunctionencodeInt64Opt
(b *buffer, tag int, x int64)
profile/proto.go:135
↓ 19 callersFunctionaddString
(strings map[string]int, s string)
profile/encode.go:577
↓ 19 callersFunctioncurrentConfig
()
internal/driver/config.go:81
↓ 19 callersFunctiontestSample
testSample returns a profile sample with specified value and stack. Note: callees come first in sample stacks.
internal/report/report_test.go:256
↓ 18 callersMethodset
set sets the value of field f in cfg to value.
internal/driver/config.go:225
↓ 17 callersMethodFlatValue
FlatValue returns the exclusive value for this tag, computing the mean if a divisor is available.
internal/graph/graph.go:303
↓ 17 callersMethodOpen
(name string)
driver/driver.go:83
↓ 17 callersFunctionPercentage
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 callersFunctiongetString
(strings []string, strng *int64, err error)
profile/encode.go:586
↓ 16 callersMethodBool
Bool, Int, Float64, and String define new flags, like the functions of the same name in package flag.
driver/driver.go:91
↓ 16 callersMethodPrintableName
PrintableName calls the Node's Formatter function with a single space separator.
internal/graph/graph.go:162
↓ 15 callersMethodParse
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 callersMethodSort
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 callersFunctionreportHelp
(c string, cum, redirect bool)
internal/driver/commands.go:310
↓ 14 callersFunctionParse
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 callersMethodget
get returns the value of field f in cfg.
internal/driver/config.go:210
↓ 13 callersFunctionDiff
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 callersMethodPrint
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 callersFunctionelem
(id)
internal/driver/html/common.js:277
↓ 12 callersFunctionsetCurrentConfig
(cfg config)
internal/driver/config.go:87
↓ 12 callersFunctionuint64p
(n uint64)
internal/elfexec/elfexec_test.go:116
↓ 12 callersFunctionvalueOrDot
valueOrDot formats a value according to a report, intercepting zero values.
internal/report/report.go:689
↓ 11 callersMethodCumValue
CumValue returns the inclusive value for this tag, computing the mean if a divisor is available.
internal/graph/graph.go:312
↓ 11 callersFunctionMerge
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 callersFunctionNew
New builds a new report indexing the sample values interpreting the samples with the provided function.
internal/report/report.go:1271
↓ 11 callersFunctionaddString
(name []string, f *testFlags, components []string)
internal/driver/driver_test.go:291
↓ 11 callersFunctionhomeEnv
()
internal/driver/fetch.go:287
↓ 11 callersFunctionwarnNoMatches
(match bool, option string, ui plugin.UI)
internal/driver/driver_focus.go:214
↓ 10 callersFunctionComposeDot
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 callersFunctiondecodeUint64
(b *buffer, x *uint64)
profile/proto.go:323
↓ 10 callersFunctionsetEdgeWeight
(edgeMap EdgeMap, node *Node, weight int64)
internal/graph/graph_test.go:136
↓ 9 callersFunctionProfileLabels
ProfileLabels returns printable labels for a profile.
internal/report/report.go:1158
↓ 9 callersFunctioncheckUnitText
(unit, v, expect)
browsertests/testdata/testflame.js:113
↓ 9 callersFunctiondecodeMessage
(b *buffer, m message)
profile/proto.go:266
↓ 9 callersFunctionencodeUint64Opt
(b *buffer, tag int, x uint64)
profile/proto.go:103
↓ 9 callersFunctionmakeTestStacks
makeTestStacks generates a StackSet from a supplied list of samples.
internal/report/stacks_test.go:14
↓ 8 callersMethodObjAddr
ObjAddr returns the objdump address corresponding to a runtime address.
driver/driver.go:166
↓ 8 callersMethodaddrInfo
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 callersFunctionawayFromTTY
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 callersFunctionbaseAttrsAndConfig
()
internal/graph/dotgraph_test.go:200
↓ 8 callersFunctioncheckWidth
(t, fraction)
browsertests/testdata/testflame.js:56
↓ 8 callersFunctioncompareGraphs
(t *testing.T, got []byte, wantFile string)
internal/graph/dotgraph_test.go:215
↓ 8 callersFunctioncompileRegexOption
(name, value string, err error)
internal/driver/driver_focus.go:70
↓ 8 callersFunctionencodeMessage
(b *buffer, tag int, m message)
profile/proto.go:167
↓ 8 callersMethoderr
(...args)
browsertests/testdata/testfixture.js:27
↓ 8 callersFunctioninvokeDot
(format string)
internal/driver/commands.go:385
↓ 8 callersFunctionsetMode
(m)
internal/driver/html/common.js:78
↓ 8 callersFunctiontestSourceURL
(port int)
internal/driver/driver_test.go:259
↓ 7 callersFunctionbaseGraph
()
internal/graph/dotgraph_test.go:166
↓ 7 callersFunctionbind
(event, elem, fn)
internal/driver/html/common.js:366
↓ 7 callersFunctionconfigure
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 callersFunctiondefaultConfig
defaultConfig returns the default configuration values; it is unaffected by flags and interactive assignments.
internal/driver/config.go:63
↓ 7 callersFunctionheapProfile
()
internal/driver/driver_test.go:780
↓ 7 callersMethodreadLine
()
internal/binutils/addr2liner.go:57
↓ 7 callersFunctionsampleIndex
(flag *bool, si string, sampleType, option string, ui plugin.UI)
internal/driver/cli.go:267
↓ 7 callersMethodwrite
write appends a null-terminated string and returns its starting index.
internal/binutils/binutils_test.go:847
↓ 6 callersMethodAggregate
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 callersMethodCheckValid
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 callersFunctionScaledLabel
ScaledLabel scales the passed-in measurement (if necessary) and returns the label used to describe a float measurement.
internal/measurement/measurement.go:155
↓ 6 callersFunctionSortTags
SortTags sorts a slice of tags based on their weight.
internal/graph/graph.go:323
↓ 6 callersMethodSourceLine
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 callersMethodSum
Sum adds the flat and cum values of a set of nodes.
internal/graph/graph.go:649
↓ 6 callersMethodSymbols
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 callersFunctionabs64
(i int64)
internal/report/report.go:1361
↓ 6 callersFunctioncheckCalls
(a, b, gap = 0)
browsertests/testdata/testflame.js:38
↓ 6 callersFunctioncompareNodes
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 callersFunctioncreateEdges
createEdges creates directed edges from the parent to each of the children.
internal/graph/graph_test.go:141
↓ 6 callersFunctiondecodeVarint
(data []byte)
profile/proto.go:201
↓ 6 callersFunctionencodeVarint
(b *buffer, x uint64)
profile/proto.go:64
↓ 6 callersFunctionescapeForDot
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 callersFunctionfind
(name)
internal/driver/html/stacks.js:595
↓ 6 callersMethodget
(id uint64)
profile/merge.go:561
↓ 6 callersFunctioninvokeVisualizer
(suffix string, visualizers []string)
internal/driver/commands.go:410
↓ 6 callersFunctionisSpaceOrComment
(line string)
profile/legacy_profile.go:72
↓ 6 callersMethodmakeReport
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 callersMethodnewTrimmedGraph
newTrimmedGraph creates a graph for this report, trimmed according to the report options.
internal/report/report.go:124
↓ 6 callersMethodrender
render responds with html generated by passing data to the named template.
internal/driver/webui.go:297
↓ 6 callersFunctionsetDefaults
setDefaults returns a new plugin.Options with zero fields sets to sensible defaults.
internal/driver/options.go:32
↓ 6 callersFunctionsetHrefParam
(id, param, src)
internal/driver/html/stacks.js:124
↓ 5 callersFunctionLabel
Label returns the label used to describe a certain measurement.
internal/measurement/measurement.go:149
↓ 5 callersFunctionLargeProfile
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 callersFunctionNew
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 callersMethodNormalize
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 callersMethodOpen
Open satisfies the plugin.ObjTool interface.
internal/binutils/binutils.go:287
↓ 5 callersMethodaddress
address returns the synthetic address for loc, creating one if needed.
internal/report/synth.go:25
↓ 5 callersFunctioncallgrindName
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 callersFunctioncheckType
(b *buffer, typ int)
profile/proto.go:259
↓ 5 callersMethodclose
()
internal/binutils/addr2liner.go:58
↓ 5 callersMethodcomputeBase
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