eclipse-openj9 / openj9-utils

Other
16 stars 29 forks source link

perf-tool: owning thread info in the JSON body #20

Closed gireeshpunathil closed 3 years ago

gireeshpunathil commented 3 years ago

It would be nice to have the owning thread ID (both java and native) in the body section.

As per @mpirvu , the info_ptr field in the call to

GetObjectMonitorUsage(jvmtiEnv* env,
            jobject object,
            jvmtiMonitorUsage* info_ptr)

is a structure like this:

typedef struct {
    jthread owner;
    jint entry_count;
    jint waiter_count;
    jthread* waiters;
    jint notify_waiter_count;
    jthread* notify_waiters;
} jvmtiMonitorUsage;

which has the owner field.

yathamravali commented 3 years ago

I'm working on this issue