Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Profile results (total time)
Proc Name Self CPU Total CPU Real Time Calls
---------------------------------------------------------- --------- --------- --------- ---------
/proc/testprocoverhead_enhanced_global_empty_return_extra 4.664 4.808 4.973 1496620
/proc/testprocoverhead_enhanced_global_empty_return 4.506 4.639 4.814 1503078
/proc/testprocoverhead_enhanced_global_empty 4.703 4.827 5.003 1496369
/proc/testprocoverhead_enhanced_global_5var_return_extra 5.780 5.927 6.087 1499840
/proc/testprocoverhead_enhanced_global_5var_return 5.690 5.841 6.027 1507978
/proc/testprocoverhead_enhanced_global_5var 5.615 5.752 5.942 1498705
/proc/testprocoverhead_enhanced_global_5arg_return_extra 5.382 5.530 5.719 1498210
/proc/testprocoverhead_enhanced_global_5arg_return 5.009 5.154 5.335 1501338
/proc/testprocoverhead_enhanced_global_5arg 5.155 5.285 5.486 1494408
/proc/testprocoverhead_enhanced_global_1var_return_extra 5.008 5.158 5.338 1508310
/proc/testprocoverhead_enhanced_global_1var_return 4.874 5.000 5.183 1511553
/proc/testprocoverhead_enhanced_global_1var 4.996 5.119 5.287 1497979
/proc/testprocoverhead_enhanced_global_1arg_return_extra 4.867 4.995 5.177 1501208
/proc/testprocoverhead_enhanced_global_1arg_return 4.972 5.105 5.249 1500947
/proc/testprocoverhead_enhanced_global_1arg 4.550 4.685 4.859 1504555
/proc/noop 2.879 3.987 9.178 44991237
/mob/verb/testprocoverhead_enhanced 46.031 299.960 299.961 1
/mob/proc/testprocoverhead_enhanced_mob_empty_return_extra 4.870 5.005 5.186 1493741
/mob/proc/testprocoverhead_enhanced_mob_empty_return 4.831 4.959 5.127 1504112
/mob/proc/testprocoverhead_enhanced_mob_empty 4.490 4.624 4.804 1499988
/mob/proc/testprocoverhead_enhanced_mob_5var_return_extra 5.903 6.017 6.227 1500871
/mob/proc/testprocoverhead_enhanced_mob_5var_return 5.735 5.864 6.059 1500822
/mob/proc/testprocoverhead_enhanced_mob_5var 5.674 5.817 5.983 1499673
/mob/proc/testprocoverhead_enhanced_mob_5arg_return_extra 4.961 5.102 5.286 1501434
/mob/proc/testprocoverhead_enhanced_mob_5arg_return 5.294 5.437 5.621 1501343
/mob/proc/testprocoverhead_enhanced_mob_5arg 5.316 5.423 5.598 1492875
/mob/proc/testprocoverhead_enhanced_mob_1var_return_extra 4.896 5.048 5.216 1496585
/mob/proc/testprocoverhead_enhanced_mob_1var_return 4.958 5.091 5.264 1497736
/mob/proc/testprocoverhead_enhanced_mob_1var 5.120 5.243 5.413 1499226
/mob/proc/testprocoverhead_enhanced_mob_1arg_return_extra 4.568 4.702 4.888 1497015
/mob/proc/testprocoverhead_enhanced_mob_1arg_return 4.870 4.977 5.133 1493791
/mob/proc/testprocoverhead_enhanced_mob_1arg 4.782 4.925 5.077 1490927
/mob/proc/testprocoverhead_enhanced_chain 99.011 255.024 260.911 44991237
#1(/mob/proc/testprocoverhead_enhanced_mob_empty): pre: 870.25ms. during: 1140.5ms. after: 833.766ms
#2(/mob/proc/testprocoverhead_enhanced_mob_1var): pre: 871.391ms. during: 1314.53ms. after: 861.594ms
#3(/mob/proc/testprocoverhead_enhanced_mob_5var): pre: 957.141ms. during: 1915.14ms. after: 854.344ms
#4(/mob/proc/testprocoverhead_enhanced_mob_1arg): pre: 886.203ms. during: 1097.44ms. after: 878.703ms
#5(/mob/proc/testprocoverhead_enhanced_mob_5arg): pre: 1245.88ms. during: 1489.34ms. after: 890.391ms
#6(/proc/testprocoverhead_enhanced_global_empty): pre: 727.109ms. during: 1105.31ms. after: 669.984ms
#7(/proc/testprocoverhead_enhanced_global_1var): pre: 774.969ms. during: 1302.7ms. after: 662.016ms
#8(/proc/testprocoverhead_enhanced_global_5var): pre: 813.219ms. during: 1925.83ms. after: 731.656ms
#9(/proc/testprocoverhead_enhanced_global_1arg): pre: 812.672ms. during: 1294.17ms. after: 700.266ms
#10(/proc/testprocoverhead_enhanced_global_5arg): pre: 1214.25ms. during: 1563.28ms. after: 768.016ms
#11(/mob/proc/testprocoverhead_enhanced_mob_empty_return): pre: 834.984ms. during: 1124.23ms. after: 877.516ms
#12(/mob/proc/testprocoverhead_enhanced_mob_1var_return): pre: 871.141ms. during: 1274.63ms. after: 825.781ms
#13(/mob/proc/testprocoverhead_enhanced_mob_5var_return): pre: 879.609ms. during: 2048.84ms. after: 947.766ms
#14(/mob/proc/testprocoverhead_enhanced_mob_1arg_return): pre: 920.859ms. during: 1187.06ms. after: 807.844ms
#15(/mob/proc/testprocoverhead_enhanced_mob_5arg_return): pre: 1313.25ms. during: 1530.09ms. after: 873.875ms
#16(/proc/testprocoverhead_enhanced_global_empty_return): pre: 733.563ms. during: 1115.63ms. after: 681.969ms
#17(/proc/testprocoverhead_enhanced_global_1var_return): pre: 779.125ms. during: 1266.75ms. after: 751.922ms
#18(/proc/testprocoverhead_enhanced_global_5var_return): pre: 860.297ms. during: 1921.86ms. after: 767.297ms
#19(/proc/testprocoverhead_enhanced_global_1arg_return): pre: 779.734ms. during: 1170.42ms. after: 651.859ms
#20(/proc/testprocoverhead_enhanced_global_5arg_return): pre: 1189.02ms. during: 1534.89ms. after: 791.438ms
#21(/mob/proc/testprocoverhead_enhanced_mob_empty_return_extra): pre: 923.484ms. during: 1154.27ms. after: 857.531ms
#22(/mob/proc/testprocoverhead_enhanced_mob_1var_return_extra): pre: 900.813ms. during: 1342.53ms. after: 832.172ms
#23(/mob/proc/testprocoverhead_enhanced_mob_5var_return_extra): pre: 915.891ms. during: 1931.64ms. after: 880.219ms
#24(/mob/proc/testprocoverhead_enhanced_mob_1arg_return_extra): pre: 973.141ms. during: 1138.33ms. after: 899.375ms
#25(/mob/proc/testprocoverhead_enhanced_mob_5arg_return_extra): pre: 1384.16ms. during: 1559.13ms. after: 953.234ms
#26(/proc/testprocoverhead_enhanced_global_empty_return_extra): pre: 788.125ms. during: 1134.52ms. after: 767.047ms
#27(/proc/testprocoverhead_enhanced_global_1var_return_extra): pre: 842.516ms. during: 1297.88ms. after: 748.922ms
#28(/proc/testprocoverhead_enhanced_global_5var_return_extra): pre: 831.766ms. during: 1980.19ms. after: 731.828ms
#29(/proc/testprocoverhead_enhanced_global_1arg_return_extra): pre: 811.969ms. during: 1187.7ms. after: 737.188ms
#30(/proc/testprocoverhead_enhanced_global_5arg_return_extra): pre: 1174.08ms. during: 1496.78ms. after: 751.813ms
Profile results (total time)
Proc Name Self CPU Total CPU Real Time Calls
---------------------------------------------------------- --------- --------- --------- ---------
/proc/testprocoverhead_enhanced_global_empty_return_extra 4.824 4.968 5.132 1559226
/proc/testprocoverhead_enhanced_global_empty_return 4.590 4.735 4.904 1559144
/proc/testprocoverhead_enhanced_global_empty 4.788 4.904 5.080 1556828
/proc/testprocoverhead_enhanced_global_5var_return_extra 5.818 5.963 6.176 1557862
/proc/testprocoverhead_enhanced_global_5var_return 5.472 5.603 5.815 1553593
/proc/testprocoverhead_enhanced_global_5var 5.715 5.850 6.042 1558194
/proc/testprocoverhead_enhanced_global_5arg_return_extra 5.449 5.563 5.732 1553758
/proc/testprocoverhead_enhanced_global_5arg_return 5.136 5.260 5.459 1557156
/proc/testprocoverhead_enhanced_global_5arg 5.248 5.390 5.555 1557633
/proc/testprocoverhead_enhanced_global_1var_return_extra 5.101 5.238 5.409 1561327
/proc/testprocoverhead_enhanced_global_1var_return 4.970 5.101 5.298 1558187
/proc/testprocoverhead_enhanced_global_1var 5.081 5.226 5.396 1562764
/proc/testprocoverhead_enhanced_global_1arg_return_extra 4.867 4.990 5.159 1559473
/proc/testprocoverhead_enhanced_global_1arg_return 4.990 5.129 5.326 1555777
/proc/testprocoverhead_enhanced_global_1arg 4.288 4.436 4.618 1557000
/proc/noop 2.830 3.964 9.401 46694526
/mob/verb/testprocoverhead_enhanced 43.726 299.904 299.904 1
/mob/proc/testprocoverhead_enhanced_mob_empty_return_extra 4.709 4.864 5.049 1549013
/mob/proc/testprocoverhead_enhanced_mob_empty_return 4.917 5.069 5.232 1550721
/mob/proc/testprocoverhead_enhanced_mob_empty 4.740 4.871 5.042 1559468
/mob/proc/testprocoverhead_enhanced_mob_5var_return_extra 5.924 6.082 6.246 1554441
/mob/proc/testprocoverhead_enhanced_mob_5var_return 5.550 5.691 5.870 1555621
/mob/proc/testprocoverhead_enhanced_mob_5var 5.705 5.837 6.028 1559552
/mob/proc/testprocoverhead_enhanced_mob_5arg_return_extra 5.082 5.206 5.404 1556405
/mob/proc/testprocoverhead_enhanced_mob_5arg_return 5.323 5.467 5.638 1556623
/mob/proc/testprocoverhead_enhanced_mob_5arg 5.408 5.545 5.728 1558779
/mob/proc/testprocoverhead_enhanced_mob_1var_return_extra 4.926 5.055 5.230 1551532
/mob/proc/testprocoverhead_enhanced_mob_1var_return 5.055 5.182 5.359 1555652
/mob/proc/testprocoverhead_enhanced_mob_1var 5.151 5.295 5.458 1559755
/mob/proc/testprocoverhead_enhanced_mob_1arg_return_extra 4.671 4.789 4.980 1552715
/mob/proc/testprocoverhead_enhanced_mob_1arg_return 4.931 5.046 5.225 1555746
/mob/proc/testprocoverhead_enhanced_mob_1arg 4.942 5.070 5.244 1550581
/mob/proc/testprocoverhead_enhanced_chain 99.977 257.205 262.664 46694526
#1(/mob/proc/testprocoverhead_enhanced_mob_empty): pre: 865.609ms. during: 1149.69ms. after: 751.063ms
#2(/mob/proc/testprocoverhead_enhanced_mob_1var): pre: 889.844ms. during: 1342.11ms. after: 788.656ms
#3(/mob/proc/testprocoverhead_enhanced_mob_5var): pre: 945.625ms. during: 1934.81ms. after: 876.172ms
#4(/mob/proc/testprocoverhead_enhanced_mob_1arg): pre: 905.016ms. during: 1251.69ms. after: 775.891ms
#5(/mob/proc/testprocoverhead_enhanced_mob_5arg): pre: 1356.08ms. during: 1506.25ms. after: 839.047ms
#6(/proc/testprocoverhead_enhanced_global_empty): pre: 760.641ms. during: 1117.98ms. after: 695.969ms
#7(/proc/testprocoverhead_enhanced_global_1var): pre: 752.047ms. during: 1319.31ms. after: 669.313ms
#8(/proc/testprocoverhead_enhanced_global_5var): pre: 795.313ms. during: 1977.25ms. after: 718.422ms
#9(/proc/testprocoverhead_enhanced_global_1arg): pre: 742.953ms. during: 1151.39ms. after: 695.031ms
#10(/proc/testprocoverhead_enhanced_global_5arg): pre: 1165.14ms. during: 1595.2ms. after: 699.266ms
#11(/mob/proc/testprocoverhead_enhanced_mob_empty_return): pre: 865.719ms. during: 1148ms. after: 773.734ms
#12(/mob/proc/testprocoverhead_enhanced_mob_1var_return): pre: 922.328ms. during: 1326.27ms. after: 804.281ms
#13(/mob/proc/testprocoverhead_enhanced_mob_5var_return): pre: 928.875ms. during: 1862.89ms. after: 858.813ms
#14(/mob/proc/testprocoverhead_enhanced_mob_1arg_return): pre: 927.047ms. during: 1180.08ms. after: 778.969ms
#15(/mob/proc/testprocoverhead_enhanced_mob_5arg_return): pre: 1377.42ms. during: 1531.02ms. after: 821.609ms
#16(/proc/testprocoverhead_enhanced_global_empty_return): pre: 717.813ms. during: 1090.33ms. after: 691.844ms
#17(/proc/testprocoverhead_enhanced_global_1var_return): pre: 834.203ms. during: 1324.97ms. after: 716.531ms
#18(/proc/testprocoverhead_enhanced_global_5var_return): pre: 835.891ms. during: 1876.55ms. after: 825.281ms
#19(/proc/testprocoverhead_enhanced_global_1arg_return): pre: 808.141ms. during: 1219.86ms. after: 755.531ms
#20(/proc/testprocoverhead_enhanced_global_5arg_return): pre: 1172.8ms. during: 1594.86ms. after: 799.234ms
#21(/mob/proc/testprocoverhead_enhanced_mob_empty_return_extra): pre: 937.813ms. during: 1141.47ms. after: 800.953ms
#22(/mob/proc/testprocoverhead_enhanced_mob_1var_return_extra): pre: 894.25ms. during: 1322.13ms. after: 810.578ms
#23(/mob/proc/testprocoverhead_enhanced_mob_5var_return_extra): pre: 978.063ms. during: 1989.81ms. after: 851.859ms
#24(/mob/proc/testprocoverhead_enhanced_mob_1arg_return_extra): pre: 933.094ms. during: 1204.84ms. after: 877.797ms
#25(/mob/proc/testprocoverhead_enhanced_mob_5arg_return_extra): pre: 1340.81ms. during: 1526.36ms. after: 886.203ms
#26(/proc/testprocoverhead_enhanced_global_empty_return_extra): pre: 819.906ms. during: 1158.45ms. after: 696.359ms
#27(/proc/testprocoverhead_enhanced_global_1var_return_extra): pre: 716.297ms. during: 1300.45ms. after: 679ms
#28(/proc/testprocoverhead_enhanced_global_5var_return_extra): pre: 792.719ms. during: 1930.06ms. after: 738.938ms
#29(/proc/testprocoverhead_enhanced_global_1arg_return_extra): pre: 829.031ms. during: 1224.97ms. after: 712ms
#30(/proc/testprocoverhead_enhanced_global_5arg_return_extra): pre: 1166.3ms. during: 1468.56ms. after: 742.141ms
var/list/profilelist = new(30,3)
var/profiletickusage
var/profileindex
var/list/profileprocnames = new(30)
/mob
#define SECONDS *10
#define MINUTES SECONDS*60
#define TICK_DELTA_TO_MS(percent_of_tick_used) ((percent_of_tick_used) * world.tick_lag)
#define TICK_USAGE_TO_MS(starting_tickusage) (TICK_DELTA_TO_MS(world.tick_usage - starting_tickusage))
verb/testprocoverhead_enhanced()
var/end = world.timeofday+5 MINUTES
while (world.timeofday < end)
testprocoverhead_enhanced_chain()
for (var/i in 1 to profilelist.len)
var/list/profileitem = profilelist[i]
world << "#[i]([profileprocnames[i]]): pre: <b>[profileitem[1]]</b>ms. during: <b>[profileitem[2]]</b>ms. after: <b>[profileitem[3]]</b>ms"
proc/testprocoverhead_enhanced_chain()
var/static/const/num = 30
var/static/cur = rand(1, num)
for (var/i = 1 to 10)
if (prob(20))
cur = rand(1, num)
profileindex = cur
switch(cur)
if(1)
profiletickusage = world.tick_usage
testprocoverhead_enhanced_mob_empty()
profilelist[profileindex][3] += TICK_USAGE_TO_MS(profiletickusage)
return
if(2)
profiletickusage = world.tick_usage
testprocoverhead_enhanced_mob_1var()
profilelist[profileindex][3] += TICK_USAGE_TO_MS(profiletickusage)
return
if(3)
profiletickusage = world.tick_usage
testprocoverhead_enhanced_mob_5var()
profilelist[profileindex][3] += TICK_USAGE_TO_MS(profiletickusage)
return
if(4)
profiletickusage = world.tick_usage
testprocoverhead_enhanced_mob_1arg(i)
profilelist[profileindex][3] += TICK_USAGE_TO_MS(profiletickusage)
return
if(5)
profiletickusage = world.tick_usage
testprocoverhead_enhanced_mob_5arg(i, i++, i++, i++, i++)
profilelist[profileindex][3] += TICK_USAGE_TO_MS(profiletickusage)
return
if(6)
profiletickusage = world.tick_usage
testprocoverhead_enhanced_global_empty()
profilelist[profileindex][3] += TICK_USAGE_TO_MS(profiletickusage)
return
if(7)
profiletickusage = world.tick_usage
testprocoverhead_enhanced_global_1var()
profilelist[profileindex][3] += TICK_USAGE_TO_MS(profiletickusage)
return
if(8)
profiletickusage = world.tick_usage
testprocoverhead_enhanced_global_5var()
profilelist[profileindex][3] += TICK_USAGE_TO_MS(profiletickusage)
return
if(9)
profiletickusage = world.tick_usage
testprocoverhead_enhanced_global_1arg(i)
profilelist[profileindex][3] += TICK_USAGE_TO_MS(profiletickusage)
return
if(10)
profiletickusage = world.tick_usage
testprocoverhead_enhanced_global_5arg(i, i++, i++, i++, i++)
profilelist[profileindex][3] += TICK_USAGE_TO_MS(profiletickusage)
return
if(11)
profiletickusage = world.tick_usage
testprocoverhead_enhanced_mob_empty_return()
profilelist[profileindex][3] += TICK_USAGE_TO_MS(profiletickusage)
return
if(12)
profiletickusage = world.tick_usage
testprocoverhead_enhanced_mob_1var_return()
profilelist[profileindex][3] += TICK_USAGE_TO_MS(profiletickusage)
return
if(13)
profiletickusage = world.tick_usage
testprocoverhead_enhanced_mob_5var_return()
profilelist[profileindex][3] += TICK_USAGE_TO_MS(profiletickusage)
return
if(14)
profiletickusage = world.tick_usage
testprocoverhead_enhanced_mob_1arg_return(i)
profilelist[profileindex][3] += TICK_USAGE_TO_MS(profiletickusage)
return
if(15)
profiletickusage = world.tick_usage
testprocoverhead_enhanced_mob_5arg_return(i, i++, i++, i++, i++)
profilelist[profileindex][3] += TICK_USAGE_TO_MS(profiletickusage)
return
if(16)
profiletickusage = world.tick_usage
testprocoverhead_enhanced_global_empty_return()
profilelist[profileindex][3] += TICK_USAGE_TO_MS(profiletickusage)
return
if(17)
profiletickusage = world.tick_usage
testprocoverhead_enhanced_global_1var_return()
profilelist[profileindex][3] += TICK_USAGE_TO_MS(profiletickusage)
return
if(18)
profiletickusage = world.tick_usage
testprocoverhead_enhanced_global_5var_return()
profilelist[profileindex][3] += TICK_USAGE_TO_MS(profiletickusage)
return
if(19)
profiletickusage = world.tick_usage
testprocoverhead_enhanced_global_1arg_return(i)
profilelist[profileindex][3] += TICK_USAGE_TO_MS(profiletickusage)
return
if(20)
profiletickusage = world.tick_usage
testprocoverhead_enhanced_global_5arg_return(i, i++, i++, i++, i++)
profilelist[profileindex][3] += TICK_USAGE_TO_MS(profiletickusage)
return
if(21)
profiletickusage = world.tick_usage
testprocoverhead_enhanced_mob_empty_return_extra()
profilelist[profileindex][3] += TICK_USAGE_TO_MS(profiletickusage)
return
if(22)
profiletickusage = world.tick_usage
testprocoverhead_enhanced_mob_1var_return_extra()
profilelist[profileindex][3] += TICK_USAGE_TO_MS(profiletickusage)
return
if(23)
profiletickusage = world.tick_usage
testprocoverhead_enhanced_mob_5var_return_extra()
profilelist[profileindex][3] += TICK_USAGE_TO_MS(profiletickusage)
return
if(24)
profiletickusage = world.tick_usage
testprocoverhead_enhanced_mob_1arg_return_extra(i)
profilelist[profileindex][3] += TICK_USAGE_TO_MS(profiletickusage)
return
if(25)
profiletickusage = world.tick_usage
testprocoverhead_enhanced_mob_5arg_return_extra(i, i++, i++, i++, i++)
profilelist[profileindex][3] += TICK_USAGE_TO_MS(profiletickusage)
return
if(26)
profiletickusage = world.tick_usage
testprocoverhead_enhanced_global_empty_return_extra()
profilelist[profileindex][3] += TICK_USAGE_TO_MS(profiletickusage)
return
if(27)
profiletickusage = world.tick_usage
testprocoverhead_enhanced_global_1var_return_extra()
profilelist[profileindex][3] += TICK_USAGE_TO_MS(profiletickusage)
return
if(28)
profiletickusage = world.tick_usage
testprocoverhead_enhanced_global_5var_return_extra()
profilelist[profileindex][3] += TICK_USAGE_TO_MS(profiletickusage)
return
if(29)
profiletickusage = world.tick_usage
testprocoverhead_enhanced_global_1arg_return_extra(i)
profilelist[profileindex][3] += TICK_USAGE_TO_MS(profiletickusage)
return
if(30)
profiletickusage = world.tick_usage
testprocoverhead_enhanced_global_5arg_return_extra(i, i++, i++, i++, i++)
profilelist[profileindex][3] += TICK_USAGE_TO_MS(profiletickusage)
return
else
throw EXCEPTION("invalid chain state")
proc/testprocoverhead_enhanced_mob_empty()
profilelist[profileindex][1] += TICK_USAGE_TO_MS(profiletickusage)
profileprocnames[profileindex] = "[.....]"
profiletickusage = world.tick_usage
noop()
profilelist[profileindex][2] += TICK_USAGE_TO_MS(profiletickusage)
profiletickusage = world.tick_usage
proc/testprocoverhead_enhanced_mob_1var()
profilelist[profileindex][1] += TICK_USAGE_TO_MS(profiletickusage)
profileprocnames[profileindex] = "[.....]"
profiletickusage = world.tick_usage
var/var1 = 1
noop(var1)
profilelist[profileindex][2] += TICK_USAGE_TO_MS(profiletickusage)
profiletickusage = world.tick_usage
proc/testprocoverhead_enhanced_mob_5var()
profilelist[profileindex][1] += TICK_USAGE_TO_MS(profiletickusage)
profileprocnames[profileindex] = "[.....]"
profiletickusage = world.tick_usage
var/var1 = 1
var/var2 = 2
var/var3 = 3
var/var4 = 4
var/var5 = 5
noop(var1+var2+var3+var4+var5)
profilelist[profileindex][2] += TICK_USAGE_TO_MS(profiletickusage)
profiletickusage = world.tick_usage
proc/testprocoverhead_enhanced_mob_1arg(var1)
profilelist[profileindex][1] += TICK_USAGE_TO_MS(profiletickusage)
profileprocnames[profileindex] = "[.....]"
profiletickusage = world.tick_usage
noop(var1)
profilelist[profileindex][2] += TICK_USAGE_TO_MS(profiletickusage)
profiletickusage = world.tick_usage
proc/testprocoverhead_enhanced_mob_5arg(var1,var2,var3,var4,var5)
profilelist[profileindex][1] += TICK_USAGE_TO_MS(profiletickusage)
profileprocnames[profileindex] = "[.....]"
profiletickusage = world.tick_usage
noop(var1+var2+var3+var4+var5)
profilelist[profileindex][2] += TICK_USAGE_TO_MS(profiletickusage)
profiletickusage = world.tick_usage
/proc/testprocoverhead_enhanced_global_empty()
profilelist[profileindex][1] += TICK_USAGE_TO_MS(profiletickusage)
profileprocnames[profileindex] = "[.....]"
profiletickusage = world.tick_usage
noop()
profilelist[profileindex][2] += TICK_USAGE_TO_MS(profiletickusage)
profiletickusage = world.tick_usage
/proc/testprocoverhead_enhanced_global_1var()
profilelist[profileindex][1] += TICK_USAGE_TO_MS(profiletickusage)
profileprocnames[profileindex] = "[.....]"
profiletickusage = world.tick_usage
var/var1 = 1
noop(var1)
profilelist[profileindex][2] += TICK_USAGE_TO_MS(profiletickusage)
profiletickusage = world.tick_usage
/proc/testprocoverhead_enhanced_global_5var()
profilelist[profileindex][1] += TICK_USAGE_TO_MS(profiletickusage)
profileprocnames[profileindex] = "[.....]"
profiletickusage = world.tick_usage
var/var1 = 1
var/var2 = 2
var/var3 = 3
var/var4 = 4
var/var5 = 5
noop(var1+var2+var3+var4+var5)
profilelist[profileindex][2] += TICK_USAGE_TO_MS(profiletickusage)
profiletickusage = world.tick_usage
/proc/testprocoverhead_enhanced_global_1arg(var1)
profilelist[profileindex][1] += TICK_USAGE_TO_MS(profiletickusage)
profileprocnames[profileindex] = "[.....]"
profiletickusage = world.tick_usage
noop(var1)
profilelist[profileindex][2] += TICK_USAGE_TO_MS(profiletickusage)
profiletickusage = world.tick_usage
/proc/testprocoverhead_enhanced_global_5arg(var1,var2,var3,var4,var5)
profilelist[profileindex][1] += TICK_USAGE_TO_MS(profiletickusage)
profileprocnames[profileindex] = "[.....]"
profiletickusage = world.tick_usage
noop(var1+var2+var3+var4+var5)
profilelist[profileindex][2] += TICK_USAGE_TO_MS(profiletickusage)
profiletickusage = world.tick_usage
proc/testprocoverhead_enhanced_mob_empty_return()
profilelist[profileindex][1] += TICK_USAGE_TO_MS(profiletickusage)
profileprocnames[profileindex] = "[.....]"
profiletickusage = world.tick_usage
noop()
profilelist[profileindex][2] += TICK_USAGE_TO_MS(profiletickusage)
profiletickusage = world.tick_usage
return
proc/testprocoverhead_enhanced_mob_1var_return()
profilelist[profileindex][1] += TICK_USAGE_TO_MS(profiletickusage)
profileprocnames[profileindex] = "[.....]"
profiletickusage = world.tick_usage
var/var1 = 1
noop(var1)
profilelist[profileindex][2] += TICK_USAGE_TO_MS(profiletickusage)
profiletickusage = world.tick_usage
return
proc/testprocoverhead_enhanced_mob_5var_return()
profilelist[profileindex][1] += TICK_USAGE_TO_MS(profiletickusage)
profileprocnames[profileindex] = "[.....]"
profiletickusage = world.tick_usage
var/var1 = 1
var/var2 = 2
var/var3 = 3
var/var4 = 4
var/var5 = 5
noop(var1+var2+var3+var4+var5)
profilelist[profileindex][2] += TICK_USAGE_TO_MS(profiletickusage)
profiletickusage = world.tick_usage
return
proc/testprocoverhead_enhanced_mob_1arg_return(var1)
profilelist[profileindex][1] += TICK_USAGE_TO_MS(profiletickusage)
profileprocnames[profileindex] = "[.....]"
profiletickusage = world.tick_usage
noop(var1)
profilelist[profileindex][2] += TICK_USAGE_TO_MS(profiletickusage)
profiletickusage = world.tick_usage
return
proc/testprocoverhead_enhanced_mob_5arg_return(var1,var2,var3,var4,var5)
profilelist[profileindex][1] += TICK_USAGE_TO_MS(profiletickusage)
profileprocnames[profileindex] = "[.....]"
profiletickusage = world.tick_usage
noop(var1+var2+var3+var4+var5)
profilelist[profileindex][2] += TICK_USAGE_TO_MS(profiletickusage)
profiletickusage = world.tick_usage
return
/proc/testprocoverhead_enhanced_global_empty_return()
profilelist[profileindex][1] += TICK_USAGE_TO_MS(profiletickusage)
profileprocnames[profileindex] = "[.....]"
profiletickusage = world.tick_usage
noop()
profilelist[profileindex][2] += TICK_USAGE_TO_MS(profiletickusage)
profiletickusage = world.tick_usage
return
/proc/testprocoverhead_enhanced_global_1var_return()
profilelist[profileindex][1] += TICK_USAGE_TO_MS(profiletickusage)
profileprocnames[profileindex] = "[.....]"
profiletickusage = world.tick_usage
var/var1 = 1
noop(var1)
profilelist[profileindex][2] += TICK_USAGE_TO_MS(profiletickusage)
profiletickusage = world.tick_usage
return
/proc/testprocoverhead_enhanced_global_5var_return()
profilelist[profileindex][1] += TICK_USAGE_TO_MS(profiletickusage)
profileprocnames[profileindex] = "[.....]"
profiletickusage = world.tick_usage
var/var1 = 1
var/var2 = 2
var/var3 = 3
var/var4 = 4
var/var5 = 5
noop(var1+var2+var3+var4+var5)
profilelist[profileindex][2] += TICK_USAGE_TO_MS(profiletickusage)
profiletickusage = world.tick_usage
return
/proc/testprocoverhead_enhanced_global_1arg_return(var1)
profilelist[profileindex][1] += TICK_USAGE_TO_MS(profiletickusage)
profileprocnames[profileindex] = "[.....]"
profiletickusage = world.tick_usage
noop(var1)
profilelist[profileindex][2] += TICK_USAGE_TO_MS(profiletickusage)
profiletickusage = world.tick_usage
return
/proc/testprocoverhead_enhanced_global_5arg_return(var1,var2,var3,var4,var5)
profilelist[profileindex][1] += TICK_USAGE_TO_MS(profiletickusage)
profileprocnames[profileindex] = "[.....]"
profiletickusage = world.tick_usage
noop(var1+var2+var3+var4+var5)
profilelist[profileindex][2] += TICK_USAGE_TO_MS(profiletickusage)
profiletickusage = world.tick_usage
return
proc/testprocoverhead_enhanced_mob_empty_return_extra()
profilelist[profileindex][1] += TICK_USAGE_TO_MS(profiletickusage)
profileprocnames[profileindex] = "[.....]"
profiletickusage = world.tick_usage
noop()
profilelist[profileindex][2] += TICK_USAGE_TO_MS(profiletickusage)
profiletickusage = world.tick_usage
return
var/foo = "oh god"
var/bar = "what's this?"
proc/testprocoverhead_enhanced_mob_1var_return_extra()
profilelist[profileindex][1] += TICK_USAGE_TO_MS(profiletickusage)
profileprocnames[profileindex] = "[.....]"
profiletickusage = world.tick_usage
var/var1 = 1
noop(var1)
profilelist[profileindex][2] += TICK_USAGE_TO_MS(profiletickusage)
profiletickusage = world.tick_usage
return
var/foo = "oh god"
var/bar = "what's this?"
proc/testprocoverhead_enhanced_mob_5var_return_extra()
profilelist[profileindex][1] += TICK_USAGE_TO_MS(profiletickusage)
profileprocnames[profileindex] = "[.....]"
profiletickusage = world.tick_usage
var/var1 = 1
var/var2 = 2
var/var3 = 3
var/var4 = 4
var/var5 = 5
noop(var1+var2+var3+var4+var5)
profilelist[profileindex][2] += TICK_USAGE_TO_MS(profiletickusage)
profiletickusage = world.tick_usage
return
var/foo = "oh god"
var/bar = "what's this?"
proc/testprocoverhead_enhanced_mob_1arg_return_extra(var1)
profilelist[profileindex][1] += TICK_USAGE_TO_MS(profiletickusage)
profileprocnames[profileindex] = "[.....]"
profiletickusage = world.tick_usage
noop(var1)
profilelist[profileindex][2] += TICK_USAGE_TO_MS(profiletickusage)
profiletickusage = world.tick_usage
return
var/foo = "oh god"
var/bar = "what's this?"
proc/testprocoverhead_enhanced_mob_5arg_return_extra(var1,var2,var3,var4,var5)
profilelist[profileindex][1] += TICK_USAGE_TO_MS(profiletickusage)
profileprocnames[profileindex] = "[.....]"
profiletickusage = world.tick_usage
noop(var1+var2+var3+var4+var5)
profilelist[profileindex][2] += TICK_USAGE_TO_MS(profiletickusage)
profiletickusage = world.tick_usage
return
var/foo = "oh god"
var/bar = "what's this?"
/proc/testprocoverhead_enhanced_global_empty_return_extra()
profilelist[profileindex][1] += TICK_USAGE_TO_MS(profiletickusage)
profileprocnames[profileindex] = "[.....]"
profiletickusage = world.tick_usage
noop()
profilelist[profileindex][2] += TICK_USAGE_TO_MS(profiletickusage)
profiletickusage = world.tick_usage
return
var/foo = "oh god"
var/bar = "what's this?"
/proc/testprocoverhead_enhanced_global_1var_return_extra()
profilelist[profileindex][1] += TICK_USAGE_TO_MS(profiletickusage)
profileprocnames[profileindex] = "[.....]"
profiletickusage = world.tick_usage
var/var1 = 1
noop(var1)
profilelist[profileindex][2] += TICK_USAGE_TO_MS(profiletickusage)
profiletickusage = world.tick_usage
return
var/foo = "oh god"
var/bar = "what's this?"
/proc/testprocoverhead_enhanced_global_5var_return_extra()
profilelist[profileindex][1] += TICK_USAGE_TO_MS(profiletickusage)
profileprocnames[profileindex] = "[.....]"
profiletickusage = world.tick_usage
var/var1 = 1
var/var2 = 2
var/var3 = 3
var/var4 = 4
var/var5 = 5
noop(var1+var2+var3+var4+var5)
profilelist[profileindex][2] += TICK_USAGE_TO_MS(profiletickusage)
profiletickusage = world.tick_usage
return
var/foo = "oh god"
var/bar = "what's this?"
/proc/testprocoverhead_enhanced_global_1arg_return_extra(var1)
profilelist[profileindex][1] += TICK_USAGE_TO_MS(profiletickusage)
profileprocnames[profileindex] = "[.....]"
profiletickusage = world.tick_usage
noop(var1)
profilelist[profileindex][2] += TICK_USAGE_TO_MS(profiletickusage)
profiletickusage = world.tick_usage
return
var/foo = "oh god"
var/bar = "what's this?"
/proc/testprocoverhead_enhanced_global_5arg_return_extra(var1,var2,var3,var4,var5)
profilelist[profileindex][1] += TICK_USAGE_TO_MS(profiletickusage)
profileprocnames[profileindex] = "[.....]"
profiletickusage = world.tick_usage
noop(var1+var2+var3+var4+var5)
profilelist[profileindex][2] += TICK_USAGE_TO_MS(profiletickusage)
profiletickusage = world.tick_usage
return
var/foo = "oh god"
var/bar = "what's this?"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.