Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for stk (0.13 sec)

  1. 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)
  2. src/cmd/vendor/rsc.io/markdown/inline.go

    	stackOf := func(c byte) int {
    		return strings.IndexByte(chars, c)
    	}
    
    	trimStack := func() {
    		for i := range stack {
    			stk := &stack[i]
    			for len(*stk) > 0 && (*stk)[len(*stk)-1].i >= len(dst) {
    				*stk = (*stk)[:len(*stk)-1]
    			}
    		}
    	}
    
    Src:
    	for i := 0; i < len(src); i++ {
    		if open, ok := src[i].(*openPlain); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top