MCPcopy Create free account
hub / github.com/SeeFlowerX/stackplz / parserEvent

Method parserEvent

user/event_processor/iworker.go:66–83  ·  view source on GitHub ↗

解析类型,输出

(e event.IEventStruct)

Source from the content-addressed store, hash-verified

64
65// 解析类型,输出
66func (this *eventWorker) parserEvent(e event.IEventStruct) {
67 logger := this.processor.GetLogger()
68 switch e.RecordType() {
69 case unix.PERF_RECORD_COMM:
70 case unix.PERF_RECORD_MMAP2:
71 case unix.PERF_RECORD_EXIT:
72 case unix.PERF_RECORD_FORK:
73 {
74 // 这几种暂时不需要输出
75 break
76 }
77 default:
78 {
79 logger.Println(e.String())
80 }
81 }
82
83}
84
85func (this *eventWorker) Run() {
86 for {

Callers 1

RunMethod · 0.95

Calls 3

RecordTypeMethod · 0.65
StringMethod · 0.65
GetLoggerMethod · 0.45

Tested by

no test coverage detected