Skip to content

Commit

Permalink
use a string for trace events (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann authored Apr 8, 2022
1 parent e7ac18a commit d78a5b0
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions p2p/host/resource-manager/trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,22 @@ func WithTrace(path string) Option {
}

const (
traceStartEvt = iota
traceCreateScopeEvt
traceDestroyScopeEvt
traceReserveMemoryEvt
traceBlockReserveMemoryEvt
traceReleaseMemoryEvt
traceAddStreamEvt
traceBlockAddStreamEvt
traceRemoveStreamEvt
traceAddConnEvt
traceBlockAddConnEvt
traceRemoveConnEvt
traceStartEvt = "start"
traceCreateScopeEvt = "create_scope"
traceDestroyScopeEvt = "destroy_scope"
traceReserveMemoryEvt = "reserve_memory"
traceBlockReserveMemoryEvt = "block_reserve_memory"
traceReleaseMemoryEvt = "release_memory"
traceAddStreamEvt = "add_stream"
traceBlockAddStreamEvt = "block_add_stream"
traceRemoveStreamEvt = "remove_stream"
traceAddConnEvt = "add_conn"
traceBlockAddConnEvt = "block_add_conn"
traceRemoveConnEvt = "remove_conn"
)

type traceEvt struct {
Type int
Type string

Scope string `json:",omitempty"`

Expand Down

0 comments on commit d78a5b0

Please sign in to comment.