eclipse-openj9 / openj9-utils

Other
16 stars 29 forks source link

perf-tool: add event type #35

Closed fmhwong closed 3 years ago

fmhwong commented 3 years ago

When multiple events are enabled, the output JSON has no easy way to distinguish the a JSON object is written for a particular event type.

gireeshpunathil commented 3 years ago
{
  "body": {
    "Class": "Work",
    "eventType": "monitorContendedEvent",
    "numTypeContentions": 100,
    "stackTrace": [
      {
        "class": "LMyThread;",
        "method": "bar",
        "signature": "()V"
      },
      {
        "class": "LMyThread;",
        "method": "run",
        "signature": "()V"
      }
    ],
    "threadID": 31,
    "threadName": "Thread-10",
    "threadNativeID": 307012
  },
  "from": "Server",
  "timestamp": 1614187384641259981
}

@fmhwong - will this kind of an info ("eventType": "monitorContendedEvent",) work?

fmhwong commented 3 years ago

@gireeshpunathil Yes, this will work.