profilerDump function not working?
by Caylo Gypsyblood · in Torque Game Engine Advanced · 01/16/2009 (11:43 am) · 5 replies
Just switching from TGE to TGEA. With TGE a profilerDump(); would output the profiler to the console, TGEA is not working. I added command profilerDump(); into script function doProfile(%val) right after the //key up bit. Also a manual entry of profilerDump(); output gunk as " -1.#IO ".
Am i missing something NEW with TGEA (using 1.8) or is it got a bug?
Am i missing something NEW with TGEA (using 1.8) or is it got a bug?
#2
01/27/2009 (10:49 am)
I am unable to reproduce this. In debug and release opening the console and entering the commands "profilerEnable(true)" and, after a short pause, "profilerDump()" results in the expected output.
#3
Anyhow if it is working with your Code set, then it should soon be working for me after 1.8.1 upgrade.
01/27/2009 (4:17 pm)
But do an profilerDumpToFile("profilerDumpToFile" @ getSimTime() @ ".txt"); work after doing an "profilerDump()"? Anyhow if it is working with your Code set, then it should soon be working for me after 1.8.1 upgrade.
#4
And profilerDumpToFile works fine after profilerDump.
01/27/2009 (4:29 pm)
I was using stock 1.8.0And profilerDumpToFile works fine after profilerDump.
#5
01/27/2009 (6:27 pm)
Why wont it work in my above script?
Torque 3D Owner Caylo Gypsyblood
function doProfile(%val) { if (%val) { // key down -- start profile echo("Starting profile session..."); profilerReset(); profilerEnable(true); //profilerDump(); } else { // key up -- finish off profile echo("!Ending profile session..."); //profilerDump(); //!@! I wanna see it RIGHT NOW! profilerDumpToFile("profilerDumpToFile" @ getSimTime() @ ".txt"); profilerDump(); //!@! I wanna see it RIGHT NOW! profilerEnable(false); } }I cant get a profilerDump(); without profilerDumpToFile call first; and i cant get a profilerDumpToFile if i use profilerDump();