MCPcopy Create free account

hub / github.com/google/pprof / functions

Functions1,045 in github.com/google/pprof

↓ 5 callersFunctiondecodeBool
(b *buffer, x *bool)
profile/proto.go:374
↓ 5 callersFunctionencodeBoolOpt
(b *buffer, tag int, x bool)
profile/proto.go:161
↓ 5 callersFunctionencodeUint64
(b *buffer, tag int, x uint64)
profile/proto.go:77
↓ 5 callersFunctionfetchProfiles
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 callersFunctiongetEventPoint
* Instance an SVGPoint object with given event coordinates.
third_party/svgpan/svgpan.js:108
↓ 5 callersFunctiongetFlag
(flags testFlags, name string, def T)
browsertests/testutils.go:184
↓ 5 callersFunctionlocationHash
locationHash constructs a string to use as a hashkey for a sample, based on its locations
profile/profile_test.go:1074
↓ 5 callersMethodmakeURL
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 callersMethodnewGraph
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 callersFunctionnewTempFile
newTempFile returns a new output file in dir with the provided prefix and suffix.
internal/driver/tempfile.go:25
↓ 5 callersFunctionpercentText
(v)
internal/driver/html/stacks.js:583
↓ 5 callersFunctionreadSettings
readSettings reads settings from fname.
internal/driver/settings.go:34
↓ 5 callersMethodselectOutputUnit
(g *graph.Graph)
internal/report/report.go:187
↓ 5 callersFunctionshowDialog
(dialog)
internal/driver/html/common.js:293
↓ 5 callersFunctiontoggleClass
(src, cl, value)
internal/driver/html/stacks.js:504
↓ 5 callersFunctionupdateButtons
()
internal/driver/html/common.js:655
↓ 4 callersFunctionGenerate
Generate generates a report as directed by the Report.
internal/report/report.go:88
↓ 4 callersMethodInt
(name string, def int, usage string)
driver/driver.go:92
↓ 4 callersFunctionMakeWebList
MakeWebList returns an annotated source listing of rpt. rpt.prof should contain inlined call info.
internal/report/source.go:243
↓ 4 callersMethodScale
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 callersMethodWeightValue
WeightValue returns the weight value for this edge, normalizing if a divisor is available.
internal/graph/graph.go:285
↓ 4 callersMethodaddSample
(dw, w int64, labels string, numLabel map[string][]int64, numUnit map[string][]string, format func(int64, stri
internal/graph/graph.go:657
↓ 4 callersFunctioncompileTagFilter
(name, value string, numLabelUnits map[string]string, ui plugin.UI, err error)
internal/driver/driver_focus.go:81
↓ 4 callersFunctioncreateExpectedNodes
createExpectedNodes creates a slice of expectedNodes from nodes.
internal/graph/graph_test.go:161
↓ 4 callersFunctionencodeLength
(b *buffer, tag int, len int)
profile/proto.go:72
↓ 4 callersMethodfieldPtr
fieldPtr returns a pointer to the field identified by f in *cfg.
internal/driver/config.go:200
↓ 4 callersFunctionfindTouch
(tlist, id)
internal/driver/html/common.js:137
↓ 4 callersFunctioninterleave
(input []string, seed int64)
internal/driver/interactive_test.go:160
↓ 4 callersFunctionisMemoryMapSentinel
isMemoryMapSentinel returns true if the string contains one of the known sentinels for memory map information.
profile/legacy_profile.go:1084
↓ 4 callersMethodmapMapping
(src *Mapping)
profile/merge.go:346
↓ 4 callersFunctionmatchRegexp
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 callersMethodnewCopy
newCopy returns a new copy of the profile.
internal/driver/driver.go:402
↓ 4 callersFunctionpanMove
(x, y)
internal/driver/html/common.js:90
↓ 4 callersFunctionparseAdditionalSections
parseAdditionalSections parses any additional sections in the profile, ignoring any unrecognized sections.
profile/legacy_profile.go:959
↓ 4 callersFunctionparseHexAddresses
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 callersFunctionredirectWithQuery
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 callersFunctionreportLabels
reportLabels returns printable labels for a report. Includes profileLabels.
internal/report/report.go:1208
↓ 4 callersMethodrun
(name, subtest)
browsertests/testdata/testfixture.js:10
↓ 4 callersMethodset
(id uint64, loc *Location)
profile/merge.go:568
↓ 4 callersFunctionsetCTM
* Sets the current transform matrix of an element.
third_party/svgpan/svgpan.js:120
↓ 4 callersMethodsniffUnit
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 callersFunctionsymzProfile
()
internal/driver/driver_test.go:1000
↓ 3 callersMethodAddToEdgeDiv
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 callersFunctionCreateNodes
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 callersMethodDisasm
Disasm disassembles the named object file, starting at the start address and stopping at (before) the end address.
driver/driver.go:148
↓ 3 callersFunctionGetBase
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 callersMethodHasFileLines
HasFileLines determines if all locations in this profile have symbolized file and line number information.
profile/profile.go:837
↓ 3 callersMethodHasFunctions
HasFunctions determines if all locations in this profile have symbolized function information.
profile/profile.go:826
↓ 3 callersMethodIsTerminal
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 callersFunctionParseData
ParseData parses a profile from a buffer and checks for its validity.
profile/profile.go:182
↓ 3 callersFunctionPrintAssembly
PrintAssembly prints annotated disassembly of rpt to w.
internal/report/report.go:391
↓ 3 callersMethodSampleIndexByName
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 callersMethodScaleN
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 callersMethodSetFastSymbolization
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 callersMethodSetTools
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 callersFunctionShortenFunctionName
ShortenFunctionName returns a shortened version of a function's name.
internal/graph/graph.go:466
↓ 3 callersMethodSortNodes
SortNodes sorts the nodes in a graph based on a specific heuristic.
internal/graph/graph.go:828
↓ 3 callersMethodTotal
Total returns the total number of samples in a report.
internal/report/report.go:1340
↓ 3 callersMethodTrimTree
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 callersMethodWriteUncompressed
WriteUncompressed writes the profile as a marshaled protobuf.
profile/profile.go:353
↓ 3 callersFunctionadjust
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 callersMethodapplyURL
applyURL updates *cfg based on params.
internal/driver/config.go:326
↓ 3 callersFunctionbaseFlags
()
internal/driver/driver_test.go:358
↓ 3 callersFunctionbenchmarkURL
(b *testing.B, path string, needDot bool)
internal/driver/webui_test.go:309
↓ 3 callersFunctionbrowsers
browsers returns a list of commands to attempt for web visualization.
internal/driver/commands.go:341
↓ 3 callersFunctioncheckTestSample
(p *Profile, want []uint64)
profile/legacy_profile_test.go:99
↓ 3 callersFunctionchooseExe
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 callersFunctioncombineProfiles
(profiles []*profile.Profile, msrcs []plugin.MappingSources)
internal/driver/fetch.go:244
↓ 3 callersMethodcomparePrintableName
comparePrintableName compares NodeInfo lexicographically the same way as `i.PrintableName() < right.PrintableName()`, but much more performant.
internal/graph/graph.go:200
↓ 3 callersFunctioncreateEmptyNode
createEmptyNode creates a node without any edges.
internal/graph/graph_test.go:153
↓ 3 callersMethodcumValue
()
internal/report/report.go:628
↓ 3 callersFunctiondeferDeleteTempFile
deferDeleteTempFile marks a file to be deleted by next call to Cleanup()
internal/driver/tempfile.go:42
↓ 3 callersFunctiondotColor
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 callersFunctionencodeInt64
(b *buffer, tag int, x int64)
profile/proto.go:110
↓ 3 callersMethodfindOrAddTag
(label, unit string, value int64)
internal/graph/graph.go:712
↓ 3 callersFunctionfindSymbol
(syms []*plugin.Sym, name string)
internal/binutils/binutils_test.go:322
↓ 3 callersMethodflatValue
()
internal/report/report.go:621
↓ 3 callersMethodget
get returns the current representation for bu, initializing it if necessary.
internal/binutils/binutils.go:72
↓ 3 callersFunctiongetRoot
* Retrieves the root element for SVG manipulation. The element is then cached into the svgRoot global variable.
third_party/svgpan/svgpan.js:85
↓ 3 callersFunctiongraphTotal
(g *graph.Graph)
internal/report/report.go:1198
↓ 3 callersFunctionidentifyNumLabelUnits
identifyNumLabelUnits returns a map of numeric label keys to the units associated with those keys.
internal/driver/driver.go:353
↓ 3 callersFunctioninitTools
(b *binrep, config string)
internal/binutils/binutils.go:134
↓ 3 callersFunctionisLocalhost
(host string)
internal/driver/webui.go:231
↓ 3 callersFunctionisProfileType
(p *Profile, types [][]string)
profile/legacy_profile.go:1115
↓ 3 callersMethodline
line returns the line numbered "lineno" in path, or _,false if lineno is out of range.
internal/report/source.go:974
↓ 3 callersFunctionlistHelp
(c string, redirect bool)
internal/driver/commands.go:327
↓ 3 callersFunctionmakeEdgeInline
(edgeMap EdgeMap, node *Node)
internal/graph/graph_test.go:132
↓ 3 callersFunctionmakeExpectedEdgeResidual
makeExpectedEdgeResidual makes the edge from parent to child residual.
internal/graph/graph_test.go:127
↓ 3 callersFunctionmakeFakeProfile
()
browsertests/testutils.go:105
↓ 3 callersFunctionmakeFileLocation
makeFileLocation switches loc from function to file-granularity.
internal/report/stacks_test.go:229
↓ 3 callersFunctionmakeProfileCopier
(src *profile.Profile)
internal/driver/driver.go:394
↓ 3 callersFunctionmakeTestServer
(t testing.TB, prof *profile.Profile)
browsertests/testutils.go:17
↓ 3 callersFunctionmappingSources
mappingSources creates MappingSources map with a single item.
internal/driver/fetch_test.go:577
↓ 3 callersMethodmatchesName
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 callersFunctionmaybeSkipBrowserTest
(t *testing.T)
browsertests/browser_test.go:32
↓ 3 callersFunctionnewContext
(ctx context.Context, t *testing.T)
browsertests/browser_test.go:114
↓ 3 callersFunctionnewSynthCode
(mappings []*profile.Mapping)
internal/report/synth.go:13
↓ 3 callersMethodopenELF
(name string, start, limit, offset uint64, relocationSymbol string)
internal/binutils/binutils.go:428
↓ 3 callersFunctionparallel
parallel runs n copies of fn in parallel.
profile/profile_test.go:1895
↓ 3 callersFunctionparseFlags
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
← previousnext →101–200 of 1,045, ranked by callers