logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
nwnx_profiler for linux
Goto page 1, 2  Next
 
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux development
View previous topic :: View next topic  
Author Message
virusman



Joined: 30 Jan 2005
Posts: 1010
Location: Russia

PostPosted: Thu Jul 20, 2006 11:12    Post subject: nwnx_profiler for linux Reply with quote

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. Smile
http://data.virusman.ru/nwn/nwnx_profiler-1.60beta1.rar
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
FunkySwerve



Joined: 02 Jun 2005
Posts: 377

PostPosted: Thu Jul 20, 2006 16:46    Post subject: Reply with quote

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
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1010
Location: Russia

PostPosted: Thu Jul 20, 2006 21:41    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website Yahoo Messenger
FunkySwerve



Joined: 02 Jun 2005
Posts: 377

PostPosted: Fri Jul 21, 2006 9:01    Post subject: Reply with quote

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
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1010
Location: Russia

PostPosted: Fri Jul 21, 2006 10:03    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website Yahoo Messenger
FunkySwerve



Joined: 02 Jun 2005
Posts: 377

PostPosted: Fri Jul 21, 2006 16:35    Post subject: Reply with quote

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. Razz
Funky
Back to top
View user's profile Send private message
Ravine



Joined: 26 Jul 2006
Posts: 105

PostPosted: Wed Jul 26, 2006 12:08    Post subject: Reply with quote

Hello!

That should be harry_x's version of profiler.
http://nwn.bioware.com/forums/viewtopic.html?topic=448882&forum=56

This logs to sql db. As i saw, this is already 1.67 compatible. One thing: it doesn't work with dumbo's chat plugin (as i recall).
Back to top
View user's profile Send private message
FunkySwerve



Joined: 02 Jun 2005
Posts: 377

PostPosted: Wed Jul 26, 2006 15:07    Post subject: Reply with quote

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
View user's profile Send private message
Ravine



Joined: 26 Jul 2006
Posts: 105

PostPosted: Thu Jul 27, 2006 9:34    Post subject: Reply with quote

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 Smile 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
View user's profile Send private message
FunkySwerve



Joined: 02 Jun 2005
Posts: 377

PostPosted: Thu Jul 27, 2006 10:21    Post subject: Reply with quote

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. Confused
Funky
Back to top
View user's profile Send private message
Roo



Joined: 28 Jul 2006
Posts: 6

PostPosted: Sun Jul 30, 2006 2:36    Post subject: Reply with quote

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
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1010
Location: Russia

PostPosted: Sun Jul 30, 2006 13:36    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website Yahoo Messenger
Roo



Joined: 28 Jul 2006
Posts: 6

PostPosted: Sun Jul 30, 2006 23:10    Post subject: Reply with quote

That got it.

Thanks mate! Cool
Back to top
View user's profile Send private message
-Asylum-Skitzo



Joined: 16 Mar 2008
Posts: 4

PostPosted: Sun Mar 16, 2008 4:55    Post subject: Reply with quote

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
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1010
Location: Russia

PostPosted: Sun Mar 16, 2008 8:49    Post subject: Reply with quote

-Asylum-Skitzo wrote:
Any ideas why it can't hook the path finding?
Pathfinding hook is just not implemented in this version. Smile
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux development All times are GMT + 2 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group