- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for stackID (0.81 sec)
-
src/runtime/tracestatus.go
func (w traceWriter) writeGoStatus(goid uint64, mid int64, status traceGoStatus, markAssist bool, stackID uint64) traceWriter { // The status should never be bad. Some invariant must have been violated. if status == traceGoBad { print("runtime: goid=", goid, "\n") throw("attempted to trace a bad status for a goroutine") } // Trace the status. if stackID == 0 { w = w.event(traceEvGoStatus, traceArg(goid), traceArg(uint64(mid)), traceArg(status))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 17:03:35 UTC 2024 - 7.2K bytes - Viewed (0) -
src/internal/trace/base.go
}, } e.base.args[0] = uint64(s.stack) return e } // stack represents a goroutine stack sample. type stack struct { pcs []uint64 } func (s stack) String() string { var sb strings.Builder for _, frame := range s.pcs { fmt.Fprintf(&sb, "\t%#v\n", frame) } return sb.String() } // frame represents a single stack frame. type frame struct { pc uint64
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 6.8K bytes - Viewed (0) -
src/cmd/trace/jsontrace_test.go
if keep { filtered.Events = append(filtered.Events, e) } } return } func stackFrames(data *format.Data, stackID int) (frames []string) { for { frame, ok := data.Frames[strconv.Itoa(stackID)] if !ok { return } frames = append(frames, frame.Name) stackID = frame.Parent } } func checkProcStartStop(t *testing.T, data format.Data) { procStarted := map[uint64]bool{}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 7.8K bytes - Viewed (0) -
src/runtime/tracecpu.go
var flushed bool w, flushed = w.ensure(2 + 5*traceBytesPerNumber /* traceEvCPUSamples + traceEvCPUSample + timestamp + g + m + p + stack ID */) if flushed { // Annotate the batch as containing strings. w.byte(byte(traceEvCPUSamples)) } // Add the stack to the table. stackID := trace.stackTab[gen%2].put(pcBuf[:nstk]) // Write out the CPU sample. w.byte(byte(traceEvCPUSample)) w.varint(timestamp)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 17:03:35 UTC 2024 - 8.7K bytes - Viewed (0) -
src/internal/trace/testdata/testprog/stacks.go
defer trace.Stop() // in case of early return // Now we will do a bunch of things for which we verify stacks later. // It is impossible to ensure that a goroutine has actually blocked // on a channel, in a select or otherwise. So we kick off goroutines // that need to block first in the hope that while we are executing // the rest of the test, they will block. go func() { // func1 select {} }() go func() { // func2 var c chan int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 2.4K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/internal/driver/stacks.go
return // error already reported } // Make stack data and generate corresponding JSON. stacks := rpt.Stacks() b, err := json.Marshal(stacks) if err != nil { http.Error(w, "error serializing stacks for flame graph", http.StatusInternalServerError) ui.options.UI.PrintErr(err) return } nodes := make([]string, len(stacks.Sources)) for i, src := range stacks.Sources { nodes[i] = src.FullName }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 1.7K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/internal/driver/html/stacks.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>{{.Title}}</title> {{template "css" .}} {{template "stacks_css"}} </head> <body> {{template "header" .}} <div id="stack-holder"> <div id="stack-chart"></div> <div id="current-details"></div> </div> <div id="action-menu" class="submenu"> <span id="action-title"></span> <hr>
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 1K bytes - Viewed (0) -
src/runtime/debug/stack.go
) // PrintStack prints to standard error the stack trace returned by runtime.Stack. func PrintStack() { os.Stderr.Write(Stack()) } // Stack returns a formatted stack trace of the goroutine that calls it. // It calls [runtime.Stack] with a large enough buffer to capture the entire trace. func Stack() []byte { buf := make([]byte, 1024) for { n := runtime.Stack(buf, false) if n < len(buf) { return buf[:n] }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 15:19:04 UTC 2024 - 3.2K bytes - Viewed (0) -
src/internal/trace/testdata/tests/go122-confuse-seq-across-generations.test
ProcStatus dt=1 p=0 pstatus=1 GoStatus dt=1 g=1 m=0 gstatus=2 GoStop dt=1 reason_string=1 stack=0 EventBatch gen=1 m=1 time=0 size=12 ProcStatus dt=1 p=1 pstatus=1 GoStart dt=1 g=1 g_seq=1 GoStop dt=1 reason_string=1 stack=0 EventBatch gen=1 m=18446744073709551615 time=0 size=5 Frequency freq=15625000 EventBatch gen=1 m=18446744073709551615 time=0 size=1 Stacks EventBatch gen=1 m=18446744073709551615 time=0 size=12 Strings String id=1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 1018 bytes - Viewed (0) -
src/runtime/defs_dragonfly_amd64.go
_type uint16 prio uint16 } type lwpparams struct { start_func uintptr arg unsafe.Pointer stack uintptr tid1 unsafe.Pointer // *int32 tid2 unsafe.Pointer // *int32 } type sigset struct { __bits [4]uint32 } type stackt struct { ss_sp uintptr ss_size uintptr ss_flags int32 pad_cgo_0 [4]byte } type siginfo struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 12 21:17:22 UTC 2024 - 3.5K bytes - Viewed (0)