Browse Source

Do not hide allocation frames under call32/call64.

See https://github.com/google/pprof/issues/54. Frames under
call32/call64 may be user code frames so should be shown to avoid
confusing re-attribution of allocations to the calling system frames.
Alexey Alexandrov 8 years ago
parent
commit
4e36200fb4
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      profile/legacy_profile.go

+ 3
- 0
profile/legacy_profile.go View File

1174
 	// Preserve Go runtime frames that appear in the middle/bottom of
1174
 	// Preserve Go runtime frames that appear in the middle/bottom of
1175
 	// the stack.
1175
 	// the stack.
1176
 	`runtime\.panic`,
1176
 	`runtime\.panic`,
1177
+	// See https://github.com/google/pprof/issues/54.
1178
+	`runtime\.call32`,
1179
+	`runtime\.call64`,
1177
 }, `|`)
1180
 }, `|`)
1178
 
1181
 
1179
 var cpuProfilerRxStr = strings.Join([]string{
1182
 var cpuProfilerRxStr = strings.Join([]string{