rpc: start/stop cpu profiler

This commit is contained in:
Ethan Buchman
2016-04-19 20:43:54 -04:00
parent 2215ad74ff
commit f5be3cd8f9
6 changed files with 87 additions and 32 deletions
+4
View File
@@ -77,6 +77,10 @@ func NewMempool(proxyAppConn proxy.AppConn) *Mempool {
return mempool
}
func (mem *Mempool) Size() int {
return mem.txs.Len()
}
// Return the first element of mem.txs for peer goroutines to call .NextWait() on.
// Blocks until txs has elements.
func (mem *Mempool) TxsFrontWait() *clist.CElement {