-
Notifications
You must be signed in to change notification settings - Fork 62
/
release.go
33 lines (21 loc) · 830 Bytes
/
release.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// +build !debug
// +build !instrumentation
package cu
const DEBUG = false
var tc uint32
// var _logger_ = log.New(os.Stderr, "", 0)
// var replacement = "\n"
func tabcount() int { return 0 }
func enterLoggingContext() {}
func leaveLoggingContext() {}
func logf(format string, others ...interface{}) {}
/* Debugging Utility Methods */
// instrumentation related functions
func logCaller(inspect string) {}
func addQueueLength(l int) {}
// QueueLengths return the queue lengths recorded
func QueueLengths() []int { return nil }
// AverageQueueLength returns the average queue length recorded. This allows for optimizations.
func AverageQueueLength() int { return 0 }
func addBlockingCallers() {}
func BlockingCallers() map[string]int { return nil }