trace20200421.txt Tue 2020.04.21 08:13pm >trace() #1[r2,l1] Object { #2[r1,l2] Name String [1 blocks] "\xFF" #3[r1,l1] Object { #6[r1,l2] Name String [2 blocks] "timers" #8[r2,l0] Array(0) [ ] #9[r1,l2] Name String [2 blocks] "watches" #11[r2,l0] Array(0) [ ] #15[r1,l2] Name String [2 blocks] "history" #19[r1,l0] Array(54) [ #20[r1,l2] Name Integer 0 #13[r1,l0] String [2 blocks] "var testmem = {};" #107[r1,l2] Name Integer 1 #111[r1,l0] String [90 blocks] "function tm() {\n //testmem = \"\";\n// console.log( gmf() );\n var s = gmf();\n// console.log( \"s: \" + s + \" typeof( s ): \" + typeof( s ) + \" typeof( gmf() ): \" + typeof( gmf() ) );\n\n // 18 JsVars\n // 1 26 36 62 72\n testmem+= \"abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890\";\n testmem+= \"abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890\";\n testmem+= \"abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890\";\n // 18 JsVars\n testmem+= \"abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890\";\n testmem+= \"abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890\";\n testmem+= \"abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890\";\n// console.log( gmf() );\n var t = gmf();\n\n var len = testmem.length;\n console.log( \"s: \" + s + \" t: \" + t + \" testmem.length: \" + len );\n console.log( \"s-t: \" + (s-t) + \" JsVars used Total JsVars string length: \" + ( len / 16 ) );\n}" #102[r1,l2] Name Integer 2 #101[r1,l0] String [2 blocks] "var lastFree = 0;" #90[r1,l2] Name Integer 3 #85[r1,l0] String [2 blocks] "var lastUsage = 0;" #94[r1,l2] Name Integer 4 #96[r1,l0] String [2 blocks] "var lastHistory = 0;" #87[r1,l2] Name Integer 5 #77[r1,l0] String [2 blocks] "var lastLength = 0;" #80[r1,l2] Name Integer 6 #83[r1,l0] String [2 blocks] "var increase = 0;" #81[r1,l2] Name Integer 7 #71[r1,l0] String [9 blocks] "function i() {\n lastFree = 0;\n lastUsage = 0;\n lastHistory = 0;\n\n lastLength = 0;\n increase = 0;\n}" #49[r1,l2] Name Integer 8 #63[r1,l0] String [3 blocks] "const SIZ_JSVAR_BYTES = 16;" #60[r1,l2] Name Integer 9 #57[r1,l0] String [3 blocks] "const SIZ_JSVAR_CODE = 11;" #435[r1,l2] Name Integer 10 #440[r1,l0] String [200 blocks] "function dl() {\n\n console.log( \" \" );\n console.log( \"JsVars Last:\" );\n console.log( \" Free: lastFree \" + lastFree );\n console.log( \" Usage: lastUsage \" + lastUsage );\n console.log( \" History: lastHistory \" + lastHistory );\n console.log( \" \" );\n console.log( \" testmem.length: \" + testmem.length );\n console.log( \" History: lastHistory \" + lastHistory );\n console.log( \" \" );\n\n\n let len = testmem.length;\n let jv = ( len / SIZ_JSVAR_BYTES );\n increase = len - lastLength;\n// console.log( \"testmem.length: \" + testmem.length );\n\n\n//num_str_vars\n console.log( \"num_str_vars: \" + num_str_vars + \" * block size = num bytes: \" + ( num_str_vars * EST_JSVAR_SIZE ) );\n\n\n console.log( \"increase: \" + increase + \" / \" + SIZ_JSVAR_BYTES + \" : \" + ( increase / SIZ_JSVAR_BYTES ).toFixed() +\n \" testmem.length: \" + testmem.length + \" / \" + SIZ_JSVAR_BYTES + \" : \" + ( testmem.length / SIZ_JSVAR_BYTES ).toFixed() );\n\n let ji = ( increase / SIZ_JSVAR_BYTES );\n\n\n// console.log( \"JsVars used: \" + jv );\n console.log( \"JsVars incr: \" + ji.toFixed() + \" JsVars used: \" + jv.toFixed() );\n console.log( \" \" );\n console.log( \"JsVars Total: \" + gmt() + \" Usage: \" + gmu() + \" Should equal free Usage+addl: \" + ( gmt() - gmu() ) );\n console.log( \" \" );\n// console.log( \"JsVars Free + Usage Total: Free: \" + gmf() + \" Usage: \" + gmu() + \" Should equal Total: \" + ( gmf() + gmu() ) );\n console.log( \"JsVars Free + Usage Total: Free: \" + gmf() + \" Usage: \" + gmu() + \" Should equal Total: \" + ( gmf() + gmu() + SIZ_JSVAR_CODE ) );\n console.log( \" \" );\n console.log( \"JsVars Last:\" );\n// console.log( \" Free: \" + gmf() + \" d^ \" + ( lastFree - gmf() ) );\n// console.log( \" Usage: \" + gmu() + \" d^ \" + ( gmu() - lastUsage ) );\n// console.log( \" History: \" + gmh() + \" d^ \" + ( lastHistory - gmh() ) );\n console.log( \" Free: \" + gmf() + \" d^ \" + ( lastFree - gmf() ) + \" last: \" + lastFree + \" free: \" + gmf() );\n console.log( \" Usage: \" + gmu() + \" d^ \" + ( gmu() - lastUsage ) + \" last: \" + lastUsage + \" cur: \" + gmu() );\n console.log( \" History: \" + gmh() + \" d^ \" + ( lastHistory - gmh() ) + \" last: \" + lastHistory + \" cur: \" + gmh() );\n console.log( \" \" );\n console.log( \" \" );\n console.log( process.memory() );\n\n\n lastFree = gmf();\n lastUsage = gmu();\n lastHistory = gmh();\n}" #410[r1,l2] Name Integer 11 #427[r1,l0] String [7 blocks] "const STR_TEST_4JSVARS = \"abcdefghijklmnopqrstuvwxyz1234567890abcdefghij\";" #419[r1,l2] Name Integer 12 #417[r1,l0] String [3 blocks] "E.getSizeOf( STR_TEST_4JSVARS );" #395[r1,l2] Name Integer 13 #409[r1,l0] String [5 blocks] "E.getSizeOf( STR_TEST_4JSVARS + STR_TEST_4JSVARS );" #398[r1,l2] Name Integer 14 #390[r1,l0] String [6 blocks] "E.getSizeOf( STR_TEST_4JSVARS + STR_TEST_4JSVARS + STR_TEST_4JSVARS );" #383[r1,l2] Name Integer 15 #386[r1,l0] String [8 blocks] "E.getSizeOf( STR_TEST_4JSVARS + STR_TEST_4JSVARS + STR_TEST_4JSVARS + STR_TEST_4JSVARS );" #354[r1,l2] Name Integer 16 #364[r1,l0] String [3 blocks] "const NUM_STRINGS = 16;" #365[r1,l2] Name Integer 17 #368[r1,l0] String [3 blocks] "const SIZ_JSVAR_STRING = 4;" #396[r1,l2] Name Integer 18 #394[r1,l0] String [5 blocks] "const EST_JSVAR_SIZE = SIZ_JSVAR_STRING * NUM_STRINGS;" #397[r1,l2] Name Integer 19 #392[r1,l0] String [11 blocks] "function im() {\n lastLength = testmem.length;\n for( let i=0; i= max_pass ) { clearInterval( intervalID ); }\n\n }, dur );\n}" #845[r1,l2] Name Integer 31 #844[r1,l0] String [27 blocks] "function s( v ) {\n\n let loop = 0;\n let obj = typeof( v );\n loop = ( obj != 'number' ) ? loop = 1 : loop = v;\n\n for( let i=0; i= max_pass ) { clearInterval( intervalID ); }\n\n }, dur );" #812[r1,l2] Name String [1 blocks] "\xFFlin"= int 351 } #830[r1,l2] Name String [1 blocks] "s" #840[r1,l0] Function { #841[r1,l2] Name Param "\xFFv" undefined #838[r1,l2] Name String [1 blocks] "\xFFcod" #1048[r1,l0] FlatString [19 blocks] "let loop = 0;\n let obj = typeof( v );\n loop = ( obj != 'number' ) ? loop = 1 : loop = v;\n\n for( let i=0; i [eof]