Source File
filter.go
Belonging Package
github.com/google/pprof/profile
package profile
import
func ( *Profile) (, , , *regexp.Regexp) (, , , bool) {
:= make(map[uint64]bool)
:= make(map[uint64]bool)
for , := range .Location {
if != nil && .matchesName() {
= true
[.ID] = false
} else if == nil || .matchesName() {
= true
[.ID] = true
}
if != nil && .matchesName() {
= true
.Line = .unmatchedLines()
if len(.Line) == 0 {
[.ID] = true
}
}
if != nil {
.Line = .matchedLines()
if len(.Line) == 0 {
[.ID] = true
} else {
= true
}
}
}
:= make([]*Sample, 0, len(.Sample))
for , := range .Sample {
if focusedAndNotIgnored(.Location, ) {
if len() > 0 {
var []*Location
for , := range .Location {
if ![.ID] {
= append(, )
}
}
for , := range .Location {
if filterShowFromLocation(, ) {
[.ID] = true
= true
}
func ( *Profile) (, *regexp.Regexp) (, bool) {
:= func( string) bool {
:= == nil || .MatchString()
:= != nil && .MatchString()
if {
= true
}
if {
= true
}
return ! ||
}
for , := range .Sample {
for := range .Label {
if () {
delete(.Label, )
}
}
for := range .NumLabel {
if () {
delete(.NumLabel, )
}
}
}
return
}
= true
return false
}
}
}
return
}
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |