mirror of
https://github.com/goonstation/goonstation-2020.git
synced 2026-07-11 23:22:19 +01:00
22 lines
417 B
Plaintext
22 lines
417 B
Plaintext
//#ifdef DEBUG
|
|
|
|
|
|
|
|
datum/cprofiler
|
|
var
|
|
global/list/CPROF_STKN = list()
|
|
global/list/CPROF_STKT = list()
|
|
global/list/CPROF_L = list()
|
|
|
|
global/list/CPROF_ACTV = list()
|
|
global/list/CPROF_STACK= list()
|
|
proc/begin( var/name )
|
|
CPROF_STACK += list()
|
|
//CPROF_ACTV =
|
|
|
|
//TODO; #ifdef BTIME
|
|
#define CPROF_GTIME (world.timeofday)
|
|
#define CPROF_PRECISION 10//10 GTIME/s
|
|
|
|
#define CPROF(name) CPROFILER.begin(name)
|