Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Stat (0.07 sec)

  1. src/internal/trace/testdata/cmd/gotraceeventstats/main.go

    	for i := range stats {
    		stat := &stats[i]
    		name := ""
    		if int(stat.typ) >= len(specs) {
    			name = fmt.Sprintf("<unknown (%d)>", stat.typ)
    		} else {
    			name = specs[stat.typ].Name
    		}
    		bytesPct := float64(stat.bytes) / float64(cr.bytesRead) * 100
    		countPct := float64(stat.count) / float64(eventsRead) * 100
    		fmt.Fprintf(w, "%s\t%d\t%.2f%%\t%d\t%.2f%%\n", name, stat.bytes, bytesPct, stat.count, countPct)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:31:29 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  2. src/cmd/fix/main.go

    		if err := processFile("standard input", true); err != nil {
    			report(err)
    		}
    		os.Exit(exitCode)
    	}
    
    	for i := 0; i < flag.NArg(); i++ {
    		path := flag.Arg(i)
    		switch dir, err := os.Stat(path); {
    		case err != nil:
    			report(err)
    		case dir.IsDir():
    			walkDir(path)
    		default:
    			if err := processFile(path, false); err != nil {
    				report(err)
    			}
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 5.4K bytes
    - Viewed (0)
Back to top