- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for machVMInfo (0.41 sec)
-
src/runtime/pprof/proto_darwin.go
// made to obtain the buildID information. func (b *profileBuilder) readMapping() { if !machVMInfo(b.addMapping) { b.addMappingEntry(0, 0, 0, "", "", true) } } func readMainModuleMapping() (start, end uint64, exe, buildID string, err error) { first := true ok := machVMInfo(func(lo, hi, off uint64, file, build string) { if first { start, end = lo, hi exe, buildID = file, build }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 03 16:07:59 UTC 2023 - 1K bytes - Viewed (0) -
src/runtime/pprof/vminfo_darwin.go
"unsafe" ) func isExecutable(protection int32) bool { return (protection&_VM_PROT_EXECUTE) != 0 && (protection&_VM_PROT_READ) != 0 } // machVMInfo uses the mach_vm_region region system call to add mapping entries // for the text region of the running process. func machVMInfo(addMapping func(lo, hi, offset uint64, file, buildID string)) bool { added := false var addr uint64 = 0x1 for { var memRegionSize uint64
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 04 23:35:39 UTC 2023 - 2K bytes - Viewed (0) -
src/runtime/pprof/vminfo_darwin_test.go
"internal/abi" "internal/testenv" "os" "os/exec" "strconv" "strings" "testing" ) func TestVMInfo(t *testing.T) { var begin, end, offset uint64 var filename string first := true machVMInfo(func(lo, hi, off uint64, file, buildID string) { if first { begin = lo end = hi offset = off filename = file } // May see multiple text segments if rosetta is used for running
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 16 19:59:50 UTC 2024 - 5.5K bytes - Viewed (0)