Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for traceme (0.22 sec)

  1. src/runtime/tracemap.go

    // appear in the table anymore.
    func (tab *traceMap) stealID() uint64 {
    	return tab.seq.Add(1)
    }
    
    // put inserts the data into the table.
    //
    // It's always safe for callers to noescape data because put copies its bytes.
    //
    // Returns a unique ID for the data and whether this is the first time
    // the data has been added to the map.
    func (tab *traceMap) put(data unsafe.Pointer, size uintptr) (uint64, bool) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:03:35 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  2. src/cmd/go/internal/trace/trace.go

    // traceKey is the context key for tracing information. It is unexported to prevent collisions with context keys defined in
    // other packages.
    type traceKey struct{}
    
    type traceContext struct {
    	t   *tracer
    	tid uint64
    }
    
    // Start starts a trace which writes to the given file.
    func Start(ctx context.Context, file string) (context.Context, func() error, error) {
    	traceStarted.Store(true)
    	if file == "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 20:45:06 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  3. src/runtime/testdata/testprogcgo/trace.go

    // license that can be found in the LICENSE file.
    
    package main
    
    /*
    // Defined in trace_*.c.
    void cCalledFromGo(void);
    */
    import "C"
    import (
    	"context"
    	"fmt"
    	"log"
    	"os"
    	"runtime/trace"
    )
    
    func init() {
    	register("Trace", Trace)
    }
    
    // Trace is used by TestTraceUnwindCGO.
    func Trace() {
    	file, err := os.CreateTemp("", "testprogcgo_trace")
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 30 19:18:12 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  4. cmd/http-tracer.go

    		h.ServeHTTP(respRecorder, r)
    		reqEndTime := time.Now().UTC()
    
    		if globalTrace.NumSubscribers(madmin.TraceS3|madmin.TraceInternal) == 0 {
    			// no subscribers nothing to trace.
    			return
    		}
    
    		tt := madmin.TraceInternal
    		if strings.HasPrefix(tc.FuncName, "s3.") {
    			tt = madmin.TraceS3
    		}
    
    		// Calculate input body size with headers
    		reqHeaders := r.Header.Clone()
    		reqHeaders.Set("Host", r.Host)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 03 15:45:54 UTC 2024
    - 6K bytes
    - Viewed (0)
  5. src/net/http/httptrace/trace.go

    	if trace == nil {
    		panic("nil trace")
    	}
    	old := ContextClientTrace(ctx)
    	trace.compose(old)
    
    	ctx = context.WithValue(ctx, clientEventContextKey{}, trace)
    	if trace.hasNetHooks() {
    		nt := &nettrace.Trace{
    			ConnectStart: trace.ConnectStart,
    			ConnectDone:  trace.ConnectDone,
    		}
    		if trace.DNSStart != nil {
    			nt.DNSStart = func(name string) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  6. src/runtime/tracetime.go

    //
    // traceClockNow is called by golang.org/x/exp/trace using linkname.
    //
    //go:linkname traceClockNow
    //go:nosplit
    func traceClockNow() traceTime {
    	if osHasLowResClock {
    		return traceTime(cputicks() / traceTimeDiv)
    	}
    	return traceTime(nanotime() / traceTimeDiv)
    }
    
    // traceClockUnitsPerSecond estimates the number of trace clock units per
    // second that elapse.
    func traceClockUnitsPerSecond() uint64 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/endpoints/filters/traces.go

    	semconv "go.opentelemetry.io/otel/semconv/v1.17.0"
    	"go.opentelemetry.io/otel/trace"
    	"k8s.io/apiserver/pkg/endpoints/request"
    
    	tracing "k8s.io/component-base/tracing"
    )
    
    // WithTracing adds tracing to requests if the incoming request is sampled
    func WithTracing(handler http.Handler, tp trace.TracerProvider) http.Handler {
    	opts := []otelhttp.Option{
    		otelhttp.WithPropagators(tracing.Propagators()),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 15 01:42:42 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  8. src/internal/trace/internal/testgen/go122/trace.go

    	"os"
    	"regexp"
    	"strings"
    
    	"internal/trace"
    	"internal/trace/event"
    	"internal/trace/event/go122"
    	"internal/trace/raw"
    	"internal/trace/version"
    	"internal/txtar"
    )
    
    func Main(f func(*Trace)) {
    	// Create an output file.
    	out, err := os.Create(os.Args[1])
    	if err != nil {
    		panic(err.Error())
    	}
    	defer out.Close()
    
    	// Create a new trace.
    	trace := NewTrace()
    
    	// Call the generator.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  9. internal/grid/trace.go

    	v := ctx.Value(TraceParamsKey{})
    	// Should match SingleHandler.Call checks.
    	switch typed := v.(type) {
    	case *MSS:
    		trace.Path += typed.ToQuery()
    	case map[string]string:
    		m := MSS(typed)
    		trace.Path += m.ToQuery()
    	case *URLValues:
    		trace.Path += typed.Values().Encode()
    	case *NoPayload, *Bytes:
    		trace.Path = fmt.Sprintf("%s?payload=%T", trace.Path, typed)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Jun 01 05:17:37 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  10. src/internal/fuzz/trace.go

    Cuong Manh Le <******@****.***> 1665464211 +0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 12 00:12:53 UTC 2022
    - 1.5K bytes
    - Viewed (0)
Back to top