Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for stackID (0.13 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. src/cmd/vendor/github.com/google/pprof/internal/report/stacks.go

    				inlined := (j != len(loc.Line)-1)
    				stack.Sources = append(stack.Sources, getSrc(line, inlined))
    			}
    		}
    
    		leaf := stack.Sources[len(stack.Sources)-1]
    		s.Sources[leaf].Self += value
    		s.Stacks = append(s.Stacks, stack)
    	}
    }
    
    func (s *StackSet) fillPlaces() {
    	for i, stack := range s.Stacks {
    		seenSrcs := map[int]bool{}
    		for j, src := range stack.Sources {
    			if seenSrcs[src] {
    				continue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  6. 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)
  7. src/runtime/cgo/gcc_libinit.c

    		pbounds = &bounds[0];
    	}
    
    	x_cgo_getstackbound(pbounds);
    
    	g->stacklo = *pbounds;
    
    	// Sanity check the results now, rather than getting a
    	// morestack on g0 crash.
    	if (g->stacklo >= g->stackhi) {
    		fprintf(stderr, "runtime/cgo: bad stack bounds: lo=%p hi=%p\n", (void*)(g->stacklo), (void*)(g->stackhi));
    		abort();
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 01:07:18 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. test/codegen/stack.go

    // license that can be found in the LICENSE file.
    
    package codegen
    
    import "runtime"
    
    // This file contains code generation tests related to the use of the
    // stack.
    
    // Check that stack stores are optimized away.
    
    // 386:"TEXT\t.*, [$]0-"
    // amd64:"TEXT\t.*, [$]0-"
    // arm:"TEXT\t.*, [$]-4-"
    // arm64:"TEXT\t.*, [$]0-"
    // mips:"TEXT\t.*, [$]-4-"
    // ppc64x:"TEXT\t.*, [$]0-"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 21:29:41 UTC 2024
    - 3.4K bytes
    - Viewed (0)
Back to top