Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for enableDebugTraceIfEnv (0.35 sec)

  1. src/cmd/compile/internal/inline/inlheur/trace_off.go

    // license that can be found in the LICENSE file.
    
    //go:build !debugtrace
    
    package inlheur
    
    const debugTrace = 0
    
    func enableDebugTrace(x int) {
    }
    
    func enableDebugTraceIfEnv() {
    }
    
    func disableDebugTrace() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 06 18:30:19 UTC 2023
    - 320 bytes
    - Viewed (0)
  2. src/cmd/compile/internal/inline/inlheur/scoring.go

    // after foo has been analyzed, but it's conceivable that CanInline
    // might visit bar before foo for this SCC.
    func ScoreCalls(fn *ir.Func) {
    	if len(fn.Body) == 0 {
    		return
    	}
    	enableDebugTraceIfEnv()
    
    	nameFinder := newNameFinder(fn)
    
    	if debugTrace&debugTraceScoring != 0 {
    		fmt.Fprintf(os.Stderr, "=-= ScoreCalls(%v)\n", ir.FuncName(fn))
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:42:52 UTC 2024
    - 24.2K bytes
    - Viewed (0)
Back to top