View previous topic :: View next topic |
Author |
Message |
-Asylum-Skitzo
Joined: 16 Mar 2008 Posts: 4
|
Posted: Sun Mar 16, 2008 9:14 Post subject: |
|
|
Ok, would come in handy if it was.
By the way, thanks for you work on the Linux ports. |
|
Back to top |
|
|
-Asylum-Skitzo
Joined: 16 Mar 2008 Posts: 4
|
Posted: Thu Jul 03, 2008 7:17 Post subject: |
|
|
I made a modification to HookRunScript.cpp (with the help of a friend - Jotham) to datestamp the profiler logs. Makes tracking down the cause of high script time deltas easier to find.
Code: | diff nwnx_easy/profiler/HookRunScript.cpp nwnx_easy_modified/profiler/HookRunScript.cpp
26a27,29
> #include <ctime>
>
> #define DATEBUFFERLENGTH 256
122c125,131
<
---
>
> // Get current time
> time_t now;
> char strDate[DATEBUFFERLENGTH];
> time(&now);
> strftime(strDate, DATEBUFFERLENGTH, "%c", localtime(&now));
>
135c144,146
< profiler.Log(1, "Total number of scriptcalls : %d\n\n", iScriptCounter);
---
> profiler.Log(1, "Total number of scriptcalls : %d\n", iScriptCounter);
> profiler.Log(1, "Current date is : %s\n\n", strDate);
>
|
Heres an example of the new output:
Code: | Elapsed time : 10205 msec
Runtime delta : 1 msec
Total cumulative runtime : 336 msec
Total number of scriptcalls : 1174
Current date is : Sat Jun 21 22:59:00 2008 |
|
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Thu Jul 03, 2008 9:20 Post subject: |
|
|
Thanks, I'll merge your patch into the repository. |
|
Back to top |
|
|
ExileStrife
Joined: 14 Mar 2008 Posts: 21
|
Posted: Thu Apr 09, 2009 8:13 Post subject: |
|
|
virusman, would it be tough to get pathfinding back in the 1.69 profiler? I was wanting to some analysis but... >_> |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
|
Back to top |
|
|
|