Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 175 for shop (0.25 sec)

  1. src/cmd/vendor/github.com/google/pprof/internal/driver/commands.go

    	"compact_labels": "Show minimal headers",
    	"source_path":    "Search path for source files",
    	"trim_path":      "Path to trim from source paths before search",
    	"intel_syntax": helpText(
    		"Show assembly in Intel syntax",
    		"Only applicable to commands `disasm` and `weblist`"),
    
    	// Filtering options
    	"nodecount": helpText(
    		"Max number of nodes to show",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  2. src/context/example_test.go

    func ExampleAfterFunc_connection() {
    	readFromConn := func(ctx context.Context, conn net.Conn, b []byte) (n int, err error) {
    		stopc := make(chan struct{})
    		stop := context.AfterFunc(ctx, func() {
    			conn.SetReadDeadline(time.Now())
    			close(stopc)
    		})
    		n, err = conn.Read(b)
    		if !stop() {
    			// The AfterFunc was started.
    			// Wait for it to complete, and reset the Conn's deadline.
    			<-stopc
    			conn.SetReadDeadline(time.Time{})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 21 20:24:28 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  3. src/cmd/doc/main.go

    	flagSet.BoolVar(&unexported, "u", false, "show unexported symbols as well as exported")
    	flagSet.BoolVar(&matchCase, "c", false, "symbol matching honors case (paths not affected)")
    	flagSet.BoolVar(&showAll, "all", false, "show all documentation for package")
    	flagSet.BoolVar(&showCmd, "cmd", false, "show symbols with package docs even if package is a command")
    	flagSet.BoolVar(&showSrc, "src", false, "show source code for symbol")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  4. src/cmd/trace/gstate.go

    // it blocked for some reason.
    func (gs *gState[R]) block(ts trace.Time, stack trace.Stack, reason string, ctx *traceContext) {
    	gs.startBlockReason = reason
    	gs.stop(ts, stack, ctx)
    }
    
    // stop indicates that the goroutine has stopped executing on a proc.
    func (gs *gState[R]) stop(ts trace.Time, stack trace.Stack, ctx *traceContext) {
    	// Emit the execution time slice.
    	var stk int
    	if gs.lastStopStack != trace.NoStack {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  5. src/cmd/internal/test2json/test2json_test.go

    	fail := func() {
    		var buf bytes.Buffer
    		show := func(i int, lines []string) {
    			for k := -2; k < 5; k++ {
    				marker := ""
    				if k == 0 {
    					marker = "» "
    				}
    				if 0 <= i+k && i+k < len(lines) {
    					fmt.Fprintf(&buf, "\t%s%s\n", marker, lines[i+k])
    				}
    			}
    			if i >= len(lines) {
    				// show marker after end of input
    				fmt.Fprintf(&buf, "\t» \n")
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 26 19:50:36 UTC 2022
    - 7.2K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/testsanitizers/testdata/asan3_fail.go

    package main
    
    /*
    #include <stdlib.h>
    #include <stdio.h>
    
    void test(int *a) {
    	// Access Go pointer out of bounds.
    	int c = a[5];        // BOOM
    	// We shouldn't get here; asan should stop us first.
    	printf("a[5]=%d\n", c);
    }
    */
    import "C"
    
    func main() {
    	cIntSlice := []C.int{200, 201, 203, 203, 204}
    	C.test(&cIntSlice[0])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 486 bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/testsanitizers/testdata/msan_fail.go

      int32_t * volatile q = (int32_t *)malloc(sizeof(int32_t) * n);
      memcpy(p, q, n * sizeof(*p));
      free(q);
    }
    
    void g(int32_t *p, int n) {
      if (p[4] != 1) {
        // We shouldn't get here; msan should stop us first.
        exit(0);
      }
    }
    */
    import "C"
    
    import (
    	"unsafe"
    )
    
    func main() {
    	a := make([]int32, 10)
    	C.f((*C.int32_t)(unsafe.Pointer(&a[0])), C.int(len(a)))
    	a[3] = 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 701 bytes
    - Viewed (0)
  8. src/cmd/go/internal/lockedfile/lockedfile_test.go

    	go func() {
    		f()
    		close(done)
    	}()
    
    	timer := time.NewTimer(quiescent)
    	defer timer.Stop()
    	select {
    	case <-done:
    		t.Fatalf("%s unexpectedly did not block", desc)
    	case <-timer.C:
    	}
    
    	return func(t *testing.T) {
    		logTimer := time.NewTimer(quiescent)
    		defer logTimer.Stop()
    
    		select {
    		case <-logTimer.C:
    			// We expect the operation to have unblocked by now,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  9. src/crypto/x509/root_linux.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package x509
    
    import "internal/goos"
    
    // Possible certificate files; stop after finding one.
    var certFiles = []string{
    	"/etc/ssl/certs/ca-certificates.crt",                // Debian/Ubuntu/Gentoo etc.
    	"/etc/pki/tls/certs/ca-bundle.crt",                  // Fedora/RHEL 6
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 17:55:35 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  10. src/cmd/trace/threadgen.go

    		// Filter out no-op events.
    		return
    	}
    	if from.Executing() && !to.Executing() {
    		if to == trace.GoWaiting {
    			// Goroutine started blocking.
    			gs.block(ev.Time(), ev.Stack(), st.Reason, ctx)
    		} else {
    			gs.stop(ev.Time(), ev.Stack(), ctx)
    		}
    	}
    	if !from.Executing() && to.Executing() {
    		start := ev.Time()
    		if from == trace.GoUndetermined {
    			// Back-date the event to the start of the trace.
    			start = ctx.startTime
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 5.7K bytes
    - Viewed (0)
Back to top