- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 36 for stk (0.02 sec)
-
src/internal/trace/internal/testgen/go122/trace.go
// // This is a convenience function for easily adding correct // stacks to traces. func (g *Generation) Stack(stk []trace.StackFrame) uint64 { if len(stk) == 0 { return 0 } if len(stk) > 32 { panic("stack too big for test") } var stkc stack copy(stkc.stk[:], stk) stkc.len = len(stk) if id, ok := g.stacks[stkc]; ok { return id } id := uint64(len(g.stacks) + 1) g.stacks[stkc] = id
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 9.7K bytes - Viewed (0) -
src/cmd/vendor/rsc.io/markdown/inline.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 21.9K bytes - Viewed (0) -
maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelValidator.java
private static class ActivationWalker extends MavenTransformer { private final Deque<ActivationFrame> stk; ActivationWalker(Deque<ActivationFrame> stk, UnaryOperator<String> transformer) { super(transformer); this.stk = stk; } private ActivationFrame nextFrame(String property) { return new ActivationFrame(property, Optional.empty());
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Mon Jun 10 11:04:53 UTC 2024 - 73.9K bytes - Viewed (0) -
src/runtime/pprof/protomem.go
stk = stk[i:] break } } locs = b.appendLocsForStack(locs[:0], stk) if len(locs) > 0 { break } hideRuntime = false // try again, and show all frames next time. } values[0], values[1] = scaleHeapSample(r.AllocObjects, r.AllocBytes, rate) values[2], values[3] = scaleHeapSample(r.InUseObjects(), r.InUseBytes(), rate) var blockSize int64
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 14:38:45 UTC 2024 - 2.9K bytes - Viewed (0) -
maven-model-builder/src/main/java/org/apache/maven/model/validation/DefaultModelValidator.java
private static class ActivationWalker extends MavenTransformer { private final Deque<ActivationFrame> stk; ActivationWalker(Deque<ActivationFrame> stk, UnaryOperator<String> transformer) { super(transformer); this.stk = stk; } private ActivationFrame nextFrame(String property) { return new ActivationFrame(property, Optional.empty());
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Sat May 18 14:09:22 UTC 2024 - 76K bytes - Viewed (0) -
src/cmd/trace/viewer.go
"time" ) // viewerFrames returns the frames of the stack of ev. The given frame slice is // used to store the frames to reduce allocations. func viewerFrames(stk trace.Stack) []*trace.Frame { var frames []*trace.Frame stk.Frames(func(f trace.StackFrame) bool { frames = append(frames, &trace.Frame{ PC: f.PC, Fn: f.Func, File: f.File, Line: int(f.Line), }) return true })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 1.4K bytes - Viewed (0) -
src/cmd/go/internal/load/test.go
// the cycle as (for example) package p imports package q imports package r // imports package p. stk = append(stk, ptest.ImportPath) slices.Reverse(stk) return &PackageError{ ImportStack: stk, Err: errors.New("import cycle not allowed in test"), IsImportCycle: true, } } for _, dep := range p.Internal.Imports {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 14:01:23 UTC 2024 - 28.2K bytes - Viewed (0) -
src/runtime/cpuprof.go
// TODO: Is it safe to osyield here? https://go.dev/issue/52672 osyield() } if cpuprof.numExtra+1+len(stk) < len(cpuprof.extra) { i := cpuprof.numExtra cpuprof.extra[i] = uintptr(1 + len(stk)) copy(cpuprof.extra[i+1:], stk) cpuprof.numExtra += 1 + len(stk) } else { cpuprof.lostExtra++ } prof.signalLock.Store(0) } // addExtra adds the "extra" profiling events,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 8.5K bytes - Viewed (0) -
src/runtime/pprof/pprof_test.go
for _, test := range tests { if !containsStack(stks, test.stk) { t.Errorf("No matching stack entry for %v, want %+v", test.name, test.stk) } } }) } func stacks(p *profile.Profile) (res [][]string) { for _, s := range p.Sample { var stk []string for _, l := range s.Location { for _, line := range l.Line { stk = append(stk, line.Function.Name) } } res = append(res, stk)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 68.8K bytes - Viewed (0) -
src/cmd/trace/gstate.go
} } // augmentName attempts to use stk to augment the name of the goroutine // with stack information. This stack must be related to the goroutine // in some way, but it doesn't really matter which stack. func (gs *gState[R]) augmentName(stk trace.Stack) { if gs.named { return } if stk == trace.NoStack { return } name := lastFunc(stk) gs.baseName += fmt.Sprintf(" %s", name) gs.named = true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 11.9K bytes - Viewed (0)