This repository has been archived by the owner on Aug 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtrace.go
39 lines (32 loc) · 1.49 KB
/
trace.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
package rcmgr
import (
rcmgr "github.com/libp2p/go-libp2p/p2p/host/resource-manager"
)
// Deprecated: use github.com/libp2p/go-libp2p/p2p/host/resource-manager.TraceReporter instead
type TraceReporter = rcmgr.TraceReporter
// Deprecated: use github.com/libp2p/go-libp2p/p2p/host/resource-manager.WithTrace instead
func WithTrace(path string) Option {
return rcmgr.WithTrace(path)
}
// Deprecated: use github.com/libp2p/go-libp2p/p2p/host/resource-manager.WithTraceReporter instead
func WithTraceReporter(reporter TraceReporter) Option {
return rcmgr.WithTraceReporter(reporter)
}
// Deprecated: use github.com/libp2p/go-libp2p/p2p/host/resource-manager.TraceEvtTyp instead
type TraceEvtTyp = rcmgr.TraceEvtTyp
const (
TraceStartEvt = rcmgr.TraceStartEvt
TraceCreateScopeEvt = rcmgr.TraceCreateScopeEvt
TraceDestroyScopeEvt = rcmgr.TraceDestroyScopeEvt
TraceReserveMemoryEvt = rcmgr.TraceReserveMemoryEvt
TraceBlockReserveMemoryEvt = rcmgr.TraceBlockReserveMemoryEvt
TraceReleaseMemoryEvt = rcmgr.TraceReleaseMemoryEvt
TraceAddStreamEvt = rcmgr.TraceAddStreamEvt
TraceBlockAddStreamEvt = rcmgr.TraceBlockAddStreamEvt
TraceRemoveStreamEvt = rcmgr.TraceRemoveStreamEvt
TraceAddConnEvt = rcmgr.TraceAddConnEvt
TraceBlockAddConnEvt = rcmgr.TraceBlockAddConnEvt
TraceRemoveConnEvt = rcmgr.TraceRemoveConnEvt
)
// Deprecated: use github.com/libp2p/go-libp2p/p2p/host/resource-manager.TraceEvt instead
type TraceEvt = rcmgr.TraceEvt