Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for cpuSamples (0.18 sec)

  1. 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)
  2. 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)
  3. 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)
Back to top