Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for disableMemoryProfiling (0.5 sec)

  1. src/cmd/link/internal/ld/ld_test.go

    	} else if !useASLR && hasASLR {
    		t.Error("IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE flag should not be set")
    	}
    }
    
    // TestMemProfileCheck tests that cmd/link sets
    // runtime.disableMemoryProfiling if the runtime.MemProfile
    // symbol is unreachable after deadcode (and not dynlinking).
    // The runtime then uses that to set the default value of
    // runtime.MemProfileRate, which this test checks.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 05:45:53 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  2. src/runtime/mprof.go

    // possible in the execution of the program (for example,
    // at the beginning of main).
    var MemProfileRate int = 512 * 1024
    
    // disableMemoryProfiling is set by the linker if runtime.MemProfile
    // is not used and the link type guarantees nobody else could use it
    // elsewhere.
    var disableMemoryProfiling bool
    
    // A MemProfileRecord describes the live objects allocated
    // by a particular call sequence (stack trace).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/lib.go

    			sb2.SetType(sym.SDATA)
    			sb2.SetSize(0)
    			if buildcfg.GOARM.SoftFloat {
    				sb2.AddUint8(1)
    			} else {
    				sb2.AddUint8(0)
    			}
    		}
    
    		// Set runtime.disableMemoryProfiling bool if
    		// runtime.MemProfile is not retained in the binary after
    		// deadcode (and we're not dynamically linking).
    		memProfile := ctxt.loader.Lookup("runtime.MemProfile", abiInternalVer)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 88.6K bytes
    - Viewed (0)
  4. src/runtime/proc.go

    	gcrash.stackguard1 = gcrash.stack.lo + 1000
    
    	// if disableMemoryProfiling is set, update MemProfileRate to 0 to turn off memprofile.
    	// Note: parsedebugvars may update MemProfileRate, but when disableMemoryProfiling is
    	// set to true by the linker, it means that nothing is consuming the profile, it is
    	// safe to set MemProfileRate to 0.
    	if disableMemoryProfiling {
    		MemProfileRate = 0
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
Back to top