Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 35 for handlers (1.22 sec)

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

    	Hostport string
    
    	Host string // Host portion of Hostport
    	Port int    // Port portion of Hostport
    
    	// Handlers maps from URL paths to the handler to invoke to
    	// serve that path.
    	Handlers map[string]http.Handler
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/testsanitizers/testdata/tsan15.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    // Test case for issue 66427.
    // Running under TSAN, this fails with "signal handler
    // spoils errno".
    
    /*
    #include <pthread.h>
    #include <signal.h>
    #include <stdlib.h>
    
    void go_callback();
    
    static void *thr(void *arg) {
    	int i;
    	for (i = 0; i < 10; i++)
    		go_callback();
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 21:14:49 UTC 2024
    - 968 bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/telemetry/internal/mmap/mmap_windows.go

    	}
    	// set the min and max sizes to zero to map the whole file, as described in
    	// https://learn.microsoft.com/en-us/windows/win32/memory/creating-a-file-mapping-object#file-mapping-size
    	h, err := windows.CreateFileMapping(windows.Handle(f.Fd()), nil, syscall.PAGE_READWRITE, 0, 0, nil)
    	if err != nil {
    		return Data{}, fmt.Errorf("CreateFileMapping %s: %w", f.Name(), err)
    	}
    	// the mapping extends from zero to the end of the file mapping
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:10:54 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/text/internal/match.go

    package internal
    
    // This file contains matchers that implement CLDR inheritance.
    //
    //     See https://unicode.org/reports/tr35/#Locale_Inheritance.
    //
    // Some of the inheritance described in this document is already handled by
    // the cldr package.
    
    import (
    	"golang.org/x/text/language"
    )
    
    // TODO: consider if (some of the) matching algorithm needs to be public after
    // getting some feel about what is generic and what is specific.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  5. src/cmd/trace/threadgen.go

    	gs, ok := g.gStates[goID]
    	if !ok {
    		gs = newGState[trace.ThreadID](goID)
    		g.gStates[goID] = gs
    	}
    	// If we haven't already named this goroutine, try to name it.
    	gs.augmentName(st.Stack)
    
    	// Handle the goroutine state transition.
    	from, to := st.Goroutine()
    	if from == to {
    		// Filter out no-op events.
    		return
    	}
    	if from.Executing() && !to.Executing() {
    		if to == trace.GoWaiting {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/errors.go

    	}
    
    	if check.conf.Trace {
    		check.trace(err.pos(), "ERROR: %s (code = %d)", err.desc[0].msg, err.code)
    	}
    
    	// In go/types, if there is a sub-error with a valid position,
    	// call the typechecker error handler for each sub-error.
    	// Otherwise, call it once, with a single combined message.
    	multiError := false
    	if !isTypes2 {
    		for i := 1; i < len(err.desc); i++ {
    			if err.desc[i].pos.IsKnown() {
    				multiError = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/text/cases/cases.go

    // algorithm could set different defaults by prefixing a user-provided slice
    // of options with their own. This is handy, for instance, for the precis
    // package which would override the default to not handle the Greek final sigma.
    
    var (
    	// NoLower disables the lowercasing of non-leading letters for a title
    	// caser.
    	NoLower Option = noLower
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  8. src/cmd/pprof/pprof.go

    			return fmt.Errorf("server response: %s - %s", resp.Status, body)
    		}
    	}
    	return fmt.Errorf("server response: %s", resp.Status)
    }
    
    // cpuProfileHandler is the Go pprof CPU profile handler URL.
    const cpuProfileHandler = "/debug/pprof/profile"
    
    // adjustURL applies the duration/timeout values and Go specific defaults.
    func adjustURL(source string, duration, timeout time.Duration) (string, time.Duration) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/text/language/doc.go

    // which there exists translations of the user interface.
    //
    // User-preferred languages usually come as a comma-separated list of BCP 47
    // language tags.
    // The MatchString finds best matches for such strings:
    //
    //	handler(w http.ResponseWriter, r *http.Request) {
    //	    lang, _ := r.Cookie("lang")
    //	    accept := r.Header.Get("Accept-Language")
    //	    tag, _ := language.MatchStrings(matcher, lang.String(), accept)
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  10. src/cmd/trace/goroutinegen.go

    	// gState for it.
    	gs, ok := g.gStates[goID]
    	if !ok {
    		gs = newGState[trace.GoID](goID)
    		g.gStates[goID] = gs
    	}
    
    	// Try to augment the name of the goroutine.
    	gs.augmentName(st.Stack)
    
    	// Handle the goroutine state transition.
    	from, to := st.Goroutine()
    	if from == to {
    		// Filter out no-op events.
    		return
    	}
    	if from.Executing() && !to.Executing() {
    		if to == trace.GoWaiting {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 4.6K bytes
    - Viewed (0)
Back to top