Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for cpuSamples (0.23 sec)

  1. src/internal/trace/reader.go

    			r.frontier = heapRemove(r.frontier, i)
    		}
    		return true, nil
    	}
    	// Inject a CPU sample if it comes next.
    	if len(r.cpuSamples) != 0 {
    		if len(r.frontier) == 0 || r.cpuSamples[0].time < r.frontier[0].ev.time {
    			e := r.cpuSamples[0].asEvent(r.gen.evTable)
    			r.cpuSamples = r.cpuSamples[1:]
    			return e, nil
    		}
    	}
    	// Try to advance the head of the frontier, which should have the minimum timestamp.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  2. src/internal/trace/generation.go

    		return nil, nil, err
    	}
    
    	// Fix up the CPU sample timestamps, now that we have freq.
    	for i := range g.cpuSamples {
    		s := &g.cpuSamples[i]
    		s.time = g.freq.mul(timestamp(s.time))
    	}
    	// Sort the CPU samples.
    	slices.SortFunc(g.cpuSamples, func(a, b cpuSample) int {
    		return cmp.Compare(a.time, b.time)
    	})
    	return g, spill, spillErr
    }
    
    // processBatch adds the batch to the generation.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 22:14:45 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  3. src/internal/trace/internal/oldtrace/parser.go

    	// inside the signal handler.
    	slices.SortFunc(p.cpuSamples, func(a, b Event) int {
    		return cmp.Compare(a.Ts, b.Ts)
    	})
    
    	allProcs := make([]proc, 0, len(p.batchOffsets))
    	for pid := range p.batchOffsets {
    		allProcs = append(allProcs, proc{pid: pid})
    	}
    	allProcs = append(allProcs, proc{pid: ProfileP, events: p.cpuSamples})
    
    	events := Events{}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 46.8K bytes
    - Viewed (0)
  4. src/internal/trace/event/go122/event.go

    		Name: "Strings",
    	},
    	EvString: event.Spec{
    		Name:    "String",
    		Args:    []string{"id"},
    		HasData: true,
    	},
    	EvCPUSamples: event.Spec{
    		Name: "CPUSamples",
    	},
    	EvCPUSample: event.Spec{
    		Name: "CPUSample",
    		Args: []string{"time", "m", "p", "g", "stack"},
    		// N.B. There's clearly a timestamp here, but these Events
    		// are special in that they don't appear in the regular
    		// M streams.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  5. src/internal/trace/base.go

    type extraStringID uint64
    
    // stackID is an index into the stack table for a generation.
    type stackID uint64
    
    // cpuSample represents a CPU profiling sample captured by the trace.
    type cpuSample struct {
    	schedCtx
    	time  Time
    	stack stackID
    }
    
    // asEvent produces a complete Event from a cpuSample. It needs
    // the evTable from the generation that created it.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 6.8K bytes
    - Viewed (0)
Back to top