MCPcopy Create free account

hub / github.com/maruel/panicparse / functions

Functions745 in github.com/maruel/panicparse

↓ 73 callersFunctionnewCall
(f string, a Args, s string, l int)
stack/stack_test.go:381
↓ 60 callersFunctionpathJoin
(s ...string)
stack/stack.go:862
↓ 34 callersMethodString
String prints the argument as the name if present, otherwise as the value.
stack/stack.go:149
↓ 33 callersFunctionnewCallLocal
(f string, a Args, s string, l int)
stack/stack_test.go:387
↓ 29 callersFunctioncompareString
(t *testing.T, want, got string)
stack/stack_test.go:412
↓ 26 callersFunctionScanSnapshot
ScanSnapshot scans the Reader for the output from runtime.Stack() in br. Returns nil *Snapshot if no stack trace was detected. If a Snapshot is retu
stack/context.go:160
↓ 16 callersFunctiondefaultOpts
()
stack/context_test.go:2483
↓ 16 callersFunctionnewFunc
(s string)
stack/stack_test.go:371
↓ 15 callersFunctioncompareString
(t *testing.T, want, got string)
internal/main_test.go:132
↓ 13 callersMethodWrite
(b []byte)
cmd/panicweb/main.go:161
↓ 13 callersMethodfuncColor
(l stack.Location, main, exported bool)
internal/ui.go:118
↓ 11 callersMethodAggregate
Aggregate merges similar goroutines into buckets. The buckets are ordered in library provided order of relevancy. You can reorder at your choosing.
stack/bucket.go:42
↓ 10 callersFunctionDefaultOpts
DefaultOpts returns default options to process the snapshot.
stack/context.go:64
↓ 10 callersMethodless
less compares two Stack, where the ones that are less are more important, so they come up front. A Stack with more private functions is 'less' so it
stack/stack.go:564
↓ 8 callersMethodBucketHeader
BucketHeader prints the header of a goroutine signature.
internal/ui.go:162
↓ 8 callersFunctionSnapshotHandler
SnapshotHandler implements http.HandlerFunc to returns a panicparse HTML format for a snapshot of the current goroutines. For best results, compile t
stack/webstack/webstack.go:46
↓ 8 callersMethodToHTML
(io.Writer, template.HTML)
internal/main.go:107
↓ 8 callersMethodequal
equal returns true only if both arguments are exactly equal.
stack/stack.go:179
↓ 8 callersFunctiongetSignature
()
stack/stack_test.go:533
↓ 8 callersMethodguessPaths
()
stack/context.go:219
↓ 8 callersFunctionname
(n ast.Node)
stack/source.go:159
↓ 8 callersFunctionpstCount
(s []panicwebSignatureType, t panicwebSignatureType)
stack/context_test.go:2262
↓ 8 callersMethodsimilar
similar returns true if the two Arg are equal or almost but not quite equal.
stack/stack.go:184
↓ 8 callersFunctionsimilarGoroutines
similarGoroutines compares slice of Goroutine to be similar enough. Warning: it mutates inputs.
stack/stack_test.go:422
↓ 7 callersFunctionPanicOutputs
PanicOutputs returns a map of the output of every subcommands. panic is built with inlining disabled. The subcommand "race" is built with the race d
internal/internaltest/internaltest.go:47
↓ 7 callersFunctionatou
atou is a fast Atoi() function. It is a very simplified version of strconv.Atoi() that it never go into the slow path and it operates on []byte inste
stack/context.go:1162
↓ 7 callersFunctioncompareErr
(t *testing.T, want, got error)
stack/stack_test.go:399
↓ 7 callersFunctionescape
(s string)
stack/html.go:124
↓ 7 callersFunctionnewCallLocal
(f string, a stack.Args, s string, l int)
internal/ui_test.go:183
↓ 7 callersMethodupdateLocations
updateLocations initializes LocalSrcPath, RelSrcPath, Location and ImportPath. goroot, localgoroot, localgomod, gomodImportPath and gopaths are expec
stack/stack.go:409
↓ 6 callersMethodSleepString
SleepString returns a string "N-M minutes" if the goroutine(s) slept for a long time. Returns an empty string otherwise.
stack/stack.go:762
↓ 6 callersMethodformatCall
(c *stack.Call)
internal/ui.go:52
↓ 5 callersFunctionGetGoMinorVersion
GetGoMinorVersion returns the Go1 minor version. Returns 0 for a developer build, panics if can't parse the version. Ignores the revision (go1.<mino
internal/internaltest/internaltest.go:137
↓ 5 callersMethodInit
Init parses the raw function call line from a goroutine stack trace. Go stack traces print a mangled function call, this wrapper unmangle the string
stack/stack.go:52
↓ 5 callersFunctiongetGOPATHs
getGOPATHs returns parsed GOPATH or its default, using "/" as path separator.
stack/context.go:1117
↓ 5 callersFunctionparseFunc
parseFunc only return an error if it also returns true. Uses reFunc.
stack/context.go:819
↓ 4 callersFunctionIsUsingModules
IsUsingModules returns if go modules are enabled. It reads the current value of GO111MODULES.
internal/internaltest/internaltest.go:118
↓ 4 callersMethodStackLines
StackLines prints one complete stack trace, without the header.
internal/ui.go:218
↓ 4 callersFunctionStaticPanicwebOutput
StaticPanicwebOutput returns a constant version of panicweb output for use in benchmarks.
internal/internaltest/internaltest.go:106
↓ 4 callersFunctioncompareBuckets
(t *testing.T, want, got []*Bucket)
stack/bucket_test.go:387
↓ 4 callersFunctioncompareInt
(t *testing.T, want, got int)
internal/ui_test.go:208
↓ 4 callersFunctionlineToByteOffsets
lineToByteOffsets extract the line number into raw file offset. Inserts a dummy 0 at offset 0 so line offsets can be 1 based.
stack/source.go:95
↓ 4 callersFunctionpanicint
Utility functions.
cmd/panic/main.go:92
↓ 4 callersFunctionparseFile
parseFile only return an error if also processing a Call. Uses reFile.
stack/context.go:900
↓ 4 callersFunctionsplitPath
splitPath splits a path using "/" as separator into its components. The first item has its initial path separator kept.
stack/context.go:963
↓ 4 callersFunctiontrimLeftSpace
trimLeftSpace is the faster equivalent of bytes.TrimLeft(s, "\t ").
stack/context.go:1177
↓ 3 callersMethodIsRace
IsRace returns true if a race detector stack trace was found. Otherwise, it is a normal goroutines snapshot. When a race condition was detected, it
stack/context.go:215
↓ 3 callersFunctionMain
Main is implemented here so both 'pp' and 'panicparse' executables can be compiled. This is to work around the Perl Package manager 'pp' that is prein
internal/main.go:192
↓ 3 callersMethodaugment
augment processes source files to improve calls to be more descriptive. It modifies goroutines in place. It requires calling guessPaths() to work pro
stack/context.go:235
↓ 3 callersFunctionbuild
build builds to a temporary file and returns the path to it.
internal/internaltest/internaltest.go:164
↓ 3 callersFunctioncalcBucketsLengths
calcBucketsLengths returns the maximum length of the source lines and package names.
internal/ui.go:78
↓ 3 callersFunctioncompareGoroutines
(t *testing.T, want, got []*Goroutine)
stack/stack_test.go:519
↓ 3 callersFunctionexecRun
execRun runs a command and returns the combined output. It ignores the exit code, since it's meant to run panic, which crashes by design.
internal/internaltest/internaltest.go:223
↓ 3 callersFunctiongetBuckets
getBuckets returns a slice for testing.
stack/html_test.go:298
↓ 3 callersFunctiongetPanicParseDir
getPanicParseDir returns the path to the root directory of panicparse package, using "/" as path separator.
stack/context_test.go:2492
↓ 3 callersFunctiongetSrcBranchURL
getSrcBranchURL returns a link to the source on the web and the tag name for the package version, if possible.
stack/html.go:134
↓ 3 callersMethodinit
Init initializes RemoteSrcPath, SrcName, DirName and Line. For test main, it initializes Location only with Stdlib. It does its best educated guess
stack/stack.go:383
↓ 3 callersMethodisGoModule
isGoModule returns the string to the directory containing a go.mod file, and the go import path it represents, if found.
stack/context.go:1011
↓ 3 callersFunctionisRootedIn
isRootedIn returns a root if the file split in parts exists under root. Uses "/" as path separator.
stack/context.go:994
↓ 3 callersMethodmerge
merge merges two similar Args, zapping out differences.
stack/stack.go:277
↓ 3 callersFunctionprocess
process copies stdin to stdout and processes any "panic: " line found. If html is used, a stack trace is written to this file instead.
internal/main.go:149
↓ 3 callersFunctionunsafeString
unsafeString performs an unsafe conversion from a []byte to a string. The returned string will share the underlying memory with the []byte which thus
stack/context.go:1211
↓ 3 callersMethodwalk
walk traverses all non-aggregate arguments in the Args struct, calling the provided visitor function with each Arg.
stack/stack.go:300
↓ 2 callersFunctionCallback
Callback calls back a function through an external then internal function.
cmd/panic/internal/internal.go:9
↓ 2 callersFunctionCompile
Compile compiles sources into an executable.
internal/internaltest/internaltest.go:191
↓ 2 callersFunctionGetAsync
GetAsync does an HTTP GET to the URL but leaves the actual fetching to a goroutine.
cmd/panicweb/internal/internal.go:20
↓ 2 callersMethodLen
()
stack/stack.go:868
↓ 2 callersMethodString
()
stack/stack.go:233
↓ 2 callersFunctioncompareStacks
(t *testing.T, want, got *Stack)
stack/stack_test.go:526
↓ 2 callersFunctioncreateTree
(t *testing.T, root string, tree map[string]string)
stack/context_test.go:2505
↓ 2 callersMethodcreatedByString
(s *stack.Signature)
internal/ui.go:69
↓ 2 callersFunctiongetCrash
(t *testing.T, main string, disableInline bool)
stack/source_test.go:1619
↓ 2 callersFunctionisFile
isFile returns true if the path is a valid file.
stack/context.go:984
↓ 2 callersMethodroutineColor
routineColor returns the color for the header of the goroutines bucket.
internal/ui.go:154
↓ 2 callersFunctionsplitTag
(s string)
stack/html.go:214
↓ 2 callersFunctionsymbol
symbol is the hashtag to use to refer to the symbol when looking at documentation. All of godoc/gddo, pkg.go.dev and golang.org/godoc use the same sy
stack/html.go:238
↓ 2 callersFunctiontestAugmentCommon
(t *testing.T, content []byte, mayBeInlined bool, want Stack)
stack/source_test.go:1422
↓ 2 callersFunctiontoHTML
Private stuff.
stack/html.go:46
↓ 2 callersFunctiontoHTML
(h toHTMLer, p string, needsEnv bool)
internal/main.go:110
↓ 2 callersFunctiontrimCurlyBrackets
trimCurlyBrackets is the faster equivalent of bytes.TrimRight(bytes.TrimLeft(s, "{"), "}"). The function also returns the number of curly brackets tri
stack/context.go:1190
↓ 2 callersFunctionusage
()
cmd/panic/main.go:441
↓ 2 callersFunctionzapCalls
(t *testing.T, want, got *Call)
stack/stack_test.go:483
↓ 2 callersFunctionzapSignatures
(t *testing.T, want, got *Signature)
stack/stack_test.go:453
↓ 2 callersFunctionzapStacks
(t *testing.T, want, got *Stack)
stack/stack_test.go:469
↓ 1 callersMethodGoroutineHeader
GoroutineHeader prints the header of a goroutine.
internal/ui.go:181
↓ 1 callersFunctionPanicwebOutput
PanicwebOutput returns the output of panicweb with inlining disabled. The function panics if any internal error occurs.
internal/internaltest/internaltest.go:21
↓ 1 callersMethodPànic
Pànic panics.
cmd/panic/internal/utf8/utf8.go:16
↓ 1 callersFunctionStaticPanicRaceOutput
StaticPanicRaceOutput returns a constant version of 'panic race' output.
internal/internaltest/internaltest.go:111
↓ 1 callersFunctionaugmentCall
augmentCall walks the function and populate call accordingly.
stack/source.go:242
↓ 1 callersMethodaugmentGoroutine
augmentGoroutine processes source files to improve call to be more descriptive. It modifies the routine.
stack/source.go:34
↓ 1 callersMethodbuffered
()
stack/reader.go:53
↓ 1 callersFunctioncalcGoroutinesLengths
calcGoroutinesLengths returns the maximum length of the source lines and package names.
internal/ui.go:96
↓ 1 callersMethodcallLine
callLine prints one stack line.
internal/ui.go:207
↓ 1 callersFunctioncallback
(f func())
cmd/panic/internal/internal.go:13
↓ 1 callersFunctiondummy
(ctx context.Context, a1, a2, a3, a4, a5, a6, a7, a8, a9 *int)
stack/webstack/webstack_test.go:131
↓ 1 callersMethodequal
equal returns true only if both signatures are exactly equal.
stack/stack.go:693
↓ 1 callersFunctionextractArgumentsType
extractArgumentsType returns the name of the type of each input argument.
stack/source.go:212
↓ 1 callersFunctionfieldToType
fieldToType returns the type name and whether if it's an ellipsis.
stack/source.go:179
↓ 1 callersMethodfill
fill reads a new chunk into the buffer.
stack/reader.go:25
↓ 1 callersMethodfindRoots
findRoots sets member RemoteGOROOT, RemoteGOPATHs and LocalGomods. This causes disk I/O as it checks for file presence. Returns the number of missin
stack/context.go:1040
next →1–100 of 745, ranked by callers