Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for RawEvent (0.4 sec)

  1. src/internal/trace/testdata/generators/go122-fail-first-gen-first.go

    func gen(t *testgen.Trace) {
    	// A running goroutine emits a task begin.
    	t.RawEvent(go122.EvEventBatch, nil, 1 /*gen*/, 0 /*thread ID*/, 0 /*timestamp*/, 5 /*batch length*/)
    	t.RawEvent(go122.EvFrequency, nil, 15625000)
    
    	// A running goroutine emits a task begin.
    	t.RawEvent(go122.EvEventBatch, nil, 1 /*gen*/, 0 /*thread ID*/, 0 /*timestamp*/, 5 /*batch length*/)
    	t.RawEvent(go122.EvGoCreate, nil, 0 /*timestamp delta*/, 1 /*go ID*/, 0, 0)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. src/internal/trace/internal/testgen/go122/trace.go

    		}
    		b.RawEvent(go122.EvStack, nil, args...)
    
    		// Flush the batch if necessary.
    		if !g.ignoreStackBatchSizeLimit && b.size > go122.MaxBatchSize/2 {
    			b.writeEventsTo(tw)
    			b = g.newStructuralBatch()
    		}
    	}
    	b.writeEventsTo(tw)
    
    	// Write strings.
    	b = g.newStructuralBatch()
    	b.RawEvent(go122.EvStrings, nil)
    	for s, id := range g.strings {
    		b.RawEvent(go122.EvString, []byte(s), id)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  3. src/internal/trace/internal/oldtrace/parser.go

    		Events:        events,
    		Stacks:        p.stacks,
    		Strings:       p.strings,
    		InlineStrings: p.inlineStrings,
    		PCs:           p.pcs,
    	}
    	return res, nil
    }
    
    // rawEvent is a helper type used during parsing.
    type rawEvent struct {
    	typ   event.Type
    	args  []uint64
    	sargs []string
    
    	// if typ == EvBatch, these fields describe the batch.
    	batchPid    int32
    	batchOffset int
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 46.8K bytes
    - Viewed (0)
Back to top