Libraryless. Click here for Pure Java version (2468L/16K).
1 | sclass MethodDisassembly { |
2 | new LS lines; |
3 | //new SS properties; |
4 | } |
5 | |
6 | static L<MethodDisassembly> c2compiledMethodsFromPrintAssembly(File log) { |
7 | temp CloseableItIt<S> it = linesFromFile(log); |
8 | new L<MethodDisassembly> out; |
9 | MethodDisassembly m = null; |
10 | int lines = 0; |
11 | while ping (it.hasNext()) { |
12 | ++lines; |
13 | S s = trim(it.next()); |
14 | if (regexpFind("==+ C2-compiled nmethod ==+", s)) { |
15 | if (m != null) out.add(m); |
16 | m = new MethodDisassembly; |
17 | } |
18 | if (m != null) m.lines.add(s); |
19 | } |
20 | if (m != null) out.add(m); |
21 | print(nLines(lines) + " scanned"); |
22 | ret out; |
23 | } |
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025254 |
Snippet name: | c2compiledMethodsFromPrintAssembly |
Eternal ID of this version: | #1025254/5 |
Text MD5: | 97f2b19d8aa094e23c869c43ddbf79ff |
Transpilation MD5: | 40bd3304bcd2af87e2bc3c6cafa8820d |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-09-16 18:41:24 |
Source code size: | 611 bytes / 23 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 225 / 334 |
Version history: | 4 change(s) |
Referenced in: | [show references] |