Github user davidyan74 commented on a diff in the pull request:
https://github.com/apache/incubator-apex-core/pull/321#discussion_r61823801
--- Diff: engine/src/main/java/com/datatorrent/stram/StramUtils.java ---
@@ -81,4 +89,48 @@
}
}
+ public static JSONObject getJsonFormat()
+ {
+ Map<Thread, StackTraceElement[]> stackTraces =
Thread.getAllStackTraces();
+
+ JSONObject jsonObject = new JSONObject();
+ JSONArray jsonArray = new JSONArray();
+
+ for (Map.Entry<Thread,StackTraceElement[]> elements :
stackTraces.entrySet()) {
+
+ JSONObject jsonThreads = new JSONObject();
--- End diff --
jsonThreads -> jsonThread
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---