CallsiteInsns returns callsite assembly opcodes for leading/trailing bytes contained in each frame.
(pid uint32, leading bool)
| 419 | // CallsiteInsns returns callsite assembly opcodes |
| 420 | // for leading/trailing bytes contained in each frame. |
| 421 | func (s Callstack) CallsiteInsns(pid uint32, leading bool) []string { |
| 422 | proc, err := windows.OpenProcess(windows.PROCESS_QUERY_INFORMATION|windows.PROCESS_VM_READ, false, pid) |
| 423 | if err != nil { |
| 424 | return nil |
| 425 | } |
| 426 | defer windows.Close(proc) |
| 427 | opcodes := make([]string, len(s)) |
| 428 | for i, f := range s { |
| 429 | opcodes[i] = f.CallsiteAssembly(proc, leading) |
| 430 | } |
| 431 | return opcodes |
| 432 | } |
no test coverage detected