View previous topic :: View next topic |
Author |
Message |
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Thu Jul 20, 2006 11:12 Post subject: nwnx_profiler for linux |
|
|
Linux port of profiler plugin (1.60 beta 1).
I've hooked only ExecuteScript function.
New ini setting: scriptparts. If scriptparts=0, profiler doesn't log script parts as a separate script.
And it's still BETA, although I run it on my server.
http://data.virusman.ru/nwn/nwnx_profiler-1.60beta1.rar |
|
Back to top |
|
|
FunkySwerve
Joined: 02 Jun 2005 Posts: 377
|
Posted: Thu Jul 20, 2006 16:46 Post subject: |
|
|
Out of curiosity, how does it impact performance? I tried it (or another Linux port, not sure really on my Lin box and it created a lagfest. We were doing full logging, however, which may have accounted for the difference in my experience with the Windows version.
Funky |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Thu Jul 20, 2006 21:41 Post subject: |
|
|
FunkySwerve wrote: | Out of curiosity, how does it impact performance? I tried it (or another Linux port, not sure really on my Lin box and it created a lagfest. We were doing full logging, however, which may have accounted for the difference in my experience with the Windows version.
Funky | The profiler with "script callstack logging" option turned on writes a hell of a lot of data to HDD without caching (Log function calls fflush immediately), so it could cause a serious lag.
I'll change logging behaviour in the next version, so you probably wouldn't notice the difference then.
Btw, "another Linux port"? I haven't seen it anywhere.
Maybe you should try again with my version.. |
|
Back to top |
|
|
FunkySwerve
Joined: 02 Jun 2005 Posts: 377
|
Posted: Fri Jul 21, 2006 9:01 Post subject: |
|
|
No, if you haven't seen another version then I'm sure it was yours, unless it was on Dumbo's page? Dunno. Anyway, I didn't want to criticize your plugin when I wasn't reasonably sure it was yours, and I hadn't even tried the summary logging. A rewrite/upgrade/streamline would be great, because the profiler is quite useful!
Funky |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Fri Jul 21, 2006 10:03 Post subject: |
|
|
FunkySwerve wrote: | No, if you haven't seen another version then I'm sure it was yours, unless it was on Dumbo's page? Dunno. Anyway, I didn't want to criticize your plugin when I wasn't reasonably sure it was yours, and I hadn't even tried the summary logging. A rewrite/upgrade/streamline would be great, because the profiler is quite useful!
Funky | Nope, Dumbo didn't port Profiler.
And the only public version of my port is here. It was never released before yesterday. |
|
Back to top |
|
|
FunkySwerve
Joined: 02 Jun 2005 Posts: 377
|
Posted: Fri Jul 21, 2006 16:35 Post subject: |
|
|
Eh, don't see how it could've been yours, then. I tried a linux profiler a couple months back, can't remember when exactly. Nevermind, then.
Funky |
|
Back to top |
|
|
Ravine
Joined: 26 Jul 2006 Posts: 105
|
|
Back to top |
|
|
FunkySwerve
Joined: 02 Jun 2005 Posts: 377
|
Posted: Wed Jul 26, 2006 15:07 Post subject: |
|
|
Do you have a working Linux version of the chat plugin? I haven't been able to find one. The one on dumbo's page didn't work, probably because I don't know how to compile Lin scripts, and one he provided later causes my otherwise crash-free servers to go down at 5-60 minutes, and intereferes with the operation of other plugins, like letoscript. If you do, I'd appreciate it, because I have a nice scriptset for it that I can't use:
http://nwvault.ign.com/View.php?view=Scripts.Detail&id=2993&comment_page=1
Thanks,
Funky |
|
Back to top |
|
|
Ravine
Joined: 26 Jul 2006 Posts: 105
|
Posted: Thu Jul 27, 2006 9:34 Post subject: |
|
|
Hi!
Strange, i have no problem with the chat<->letoscript plugins. Only the profiler<->chat plugins interfered.
-----------------------------------------------
* Loading modules...
[LETO] SetDebugLevel(0) called. Current value=0
LETO plugin Registerred.
[Database] SetDebugLevel(0) called. Current value=0
ODBC plugin Registerred.
[CHAT] SetDebugLevel(0) called. Current value=0
CHAT plugin Registerred.
* NWNX2 activated.
Neverwinter Nights Server
Build:8093
------------------------------------------------
Yeah, i know about your scripts, but i didn't use it, 'cos my server is empty most of the time I just made an irc-like consolescript, to talk with the players. But, it never crashed.
Here is the compiled .so (under debian sarge):
Chat plugin (20k packed, 70k unpacked) |
|
Back to top |
|
|
FunkySwerve
Joined: 02 Jun 2005 Posts: 377
|
Posted: Thu Jul 27, 2006 10:21 Post subject: |
|
|
Thanks, I'll give it a try! I'd speculate as to whether server traffic was related to the crashes, but others claiming to have busy servers also had no problem. What bearing does the system it is compiled under have on usage? I'm unsure exactly what version of linux my prof host is running.
Funky |
|
Back to top |
|
|
Roo
Joined: 28 Jul 2006 Posts: 6
|
Posted: Sun Jul 30, 2006 2:36 Post subject: |
|
|
Is the nwnx2.ini entry for this plugin the same as the windows one?
I've installed it but nothing seems to get logged other then:
Quote: | NWNX Profiler V.1.60
(c) 2005 by Ingmar Stieger (papillon@nwnx.org)
(c) 2006 by virusman (virusman@virusman.ru)
visit us at http://www.nwnx.org
* Updated entries are marked with a * symbol
* Log level: Only overall statistics will be logged.
* Separate script parts logging: 1 |
|
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Sun Jul 30, 2006 13:36 Post subject: |
|
|
Roo wrote: | Is the nwnx2.ini entry for this plugin the same as the windows one?
I've installed it but nothing seems to get logged other then:
Quote: | NWNX Profiler V.1.60
(c) 2005 by Ingmar Stieger (papillon@nwnx.org)
(c) 2006 by virusman (virusman@virusman.ru)
visit us at http://www.nwnx.org
* Updated entries are marked with a * symbol
* Log level: Only overall statistics will be logged.
* Separate script parts logging: 1 |
|
No, there are only 2 nwnx2.ini config keys:
debuglevel (1 for overall statistics logging, 2 for script callstack logging)
scriptparts (descripted in 1st post; default value = 1)
To fix your problem, try to set debuglevel to 1:
[PROFILER]
debuglevel=1 |
|
Back to top |
|
|
Roo
Joined: 28 Jul 2006 Posts: 6
|
Posted: Sun Jul 30, 2006 23:10 Post subject: |
|
|
That got it.
Thanks mate! |
|
Back to top |
|
|
-Asylum-Skitzo
Joined: 16 Mar 2008 Posts: 4
|
Posted: Sun Mar 16, 2008 4:55 Post subject: |
|
|
I'm getting a few errors with NWN 1.68:
Quote: | NWNX Profiler V.1.60
(c) 2005 by Ingmar Stieger (papillon@nwnx.org)
(c) 2006 by virusman (virusman@virusman.ru)
visit us at http://www.nwnx.org
* Updated entries are marked with a * symbol
* Log level: Only overall statistics will be logged.
* Separate script parts logging: 1
* RunScript hooked (symbol: >).
* Could not find Cross area pathfinding function or hook failed: 0
* Could not find pathfinding function or hook failed: 0
|
Any ideas why it can't hook the path finding? |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Sun Mar 16, 2008 8:49 Post subject: |
|
|
-Asylum-Skitzo wrote: | Any ideas why it can't hook the path finding? | Pathfinding hook is just not implemented in this version. |
|
Back to top |
|
|
|