Libraryless. Click here for Pure Java version (5557L/31K).
1 | svoid dm_profileThisThread(int interval default poorMansProfiling_defaultInterval(), Runnable r) { |
2 | dm_showText("Profile", profileThisThreadToString(interval, r)); |
3 | } |
4 | |
5 | static <A> A dm_profileThisThread(int interval default poorMansProfiling_defaultInterval(), IF0<A> f) { |
6 | new Var<A> v; |
7 | dm_profileThisThread(interval, r { v.set(f!) }); |
8 | ret v!; |
9 | } |
Began life as a copy of #1029020
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
Snippet ID: | #1032223 |
Snippet name: | dm_profileThisThread |
Eternal ID of this version: | #1032223/2 |
Text MD5: | bdcb970b0508d92241657a3870736cad |
Transpilation MD5: | eed6ba065c7fbc03f67998520b9cefb5 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-08-20 12:21:48 |
Source code size: | 358 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 160 / 229 |
Version history: | 1 change(s) |
Referenced in: | [show references] |