解析类型,输出
(e event.IEventStruct)
| 64 | |
| 65 | // 解析类型,输出 |
| 66 | func (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 | |
| 85 | func (this *eventWorker) Run() { |
| 86 | for { |
no test coverage detected