Switch-vov commented on a change in pull request #52:
URL: 
https://github.com/apache/skywalking-data-collect-protocol/pull/52#discussion_r663316187



##########
File path: language-agent/JVMMetric.proto
##########
@@ -85,8 +86,22 @@ enum GCPhrase {
 }
 
 message Thread {
-  int64 liveCount = 1;
-  int64 daemonCount = 2;
-  int64 peakCount = 3;
+    int64 liveCount = 1;
+    int64 daemonCount = 2;
+    int64 peakCount = 3;
+    int64 deadlockedCount = 4;
+    int64 monitorDeadlockedCount = 5;
+    int64 newStateThreadCount = 6;
+    int64 runnableStateThreadCount = 7;
+    int64 blockedStateThreadCount = 8;
+    int64 waitingStateThreadCount = 9;
+    int64 timedWaitingStateThreadCount = 10;
+    int64 terminatedStateThreadCount = 11;

Review comment:
       > There are some issues in the benchmark:
   > 
   > * the fork `value=1` and `warmups=1` are too small IMO.
   > * The result of the tested method 
`ClassProvider.INSTANCE.getClassMetrics()` and 
`ThreadProvider.INSTANCE.getThreadMetrics()` are not consumed, which might be 
optimized into NOOP by JVM.
   > 
   > If this is a critical path and the benchmark result really matters, we 
should redo with 👆 fixed, otherwise this PR also looks good to me.
   
   ok, I will test again.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to