Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for FileBase (0.11 sec)

  1. src/cmd/link/internal/benchmark/bench.go

    //	  if *enableBenchmarking {
    //	    bench = benchmark.New(benchmark.GC)
    //	  }
    //	  bench.Start("foo")
    //	  // etc.
    //	}
    func New(gc Flags, filebase string) *Metrics {
    	if gc == GC {
    		runtime.GC()
    	}
    	return &Metrics{gc: gc, filebase: filebase}
    }
    
    // Report reports the metrics.
    // Closes the currently Start(ed) range, and writes the report to the given io.Writer.
    func (m *Metrics) Report(w io.Writer) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 30 18:10:36 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  2. src/cmd/vendor/github.com/google/pprof/internal/driver/html/source.html

                  {{range .InlinedCalls -}}
                    {{printf " %8s %10s %10s %8s  " "" "" "" "" -}}
                    <span class=inlinesrc>{{.SrcLine}}</span>{{" " -}}
                    <span class=unimportant>{{.FileBase}}:{{.Line}}</span>{{"\n" -}}
                  {{end -}}
    
                  {{if not .Synthetic -}}
                    {{/* disassembled instruction */ -}}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/syntax/pos.go

    func (pos Pos) Line() uint     { return uint(pos.line) }
    func (pos Pos) Col() uint      { return uint(pos.col) }
    
    // FileBase returns the PosBase of the file containing pos,
    // skipping over intermediate PosBases from //line directives.
    // The result is nil if pos doesn't have a file base.
    func (pos Pos) FileBase() *PosBase {
    	b := pos.base
    	for b != nil && b != b.pos.base {
    		b = b.pos.base
    	}
    	// b == nil || b == b.pos.base
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 20:44:57 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/version.go

    // allowVersion returns true.
    func (check *Checker) allowVersion(at poser, v goVersion) bool {
    	fileVersion := check.conf.GoVersion
    	if pos := at.Pos(); pos.IsKnown() {
    		fileVersion = check.versions[pos.FileBase()]
    	}
    
    	// We need asGoVersion (which calls version.Lang) below
    	// because fileVersion may be the (unaltered) Config.GoVersion
    	// string which may contain dot-release information.
    	version := asGoVersion(fileVersion)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 20:44:57 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top