Skip to content

Commit 727d3e6

Browse files
committed
bytesprofile: bump stack depth
Bump the maximum stack depth sampled from 20 frames to 30. We've observed that we could use more depth in Cockroach stack traces, as we're unable to see where a batch evaluation originated even if it's run on the same node.
1 parent 665e503 commit 727d3e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/bytesprofile/bytesprofile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func NewProfile() *Profile {
2828
return &Profile{samples: make(map[stack]aggSamples)}
2929
}
3030

31-
type stack [20]uintptr
31+
type stack [30]uintptr
3232

3333
// trimmed returns the non-zero stack frames of stack.
3434
func (s stack) trimmed() []uintptr {

0 commit comments

Comments
 (0)