Author Topic: Which profiler do you use?  (Read 394 times)

Legacy_Kato -

  • Hero Member
  • *****
  • Posts: 747
  • Karma: +0/-0
Which profiler do you use?
« on: March 08, 2015, 01:11:34 am »


               

I'm wondering which script profiler is the most recommended between nwnx and the vanilla, integrated one? Which one do you prefer?


 


 


Kato



               
               

               
            

Legacy__Guile

  • Hero Member
  • *****
  • Posts: 1308
  • Karma: +0/-0
Which profiler do you use?
« Reply #1 on: March 08, 2015, 02:54:29 pm »


               Ignore my post...
               
               

               
            

Baaleos

  • Administrator
  • Hero Member
  • *****
  • Posts: 1916
  • Karma: +0/-0
Which profiler do you use?
« Reply #2 on: March 08, 2015, 03:27:14 pm »


               

He said Profiler.


Not compiler


 


Profiler is for determining efficency and statistics about how long scripts take to complete (to aleviate lag etc)


 


I use the nwnx one:


It helped me identify pathfinding issues which were causing my server to run at 40% CPU when no players are in.


Solving the issue managed to get my cpu down to less than 10% when empty.



               
               

               
            

Legacy__Guile

  • Hero Member
  • *****
  • Posts: 1308
  • Karma: +0/-0
Which profiler do you use?
« Reply #3 on: March 08, 2015, 03:32:34 pm »


               Thanks Baalos, I misread that. '<img'>
               
               

               
            

Legacy_Kato -

  • Hero Member
  • *****
  • Posts: 747
  • Karma: +0/-0
Which profiler do you use?
« Reply #4 on: March 12, 2015, 01:24:16 am »


               

I was somewhat expecting nwnx to be the choice, thanks for confirming this, Baaleos. At least I got one answer lol... (and fortunately from a very advanced builder)



               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Which profiler do you use?
« Reply #5 on: March 12, 2015, 03:08:03 pm »


               

I use default. Havent found difference between default and nwnx, both shows basically the same.



               
               

               
            

Legacy_Kato -

  • Hero Member
  • *****
  • Posts: 747
  • Karma: +0/-0
Which profiler do you use?
« Reply #6 on: March 12, 2015, 03:53:02 pm »


               

Thank you Shadooow!



               
               

               
            

Legacy_kalbaern

  • Hero Member
  • *****
  • Posts: 1531
  • Karma: +0/-0
Which profiler do you use?
« Reply #7 on: March 12, 2015, 04:20:09 pm »


               

I use both, depending on what I'm looking for.


 


When using the default profiler, I mark the start and stop times an look for totals like script names and number of times ran. I found this to be a good lag indicator in a few folks PWs I've helped debug over the years. I.e., using simple math, I knew how many placeable, area or module wide heartbeats "should" be firing each round and compared it to actual results for a quick and dirty litmus test.


 


For just about anything else, I use the NWNX2 profiler though.