Warning: session_start(): open(/var/lib/php/sessions/sess_1fdbbn23m2nc64c2jlu0r34s9t, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51

Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
dm_profileThisThread [1032223]

Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1032223 // dm_profileThisThread

JavaX fragment (include) [tags: use-pretranspiled]

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  
}

Author comment

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: 520 / 659
Version history: 1 change(s)
Referenced in: [show references]