Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for peBuildID (0.18 sec)

  1. src/runtime/pprof/pe.go

    // license that can be found in the LICENSE file.
    
    package pprof
    
    import "os"
    
    // peBuildID returns a best effort unique ID for the named executable.
    //
    // It would be wasteful to calculate the hash of the whole file,
    // instead use the binary name and the last modified time for the buildid.
    func peBuildID(file string) string {
    	s, err := os.Stat(file)
    	if err != nil {
    		return file
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 20 00:18:04 UTC 2022
    - 536 bytes
    - Viewed (0)
  2. src/runtime/pprof/proto_windows.go

    		return
    	}
    	for err == nil {
    		exe := syscall.UTF16ToString(module.ExePath[:])
    		b.addMappingEntry(
    			uint64(module.ModBaseAddr),
    			uint64(module.ModBaseAddr)+uint64(module.ModBaseSize),
    			0,
    			exe,
    			peBuildID(exe),
    			false,
    		)
    		err = windows.Module32Next(snap, &module)
    	}
    }
    
    func readMainModuleMapping() (start, end uint64, exe, buildID string, err error) {
    	exe, err = os.Executable()
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 16:07:59 UTC 2023
    - 2.2K bytes
    - Viewed (0)
Back to top