Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for traceapi (0.12 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/runtime/tracecpu.go

    Carlos Amedee <******@****.***> 1712158572 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:03:35 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  3. src/runtime/traceevent.go

    	return traceArg(trace.stringTab[tl.gen%2].put(tl.gen, s))
    }
    
    // uniqueString returns a traceArg representing s which may be passed to write.
    // The string is assumed to be unique or long, so it will be written out to
    // the trace eagerly.
    func (tl traceLocker) uniqueString(s string) traceArg {
    	return traceArg(trace.stringTab[tl.gen%2].emit(tl.gen, s))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:47:01 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  4. src/runtime/traceallocfree.go

    	traceRelease(trace)
    }
    
    func traceSpanTypeAndClass(s *mspan) traceArg {
    	if s.state.get() == mSpanInUse {
    		return traceArg(s.spanclass) << 1
    	}
    	return traceArg(1)
    }
    
    // SpanExists records an event indicating that the span exists.
    func (tl traceLocker) SpanExists(s *mspan) {
    	tl.eventWriter(traceGoRunning, traceProcRunning).commit(traceEvSpan, traceSpanID(s), traceArg(s.npages), traceSpanTypeAndClass(s))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:32:51 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  5. src/runtime/tracestatus.go

    	// Trace the status.
    	if stackID == 0 {
    		w = w.event(traceEvGoStatus, traceArg(goid), traceArg(uint64(mid)), traceArg(status))
    	} else {
    		w = w.event(traceEvGoStatusStack, traceArg(goid), traceArg(uint64(mid)), traceArg(status), traceArg(stackID))
    	}
    
    	// Trace any special ranges that are in-progress.
    	if markAssist {
    		w = w.event(traceEvGCMarkAssistActive, traceArg(goid))
    	}
    	return w
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:03:35 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  6. src/runtime/tracestring.go

    // writing strings out into the trace.
    type traceStringTable struct {
    	// lock protects buf.
    	lock mutex
    	buf  *traceBuf // string batches to write out to the trace.
    
    	// tab is a mapping of string -> unique ID.
    	tab traceMap
    }
    
    // put adds a string to the table, emits it, and returns a unique ID for it.
    func (t *traceStringTable) put(gen uintptr, s string) uint64 {
    	// Put the string in the table.
    	ss := stringStructOf(&s)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:03:35 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  7. src/runtime/tracetype.go

    import (
    	"internal/abi"
    	"internal/goarch"
    	"unsafe"
    )
    
    // traceTypeTable maps stack traces (arrays of PC's) to unique uint32 ids.
    // It is lock-free for reading.
    type traceTypeTable struct {
    	tab traceMap
    }
    
    // put returns a unique id for the type typ and caches it in the table,
    // if it's seeing it for the first time.
    //
    // N.B. typ must be kept alive forever for this to work correctly.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:31:27 UTC 2024
    - 2.3K bytes
    - Viewed (0)
Back to top