Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aclements/go-misc
/ functions
Functions
916 in github.com/aclements/go-misc
⨍
Functions
916
◇
Types & classes
265
↓ 70 callers
Method
String
()
memmodel/main.go:71
↓ 54 callers
Method
Sched
()
go-weave/weave/weave.go:207
↓ 32 callers
Method
Tracef
(msg string, args ...interface{})
go-weave/weave/trace.go:21
↓ 30 callers
Method
fmt
(f string, args ...interface{})
ptype/main.go:173
↓ 24 callers
Method
Unlock
Unlock releases m from writer mode. The mutex must currently be held in writer mode.
split/example_rwmutex_test.go:62
↓ 23 callers
Method
Print
(w io.Writer)
gc-S/main.go:118
↓ 22 callers
Method
Lock
Lock acquires m in writer mode. This blocks all readers and writers.
split/example_rwmutex_test.go:48
↓ 22 callers
Method
Trace
(msg string)
go-weave/weave/trace.go:17
↓ 21 callers
Method
Add
(val int)
pcvaluetab/dist.go:18
↓ 21 callers
Method
append
(v uint64)
split/vlogger_test.go:27
↓ 19 callers
Method
ExtendHeap
ExtendHeap returns a new ValState that is like vs, but with heap object h bound to dynamic value val.
rtcheck/val.go:123
↓ 19 callers
Method
Run
(reporter StressReporter)
stress2/stress.go:77
↓ 16 callers
Method
Get
Get returns a pointer to some shard of v. Get may return the same pointer to multiple goroutines, so the caller is responsible for synchronizing conc
split/value.go:113
↓ 15 callers
Method
Contains
Contains returns true if set contains lock class lc.
rtcheck/main.go:992
↓ 13 callers
Method
Amb
Amb returns an "ambiguous" value in the range [0, n). If the current path cannot be continued (for example, it's reached a maximum depth), it returns
go-weave/amb/run.go:32
↓ 13 callers
Method
Run
Run calls root repeatedly at different points in the ambiguous value space.
go-weave/amb/run.go:64
↓ 12 callers
Method
Format
(width int)
memmodel/outcome.go:29
↓ 12 callers
Method
Go
(f func())
go-weave/weave/weave.go:156
↓ 11 callers
Method
Add
(delta int)
go-weave/weave/waitgroup.go:12
↓ 11 callers
Method
Done
Done returns a channel that will be closed when the command exits and its output and status are ready.
stress2/cmd.go:222
↓ 11 callers
Method
Get
Get returns the dynamic value of val, or nil if unknown. val may be a constant ssa.Value, in which case it will be resolved directly to a DynValue if
rtcheck/val.go:59
↓ 11 callers
Function
New
New returns a new Value. The constructor argument must be a function with type func(*T), where T determines the type that will be stored in each shard
split/value.go:54
↓ 11 callers
Method
Next
Next terminates the current path. If there are no more paths to explore, Next returns false. A Strategy is not required to ever return false (for exam
go-weave/amb/run.go:38
↓ 10 callers
Method
Done
()
go-weave/weave/waitgroup.go:23
↓ 10 callers
Method
Extend
Extend returns a new ValState that is like vs, but with bind bound to dynamic value val. If dyn is dynUnknown, Extend unbinds val. Extend is a no-op i
rtcheck/val.go:97
↓ 10 callers
Method
GetHeap
GetHeap returns the dynamic value of a heap object, or nil if unknown.
rtcheck/val.go:82
↓ 10 callers
Function
NewHeapObject
(label string)
rtcheck/val.go:534
↓ 10 callers
Method
Wait
()
go-weave/weave/waitgroup.go:27
↓ 10 callers
Method
name
(id int)
rtcheck/order.go:156
↓ 10 callers
Method
runnable
runnable returns whether commit c needs to be benchmarked at least one more time.
benchmany/commits.go:147
↓ 10 callers
Function
shade
shade makes obj grey if it is white.
go-weave/models/yuasa.go:283
↓ 9 callers
Method
Base
()
simdapi/cmd/apisum/types.go:80
↓ 9 callers
Method
Equal
(other DynValue)
rtcheck/val.go:311
↓ 9 callers
Function
tgit
(t *testing.T, repo string, args ...string)
benchmany/run_test.go:137
↓ 9 callers
Method
unlock
()
gopool/main.go:288
↓ 9 callers
Method
warnl
(pos token.Pos, format string, args ...interface{})
rtcheck/main.go:1225
↓ 8 callers
Method
Len
()
benchplot/table.go:118
↓ 8 callers
Method
Lock
()
go-weave/weave/mutex.go:14
↓ 8 callers
Method
Read
(data []byte, out any)
pcvaluetab/read.go:19
↓ 8 callers
Method
Reset
Reset resets the state of this Strategy to the point where no paths have been explored.
go-weave/amb/run.go:42
↓ 8 callers
Method
Unlock
()
go-weave/weave/mutex.go:24
↓ 8 callers
Method
bad
bad panics with a compileError for the given message.
dashquery/compile.go:51
↓ 8 callers
Method
col
(name string)
minutes3/gdoc.go:496
↓ 8 callers
Function
constNum
(v int64)
dashquery/main.go:33
↓ 8 callers
Method
flatten
()
rtcheck/val.go:233
↓ 8 callers
Method
flush
flush saves the pool state.
gopool/main.go:298
↓ 8 callers
Function
hasAnyPrefix
(s string, prefixes ...string)
simdapi/cmd/apisum/main.go:93
↓ 8 callers
Method
lock
lock locks and returns the pool configuration.
gopool/main.go:263
↓ 8 callers
Method
typ
typ returns the type of this node's result as a string.
dashquery/compile.go:67
↓ 7 callers
Method
Extend
Extend returns a new StackFrame that extends sf with call. call is typically an *ssa.Call, but other instructions can invoke runtime function calls as
rtcheck/main.go:1141
↓ 7 callers
Method
Id
Id returns a small integer ID for this lock class that is unique within the LockClassAnalysis that returned this *LockClass.
rtcheck/lockclass.go:45
↓ 7 callers
Method
Lanes
()
simdapi/cmd/apisum/types.go:95
↓ 7 callers
Method
Range
Range calls each of its argument functions with pointers to all of the shards in v. Each argument must be a function with type func(*T), where T is th
split/value.go:191
↓ 7 callers
Method
Set
(op Op, result int)
memmodel/outcome.go:23
↓ 7 callers
Method
Stop
()
benchmany/status.go:51
↓ 7 callers
Method
Wait
()
git-p/gerrit.go:153
↓ 7 callers
Function
highlight
(dom)
rtcheck/static/main.js:92
↓ 7 callers
Function
indent
indent returns s with each line indented by four spaces. If s is non-empty, the returned string is guaranteed to end in a "\n".
benchmany/benchmany.go:140
↓ 7 callers
Function
rewriteExprList
(v func(ast.Node) ast.Node, list []ast.Expr)
rtcheck/rewrite.go:18
↓ 7 callers
Function
total
(dct)
stackmapcompress.py:266
↓ 7 callers
Function
unlock
(m *weave.Mutex)
go-weave/models/rwmutex.go:58
↓ 6 callers
Method
ElemBits
()
simdapi/cmd/apisum/types.go:87
↓ 6 callers
Method
Load
()
go-weave/weave/atomic.go:27
↓ 6 callers
Function
NewPathStateSet
NewPathStateSet returns a new, empty PathStateSet.
rtcheck/main.go:1510
↓ 6 callers
Method
add
(self, bitmap)
stackmapcompress.py:35
↓ 6 callers
Function
atomicXadd
(x *uint32, delta int32)
go-weave/models/rwmutex.go:41
↓ 6 callers
Method
bool
bool returns n as a boolNode or panics with a type error.
dashquery/compile.go:104
↓ 6 callers
Function
git
git runs git with args and returns its output.
git-p/git.go:18
↓ 6 callers
Function
pct
(x float64)
findflakes/text.go:16
↓ 6 callers
Function
resolveName
resolveName returns the path to the root of the named build and whether or not that path exists. It will log an error and exit if name is ambiguous. I
gover/cache.go:26
↓ 6 callers
Function
shellEscapeList
shellEscapeList escapes a list of shell tokens.
git-p/shell.go:25
↓ 5 callers
Method
BinOp
(op token.Token, other DynValue)
rtcheck/val.go:312
↓ 5 callers
Method
Error
()
dashquery/compile.go:61
↓ 5 callers
Method
Exec
Exec executes o in state s and returns the new memory state and, if the operation is a load, the result of the operation (either 0 or 1).
memmodel/prog.go:110
↓ 5 callers
Method
ForEach
ForEach applies f to each PathState in set.
rtcheck/main.go:1575
↓ 5 callers
Method
Get
()
gopool/main.go:380
↓ 5 callers
Method
HashKey
HashKey returns a key such that set1.Equal(set2) implies set1.HashKey() == set2.HashKey().
rtcheck/main.go:970
↓ 5 callers
Method
OpAt
(pc PC)
memmodel/prog.go:45
↓ 5 callers
Method
Plus
Plus returns a LockSet that extends set with lock class lc, acquired at stack. If lc is already in set, it does not get re-added and Plus returns set.
rtcheck/main.go:999
↓ 5 callers
Method
Push
(label string)
rtcheck/debug.go:29
↓ 5 callers
Function
Rewrite
(v func(ast.Node) ast.Node, node ast.Node)
rtcheck/rewrite.go:36
↓ 5 callers
Method
Set
Set sets the value associated with ps to val in psm.
rtcheck/main.go:1616
↓ 5 callers
Method
Write
(p []byte)
rtcheck/debug.go:106
↓ 5 callers
Method
WriteTo
(w io.Writer)
rtcheck/main.go:1493
↓ 5 callers
Function
align
(x, n int)
abi/abi.go:351
↓ 5 callers
Method
block
(abortf func())
go-weave/weave/weave.go:225
↓ 5 callers
Function
comparableBinOp
comparableBinOp implements DynValue.BinOp for values that support only comparison operators.
rtcheck/val.go:376
↓ 5 callers
Function
count0124
count0124 returns the sum of vector x, where x contains 4 2-bit values where 0b00 => 0, 0b01 => 1, 0b10 => 2, 0b11 => 4.
pcvaluetab/alt.go:496
↓ 5 callers
Function
cpR
(src, dst string)
gover/gover.go:565
↓ 5 callers
Function
dryPrint
(cmd *exec.Cmd)
benchmany/benchmany.go:96
↓ 5 callers
Method
getString
(row *sheets.RowData, name string)
minutes3/gdoc.go:515
↓ 5 callers
Function
git
git runs git subcommand subcmd and returns its stdout. If git fails, it prints the failure and exits.
benchmany/benchmany.go:73
↓ 5 callers
Method
hasPrefix
hasPrefix returns whether the remaining text begins with s.
internal/loganal/matcher.go:102
↓ 5 callers
Function
likeStackMap
(fns, padToByte=True, dedup=True, sortBitmaps=None, huffmanPcdata=False, grPcdata=False)
stackmapcompress.py:190
↓ 5 callers
Function
lock
(m *weave.Mutex)
go-weave/models/rwmutex.go:54
↓ 5 callers
Method
sort
(self)
stackmapcompress.py:47
↓ 5 callers
Function
tryGit
tryGit runs git with args and returns its output and a non-nil error if the command exits with a non-zero status.
git-p/git.go:32
↓ 5 callers
Method
unblock
()
go-weave/weave/weave.go:250
↓ 5 callers
Function
withWriter
withWriter creates path and calls f with the file.
rtcheck/main.go:331
↓ 4 callers
Method
Add
Add adds PathState ps to set.
rtcheck/main.go:1521
next →
1–100 of 916, ranked by callers