Skip to content

Instantly share code, notes, and snippets.

@Ke-
Created October 6, 2014 23:16
Show Gist options
  • Select an option

  • Save Ke-/24055d63611d5b54f5ad to your computer and use it in GitHub Desktop.

Select an option

Save Ke-/24055d63611d5b54f5ad to your computer and use it in GitHub Desktop.
define sys_info => (
'sys_getthreadcount: ' + sys_getthreadcount +'\n'
'sys_getheapsize: ' + sys_getheapsize +'\n'
'sys_getheapfreebytes: ' + sys_getheapfreebytes +'\n'
'sys_getbytessincegc: ' + sys_getbytessincegc +'\n'
'sys_time: ' + sys_time '\n'
'sys_getegid: ' + sys_getegid '\n'
'sys_geteuid: ' + sys_geteuid '\n'
'sys_getlogin: ' + sys_getlogin '\n'
'sys_getpid: ' + sys_getpid '\n'
'sys_getppid: ' + sys_getppid '\n'
'sys_getuid: ' + sys_getuid '\n'
'\nThreads:\n'
(with m in sys_listtypes where #m->asstring >> 'thread' and #m->asstring >> '$' select #m)->asstaticarray->join('\n')
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment