- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for Stat (0.03 sec)
-
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) -
src/cmd/trace/main.go
if err != nil { logAndDie(fmt.Errorf("failed to read trace file: %w", err)) } defer tracef.Close() // Get the size of the trace file. fi, err := tracef.Stat() if err != nil { logAndDie(fmt.Errorf("failed to stat trace file: %v", err)) } traceSize := fi.Size() // Handle requests for profiles. if *pprofFlag != "" { parsed, err := parseTrace(tracef, traceSize) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 10.4K bytes - Viewed (0) -
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) -
src/cmd/link/internal/ld/main.go
asmb2(ctxt) bench.Start("Munmap") ctxt.Out.Close() // Close handles Munmapping if necessary. bench.Start("hostlink") ctxt.hostlink() if ctxt.Debugvlog != 0 { ctxt.Logf("%s", ctxt.loader.Stat()) ctxt.Logf("%d liveness data\n", liveness) } bench.Start("Flush") ctxt.Bso.Flush() bench.Start("archive") ctxt.archive() bench.Report(os.Stdout) errorexit() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 16:59:50 UTC 2024 - 16.6K bytes - Viewed (0) -
src/cmd/go/main.go
return } if cfg.GOROOT == "" { fmt.Fprintf(os.Stderr, "go: cannot find GOROOT directory: 'go' binary is trimmed and GOROOT is not set\n") os.Exit(2) } if fi, err := os.Stat(cfg.GOROOT); err != nil || !fi.IsDir() { fmt.Fprintf(os.Stderr, "go: cannot find GOROOT directory: %v\n", cfg.GOROOT) os.Exit(2) } switch strings.ToLower(cfg.GOROOT) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:09:11 UTC 2024 - 10K bytes - Viewed (0)