Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for parseGoCount (0.16 sec)

  1. src/cmd/vendor/github.com/google/pprof/profile/legacy_profile.go

    )
    
    func isSpaceOrComment(line string) bool {
    	trimmed := strings.TrimSpace(line)
    	return len(trimmed) == 0 || trimmed[0] == '#'
    }
    
    // parseGoCount parses a Go count profile (e.g., threadcreate or
    // goroutine) and returns a new Profile.
    func parseGoCount(b []byte) (*Profile, error) {
    	s := bufio.NewScanner(bytes.NewBuffer(b))
    	// Skip comments at the beginning of the file.
    	for s.Scan() && isSpaceOrComment(s.Text()) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 18:58:12 UTC 2022
    - 32.8K bytes
    - Viewed (0)
  2. src/cmd/vendor/github.com/google/pprof/profile/profile.go

    var errConcatProfile = fmt.Errorf("concatenated profiles detected")
    
    func parseLegacy(data []byte) (*Profile, error) {
    	parsers := []func([]byte) (*Profile, error){
    		parseCPU,
    		parseHeap,
    		parseGoCount, // goroutine, threadcreate
    		parseThread,
    		parseContention,
    		parseJavaProfile,
    	}
    
    	for _, parser := range parsers {
    		p, err := parser(data)
    		if err == nil {
    			p.addLegacyFrameInfo()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 22.3K bytes
    - Viewed (0)
Back to top