Warning: session_start(): open(/var/lib/php/sessions/sess_bj2qn8gqi2qd1g5ecd9tb78dg0, 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).

svoid dm_profileThisThread(int interval default poorMansProfiling_defaultInterval(), Runnable r) {
  dm_showText("Profile", profileThisThreadToString(interval, r));
}

static <A> A dm_profileThisThread(int interval default poorMansProfiling_defaultInterval(), IF0<A> f) {
  new Var<A> v;
  dm_profileThisThread(interval, r { v.set(f!) });
  ret v!;
}

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: 521 / 659
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)