-
Notifications
You must be signed in to change notification settings - Fork 179
/
noop.go
122 lines (117 loc) · 10.5 KB
/
noop.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
package metrics
import (
"time"
"github.com/onflow/flow-go/model/cluster"
"github.com/onflow/flow-go/model/flow"
"github.com/onflow/flow-go/module"
)
type NoopCollector struct{}
func NewNoopCollector() *NoopCollector {
nc := &NoopCollector{}
return nc
}
func (nc *NoopCollector) NetworkMessageSent(sizeBytes int, topic string, messageType string) {}
func (nc *NoopCollector) NetworkMessageReceived(sizeBytes int, topic string, messageType string) {}
func (nc *NoopCollector) NetworkDuplicateMessagesDropped(topic string, messageType string) {}
func (nc *NoopCollector) MessageAdded(priority int) {}
func (nc *NoopCollector) MessageRemoved(priority int) {}
func (nc *NoopCollector) QueueDuration(duration time.Duration, priority int) {}
func (nc *NoopCollector) InboundProcessDuration(topic string, duration time.Duration) {}
func (nc *NoopCollector) MessageSent(engine string, message string) {}
func (nc *NoopCollector) MessageReceived(engine string, message string) {}
func (nc *NoopCollector) MessageHandled(engine string, message string) {}
func (nc *NoopCollector) OutboundConnections(_ uint) {}
func (nc *NoopCollector) InboundConnections(_ uint) {}
func (nc *NoopCollector) RanGC(duration time.Duration) {}
func (nc *NoopCollector) BadgerLSMSize(sizeBytes int64) {}
func (nc *NoopCollector) BadgerVLogSize(sizeBytes int64) {}
func (nc *NoopCollector) BadgerNumReads(n int64) {}
func (nc *NoopCollector) BadgerNumWrites(n int64) {}
func (nc *NoopCollector) BadgerNumBytesRead(n int64) {}
func (nc *NoopCollector) BadgerNumBytesWritten(n int64) {}
func (nc *NoopCollector) BadgerNumGets(n int64) {}
func (nc *NoopCollector) BadgerNumPuts(n int64) {}
func (nc *NoopCollector) BadgerNumBlockedPuts(n int64) {}
func (nc *NoopCollector) BadgerNumMemtableGets(n int64) {}
func (nc *NoopCollector) FinalizedHeight(height uint64) {}
func (nc *NoopCollector) SealedHeight(height uint64) {}
func (nc *NoopCollector) BlockProposed(*flow.Block) {}
func (nc *NoopCollector) BlockFinalized(*flow.Block) {}
func (nc *NoopCollector) BlockSealed(*flow.Block) {}
func (nc *NoopCollector) BlockProposalDuration(duration time.Duration) {}
func (nc *NoopCollector) CacheEntries(resource string, entries uint) {}
func (nc *NoopCollector) CacheHit(resource string) {}
func (nc *NoopCollector) CacheMiss(resource string) {}
func (nc *NoopCollector) MempoolEntries(resource string, entries uint) {}
func (nc *NoopCollector) Register(resource string, entriesFunc module.EntriesFunc) error { return nil }
func (nc *NoopCollector) HotStuffBusyDuration(duration time.Duration, event string) {}
func (nc *NoopCollector) HotStuffIdleDuration(duration time.Duration) {}
func (nc *NoopCollector) HotStuffWaitDuration(duration time.Duration, event string) {}
func (nc *NoopCollector) SetCurView(view uint64) {}
func (nc *NoopCollector) SetQCView(view uint64) {}
func (nc *NoopCollector) CountSkipped() {}
func (nc *NoopCollector) CountTimeout() {}
func (nc *NoopCollector) SetTimeout(duration time.Duration) {}
func (nc *NoopCollector) CommitteeProcessingDuration(duration time.Duration) {}
func (nc *NoopCollector) SignerProcessingDuration(duration time.Duration) {}
func (nc *NoopCollector) ValidatorProcessingDuration(duration time.Duration) {}
func (nc *NoopCollector) PayloadProductionDuration(duration time.Duration) {}
func (nc *NoopCollector) TransactionIngested(txID flow.Identifier) {}
func (nc *NoopCollector) ClusterBlockProposed(*cluster.Block) {}
func (nc *NoopCollector) ClusterBlockFinalized(*cluster.Block) {}
func (nc *NoopCollector) StartCollectionToFinalized(collectionID flow.Identifier) {}
func (nc *NoopCollector) FinishCollectionToFinalized(collectionID flow.Identifier) {}
func (nc *NoopCollector) StartBlockToSeal(blockID flow.Identifier) {}
func (nc *NoopCollector) FinishBlockToSeal(blockID flow.Identifier) {}
func (nc *NoopCollector) EmergencySeal() {}
func (nc *NoopCollector) OnReceiptProcessingDuration(duration time.Duration) {}
func (nc *NoopCollector) OnApprovalProcessingDuration(duration time.Duration) {}
func (nc *NoopCollector) CheckSealingDuration(duration time.Duration) {}
func (nc *NoopCollector) OnExecutionReceiptReceived() {}
func (nc *NoopCollector) OnExecutionResultSent() {}
func (nc *NoopCollector) OnExecutionResultReceived() {}
func (nc *NoopCollector) OnVerifiableChunkSent() {}
func (nc *NoopCollector) OnVerifiableChunkReceived() {}
func (nc *NoopCollector) OnChunkDataPackReceived() {}
func (nc *NoopCollector) OnChunkDataPackRequested() {}
func (nc *NoopCollector) OnResultApproval() {}
func (nc *NoopCollector) OnAssignerProcessFinalizedBlock(height uint64) {}
func (nc *NoopCollector) OnChunksAssigned(chunks int) {}
func (nc *NoopCollector) OnChunkProcessed() {}
func (nc *NoopCollector) StartBlockReceivedToExecuted(blockID flow.Identifier) {}
func (nc *NoopCollector) FinishBlockReceivedToExecuted(blockID flow.Identifier) {}
func (nc *NoopCollector) ExecutionGasUsedPerBlock(gas uint64) {}
func (nc *NoopCollector) ExecutionStateReadsPerBlock(reads uint64) {}
func (nc *NoopCollector) ExecutionStateStorageDiskTotal(bytes int64) {}
func (nc *NoopCollector) ExecutionStorageStateCommitment(bytes int64) {}
func (nc *NoopCollector) ExecutionLastExecutedBlockHeight(height uint64) {}
func (nc *NoopCollector) ExecutionTotalExecutedTransactions(numberOfTx int) {}
func (nc *NoopCollector) ForestApproxMemorySize(bytes uint64) {}
func (nc *NoopCollector) ForestNumberOfTrees(number uint64) {}
func (nc *NoopCollector) LatestTrieRegCount(number uint64) {}
func (nc *NoopCollector) LatestTrieRegCountDiff(number uint64) {}
func (nc *NoopCollector) LatestTrieMaxDepth(number uint64) {}
func (nc *NoopCollector) LatestTrieMaxDepthDiff(number uint64) {}
func (nc *NoopCollector) UpdateCount() {}
func (nc *NoopCollector) ProofSize(bytes uint32) {}
func (nc *NoopCollector) UpdateValuesNumber(number uint64) {}
func (nc *NoopCollector) UpdateValuesSize(byte uint64) {}
func (nc *NoopCollector) UpdateDuration(duration time.Duration) {}
func (nc *NoopCollector) UpdateDurationPerItem(duration time.Duration) {}
func (nc *NoopCollector) ReadValuesNumber(number uint64) {}
func (nc *NoopCollector) ReadValuesSize(byte uint64) {}
func (nc *NoopCollector) ReadDuration(duration time.Duration) {}
func (nc *NoopCollector) ReadDurationPerItem(duration time.Duration) {}
func (nc *NoopCollector) ExecutionCollectionRequestSent() {}
func (nc *NoopCollector) ExecutionCollectionRequestRetried() {}
func (nc *NoopCollector) TransactionParsed(dur time.Duration) {}
func (nc *NoopCollector) TransactionChecked(dur time.Duration) {}
func (nc *NoopCollector) TransactionInterpreted(dur time.Duration) {}
func (nc *NoopCollector) TransactionReceived(txID flow.Identifier, when time.Time) {}
func (nc *NoopCollector) TransactionFinalized(txID flow.Identifier, when time.Time) {}
func (nc *NoopCollector) TransactionExecuted(txID flow.Identifier, when time.Time) {}
func (nc *NoopCollector) TransactionExpired(txID flow.Identifier) {}
func (nc *NoopCollector) TransactionSubmissionFailed() {}
func (nc *NoopCollector) ChunkDataPackRequested() {}
func (nc *NoopCollector) ExecutionSync(syncing bool) {}
func (nc *NoopCollector) DiskSize(uint64) {}