proc,service,terminal: information about stack trace truncation

Add a flag to Stackframe that indicates where the stack frame is the
bottom-most frame of the stack. This allows clients to know whether the
stack trace terminated normally or if it was truncated because the
maximum depth was reached.
Add a truncation message to the 'stack' command.
This commit is contained in:
aarzilli
2018-08-18 12:12:39 +02:00
committed by Derek Parker
parent b8e80746e5
commit ac74944d53
6 changed files with 33 additions and 3 deletions

View File

@ -131,6 +131,8 @@ type Stackframe struct {
Defers []Defer
Bottom bool `json:"Bottom,omitempty"` // Bottom is true if this is the bottom frame of the stack
Err string
}