summaryrefslogtreecommitdiff
path: root/debugoff.go
blob: ba0ef33c01b0febea4a89989eb7ddf2478d39a9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// +build !debug

package goparsify

// NewParser should be called around the creation of every Parser.
// It does nothing normally and should incur no runtime overhead, but when building with -tags debug
// it will instrument every parser to collect valuable timing information displayable with DumpDebugStats.
func NewParser(description string, p Parser) Parser {
	return p
}

// DumpDebugStats will print out the curring timings for each parser if built with -tags debug
func DumpDebugStats() {}