MCPcopy Create free account

hub / github.com/google/pprof / functions

Functions1,045 in github.com/google/pprof

↓ 3 callersFunctionpprofQuoteMeta
(str)
internal/driver/html/common.js:712
↓ 3 callersFunctionrect
(t)
browsertests/testdata/testflame.js:26
↓ 3 callersFunctionrenderStacks
(depth, xscale, x, y, places, direction)
internal/driver/html/stacks.js:262
↓ 3 callersFunctionrightPad
rightPad pads the input with spaces on the right-hand-side to make it have at least width n. It treats tabs as enough spaces that lead to the next 8-a
internal/report/source.go:1087
↓ 3 callersFunctionsampleTypes
(p *profile.Profile)
internal/driver/interactive.go:173
↓ 3 callersFunctionselect
(n, elem)
internal/driver/html/common.js:511
↓ 3 callersFunctionserialize
(p *Profile)
profile/profile.go:336
↓ 3 callersFunctionsetHrefParams
(elem, paramSetter)
internal/driver/html/common.js:612
↓ 3 callersFunctionsettingsDirAndFile
settingsDirAndFile returns a directory in which settings should be stored and the name of the settings file. The caller must delete the directory when
internal/driver/settings_test.go:14
↓ 3 callersMethodstring
string dumps a text representation of a sample. Intended mainly for debugging purposes.
profile/profile.go:662
↓ 3 callersFunctiontrimPath
trimPath cleans up a path by removing prefixes that are commonly found on profiles plus configured prefixes. TODO(aalexand): Consider optimizing out t
internal/report/source.go:1036
↓ 3 callersFunctionunitText
(value)
internal/driver/html/stacks.js:591
↓ 3 callersFunctionunselect
(n)
internal/driver/html/common.js:507
↓ 3 callersFunctionusage
usage returns a string describing the pprof commands and configuration options. if commandLine is set, the output reflect cli usage.
internal/driver/commands.go:260
↓ 3 callersMethodwrite
(string)
internal/binutils/addr2liner.go:56
↓ 3 callersFunctionwriteSettings
writeSettings saves settings to fname.
internal/driver/settings.go:53
↓ 2 callersMethodBuildID
BuildID returns the GNU build ID of the file, or an empty string.
driver/driver.go:169
↓ 2 callersFunctionCommonValueType
CommonValueType returns the finest type from a set of compatible types.
internal/measurement/measurement.go:88
↓ 2 callersFunctionCompatibilizeSampleTypes
CompatibilizeSampleTypes makes profiles compatible to be compared/merged. It keeps sample types that appear in all profiles only and drops/reorders th
profile/merge.go:586
↓ 2 callersMethodDiffBaseSample
DiffBaseSample returns true if a sample belongs to the diff base and false otherwise.
profile/profile.go:772
↓ 2 callersMethodDocURL
DocURL returns the documentation URL for Report, or "" if not available.
internal/report/report.go:1346
↓ 2 callersFunctionEncodeJSON
EncodeJSON encodes a value into a byte array. This is intended for testing purposes.
internal/proftest/proftest.go:70
↓ 2 callersMethodFilterSamplesByName
FilterSamplesByName filters the samples in a profile and only keeps samples where at least one frame matches focus but none match ignore. Returns true
profile/filter.go:24
↓ 2 callersMethodFilterTagsByName
FilterTagsByName filters the tags in a profile and only keeps tags that match show and not hide.
profile/filter.go:148
↓ 2 callersFunctionFindTextProgHeader
FindTextProgHeader finds the program segment header containing the .text section or nil if the segment cannot be found.
internal/elfexec/elfexec.go:287
↓ 2 callersMethodFloat64
(name string, def float64, usage string)
driver/driver.go:93
↓ 2 callersFunctionGetDOT
GetDOT returns a graph suitable for dot processing along with some configuration information.
internal/report/report.go:1136
↓ 2 callersMethodHasLabel
HasLabel returns true if a sample has a label with indicated key and value.
profile/profile.go:737
↓ 2 callersFunctionHeaderForFileOffset
HeaderForFileOffset attempts to identify a unique program header that includes the given file offset. It returns an error if it cannot identify a uniq
internal/elfexec/elfexec.go:358
↓ 2 callersMethodLegend
Legend returns the list of lines to display as the legend.
internal/report/stacks.go:208
↓ 2 callersMethodNameComponents
NameComponents returns the components of the printable name to be used for a node.
internal/graph/graph.go:167
↓ 2 callersFunctionNewDefault
NewDefault builds a new report indexing the last sample value available.
internal/report/report.go:1285
↓ 2 callersMethodNumLabelUnits
NumLabelUnits returns a map of numeric label keys to the units associated with those keys and a map of those keys to any units that were encountered b
profile/profile.go:499
↓ 2 callersFunctionPProf
PProf acquires a profile, and symbolizes it using a profile manager. Then it generates a report formatted according to the options selected through th
internal/driver/driver.go:37
↓ 2 callersFunctionPProf
PProf acquires a profile, and symbolizes it using a profile manager. Then it generates a report formatted according to the options selected through th
driver/driver.go:33
↓ 2 callersMethodParseMemoryMapFromScanner
ParseMemoryMapFromScanner parses a memory map in the format of proc/self/maps or a variety of legacy format, and overrides the mappings in the current
profile/legacy_profile.go:1031
↓ 2 callersFunctionParseUncompressed
ParseUncompressed parses an uncompressed protobuf into a profile.
profile/profile.go:237
↓ 2 callersFunctionProgramHeadersForMapping
ProgramHeadersForMapping returns the program segment headers that overlap the runtime mapping with file offset mapOff and memory size mapSz. We skip o
internal/elfexec/elfexec.go:310
↓ 2 callersMethodRemoveLabel
RemoveLabel removes all labels associated with the specified key for all samples in the profile.
profile/profile.go:730
↓ 2 callersMethodRemoveRedundantEdges
RemoveRedundantEdges removes residual edges if the destination can be reached through another path. This is done to simplify the graph while preservin
internal/graph/graph.go:899
↓ 2 callersMethodRemoveUninteresting
RemoveUninteresting prunes and elides profiles using built-in tables of uninteresting function names.
profile/prune.go:132
↓ 2 callersMethodSelectTopNodes
SelectTopNodes returns a set of the top maxNodes nodes in a graph.
internal/graph/graph.go:851
↓ 2 callersMethodSetLabel
SetLabel sets the specified key to the specified value for all samples in the profile.
profile/profile.go:718
↓ 2 callersMethodShowFrom
ShowFrom drops all stack frames above the highest matching frame and returns whether a match was found. If showFrom is nil it returns false and does n
profile/filter.go:91
↓ 2 callersMethodStacks
Stacks returns a StackSet for the profile in rpt.
internal/report/stacks.go:83
↓ 2 callersMethodStringList
StringList is similar to String but allows multiple values for a single flag
driver/driver.go:98
↓ 2 callersFunctionSymbolize
Symbolize symbolizes profile p by parsing data returned by a symbolz handler. syms receives the symbolz query (hex addresses separated by '+') and ret
internal/symbolz/symbolz.go:43
↓ 2 callersMethodSymbolize
(mode string, srcs MappingSources, prof *profile.Profile)
driver/driver.go:127
↓ 2 callersFunctionTextItems
TextItems returns a list of text items from the report and a list of labels that describe the report.
internal/report/report.go:789
↓ 2 callersMethodTrimLowFrequencyEdges
TrimLowFrequencyEdges removes edges that have less than the specified weight. Returns the number of edges removed
internal/graph/graph.go:813
↓ 2 callersMethodTrimLowFrequencyTags
TrimLowFrequencyTags removes tags that have less than the specified weight.
internal/graph/graph.go:791
↓ 2 callersMethodUnsymbolizable
Unsymbolizable returns true if a mapping points to a binary for which locations can't be symbolized in principle, at least now. Examples are "[vdso]",
profile/profile.go:849
↓ 2 callersFunctionaddFlags
addFlags parses flag descriptions and adds them to the testFlags
internal/driver/driver_test.go:243
↓ 2 callersFunctionaddLabelNodes
addLabelNodes adds pseudo stack frames "label:value" to each Sample with labels matching the supplied keys. rootKeys adds frames at the root of the c
internal/driver/tagroot.go:17
↓ 2 callersFunctionaddLineInfo
(str string, line profile.Line)
internal/report/stacks.go:212
↓ 2 callersMethodaddStack
(addr uint64, frames []plugin.Frame)
internal/report/source.go:465
↓ 2 callersFunctionallSuffixes
allSuffixes returns a list of suffixes (in order of decreasing length) found by splitting at re.
internal/report/shortnames.go:48
↓ 2 callersFunctionapplyCommandOverrides
(cmd string, outputFormat int, cfg config)
internal/driver/driver.go:178
↓ 2 callersFunctionapplyFocus
applyFocus filters samples based on the focus/ignore options
internal/driver/driver_focus.go:32
↓ 2 callersFunctioncallgrindAddress
callgrindAddress implements the callgrind subposition compression scheme if possible. If prevInfo != nil, it contains the previous address. The curren
internal/report/report.go:1045
↓ 2 callersFunctioncancelActiveMenu
()
internal/driver/html/common.js:223
↓ 2 callersFunctioncatRegex
(a, b string)
internal/driver/interactive.go:309
↓ 2 callersFunctioncheckProfileHasFunction
(p *profile.Profile, fname string)
internal/driver/fetch_test.go:798
↓ 2 callersFunctioncheckSymbolized
(locs []*profile.Location, wantSymbolized bool)
internal/symbolz/symbolz_test.go:116
↓ 2 callersFunctionchunkedGrab
chunkedGrab fetches the profiles described in source and merges them into a single profile. It fetches a chunk of profiles concurrently, with a maximu
internal/driver/fetch.go:173
↓ 2 callersFunctioncleanupDuplicateLocations
(p *Profile)
profile/legacy_profile.go:389
↓ 2 callersFunctioncleanupTempFiles
cleanupTempFiles removes any temporary files selected for deferred cleaning.
internal/driver/tempfile.go:49
↓ 2 callersFunctionclearDetails
()
internal/driver/html/stacks.js:200
↓ 2 callersFunctionclearLineAndColumn
clearLineAndColumn drops line and column numbers to simplify tests that do not care about line and column numbers.
internal/report/stacks_test.go:214
↓ 2 callersFunctionclosedError
()
internal/driver/fetch_test.go:605
↓ 2 callersMethodcollapsedTags
collapsedTags trims and sorts a slice of tags.
internal/graph/dotgraph.go:399
↓ 2 callersFunctioncollectMappingSources
collectMappingSources saves the mapping sources of a profile.
internal/driver/fetch.go:363
↓ 2 callersFunctioncombineHeaders
combineHeaders checks that all profiles can be merged and returns their combined profile.
profile/merge.go:468
↓ 2 callersMethodcompatible
compatible determines if two profiles can be compared/merged. returns nil if the profiles are compatible; otherwise an error with details on the incom
profile/merge.go:524
↓ 2 callersFunctioncomputeTotal
computeTotal computes the sum of the absolute value of all sample values. If any samples have label indicating they belong to the diff base, then the
internal/report/report.go:1302
↓ 2 callersFunctionconfigMenu
configMenu returns a list of items to add to a menu in the web UI.
internal/driver/settings.go:81
↓ 2 callersFunctioncontentionProfile
()
internal/driver/driver_test.go:897
↓ 2 callersFunctioncountTags
countTags counts the tags with flat count. This underestimates the number of tags being displayed, but in practice is close enough.
internal/graph/graph.go:879
↓ 2 callersFunctioncpuProfile
cpuProfile returns a new Profile from C++ profilez data. b is the profile bytes after the header, period is the profiling period, and parse is a funct
profile/legacy_profile.go:331
↓ 2 callersFunctioncpuProfile
()
internal/driver/driver_test.go:587
↓ 2 callersFunctioncreateExpectedEdges
createExpectedEdges creates directed edges from the parent to each of the children.
internal/graph/graph_test.go:179
↓ 2 callersFunctiondecodeInt64s
(b *buffer, x *[]int64)
profile/proto.go:297
↓ 2 callersFunctiondemangleSingleFunction
(fn *profile.Function, opts []demangle.Option)
internal/symbolizer/symbolizer.go:284
↓ 2 callersFunctiondemanglerModeToOptions
(demanglerMode string)
internal/symbolizer/symbolizer.go:269
↓ 2 callersFunctiondiffText
(from, to)
internal/driver/html/stacks.js:577
↓ 2 callersFunctiondisassemble
disassemble parses the output of the objdump command and returns the assembly instructions in a slice.
internal/binutils/disasm.go:111
↓ 2 callersFunctiondropEmpty
dropEmpty list takes a slice of string pointers, and outputs a slice of non-empty strings associated with the flag.
internal/driver/cli.go:189
↓ 2 callersFunctiondropEmptyStrings
dropEmptyStrings filters a slice to only non-empty strings
internal/driver/driver.go:244
↓ 2 callersFunctionedgeDebugString
(edge *Edge)
internal/graph/graph_test.go:24
↓ 2 callersFunctionedgeEntropyScore
edgeEntropyScore computes the entropy value for a set of edges coming in or out of a node. Entropy (as defined in information theory) refers to the am
internal/graph/graph.go:1098
↓ 2 callersFunctionedgeMapsDebugString
(in, out EdgeMap)
internal/graph/graph_test.go:34
↓ 2 callersFunctionedgeMapsEqual
edgeMapsEqual checks if all the edges in this equal all the edges in that.
internal/graph/graph_test.go:78
↓ 2 callersFunctioneditSettings
editSettings edits settings by applying fn to them.
internal/driver/settings.go:113
↓ 2 callersMethodencode
(*buffer)
profile/proto.go:55
↓ 2 callersFunctionencodeInt64s
(b *buffer, tag int, x []int64)
profile/proto.go:115
↓ 2 callersFunctionequalValueType
equalValueType returns true if the two value types are semantically equal. It ignores the internal fields used during encode/decode.
profile/merge.go:543
↓ 2 callersFunctionescapeAllForDot
escapeAllForDot applies escapeForDot to all strings in the given slice.
internal/graph/dotgraph.go:481
↓ 2 callersFunctionfetch
fetch fetches a profile from source, within the timeout specified, producing messages through the ui. It returns the profile and the url of the actual
internal/driver/fetch.go:496
↓ 2 callersFunctionfetchBoxes
()
browsertests/testdata/testflame.js:16
↓ 2 callersFunctionfileNameSuffixes
fileNameSuffixes returns a non-empty sequence of shortened file names (in decreasing preference) that can be used to represent name.
internal/report/shortnames.go:31
← previousnext →201–300 of 1,045, ranked by callers