Profiler writes out wrong titles when writing to a file.
by Steve Lamperti · in Torque Game Engine · 06/20/2006 (4:02 pm) · 0 replies
In the Profiler, (Profiler.cc in platform,) when the profiler is writing to a text file, not to the console, the text
"Ordered by non-sub total time - " is written twice. Once for the report where it is correct, and then again when it is incorrect. (Also, NSTime and Time are swapped, but the text doesn't reflect this.)
(This has caused me a bit of confusion.)
the code below contains the incorrect lines commented out, and the correct lines added.
"Ordered by non-sub total time - " is written twice. Once for the report where it is correct, and then again when it is incorrect. (Also, NSTime and Time are swapped, but the text doesn't reflect this.)
(This has caused me a bit of confusion.)
the code below contains the incorrect lines commented out, and the correct lines added.
//dStrcpy(buffer, "\nOrdered by non-sub total time -\n");
dStrcpy(buffer, "\nOrdered by stack trace total time -\n");
fws.write(dStrlen(buffer), buffer);
//dStrcpy(buffer, "%%NSTime %% Time Invoke # Name\n");
dStrcpy(buffer, "%% Time %% NSTime Invoke # Name\n");
fws.write(dStrlen(buffer), buffer);