Download Jar. Libraryless. Click here for Pure Java version (17776L/125K).
1 | !7 |
2 | |
3 | p-tt { |
4 | centerHigherConsole(); |
5 | |
6 | poorMansProfiling(100); // sample threads every 100 ms |
7 | |
8 | time "Do the work" { |
9 | allIndexedWebs(); // loads a whole lot of stuff |
10 | } |
11 | |
12 | MultiSet<S> samples = poorMansProfiling_stopAndSaveResults(); |
13 | print("Have " + samples.uniqueSize() + " unique stack traces, " + samples.size() + " total samples"); |
14 | poorMansProfiling_printInnermostFunctions(); |
15 | } |
Began life as a copy of #1011571
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, ppjhyzlbdabe, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1011717 |
Snippet name: | "Poor Man's Profiling" Demo (not very poor at all!) |
Eternal ID of this version: | #1011717/7 |
Text MD5: | 2251df44cc1a10408dd6baeeae72c27e |
Transpilation MD5: | 93316db4266514f38dbf13c7ccc925aa |
Author: | stefan |
Category: | javax / profiling |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-12-22 17:38:36 |
Source code size: | 409 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 700 / 1492 |
Version history: | 6 change(s) |
Referenced in: | [show references] |