Please Help Profiling my script
#1

Hey guys my script is using 94% of cpu so i wanted to optimise my script so i tried using profiler plugin but it gives this error can anyone tell me how to fix it.



What i did .

1 downloaded profiler latest version
2 copied include and profiler.dll
3 edited config file

Код:
echo Executing Server Config...
lanmode 0
rcon_password perfectboyandocbeast
maxplayers 50
port 7777
hostname COD RWW2 SRIZZ
gamemode0 rww2 1
filterscripts DHA Airstrikes afk Helmet randommessages Reaction
plugins profiler streamer sscanf Whirlpool fixes2 AntiCheat
announce 1
query 1
chatlogging 1
weburl www.realcityworld.com
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 5
logtimeformat [%H:%M:%S]
profile_gamemode 1
profile_filterscripts
profile_format txt
call_graph 0
call_graph_format
But still error




Download pluginn https://sampforum.blast.hk/showthread.php?tid=271129
Please help
Reply
#2

logs

Код:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3z, ©2005-2014 SA-MP Team

[15:10:15] 
[15:10:15] Server Plugins
[15:10:15] --------------
[15:10:15]  Loading plugin: profiler
[15:10:15]   Profiler v2.12.1 is OK.
[15:10:15]   Loaded.
[15:10:15]  Loading plugin: streamer
[15:10:15] 

*** Streamer Plugin v2.5 by Incognito loaded ***

[15:10:15]   Loaded.
[15:10:15]  Loading plugin: sscanf
[15:10:15] 

[15:10:15]  ===============================

[15:10:15]       sscanf plugin loaded.     

[15:10:15]          Version:  2.8.1        

[15:10:15]    © 2012 Alex "******" Cole  

[15:10:15]  ===============================

[15:10:15]   Loaded.
[15:10:15]  Loading plugin: Whirlpool
[15:10:16]  
[15:10:16]  ==================
[15:10:16]  
[15:10:16]   Whirlpool loaded
[15:10:16]  
[15:10:16]  ==================
[15:10:16]  
[15:10:16]   Loaded.
[15:10:16]  Loading plugin: fixes2
[15:10:16] 

[15:10:16]  ===============================

[15:10:16]        fixes plugin loaded.     

[15:10:16]    © 2012 Alex "******" Cole

[15:10:16]  ===============================

[15:10:16]   Loaded.
[15:10:16]  Loading plugin: AntiCheat
[15:10:17]   Failed.
[15:10:17]  Loaded 5 plugins.

[15:10:17] 
[15:10:17] Filterscripts
[15:10:17] ---------------
[15:10:17]   Loading filterscript 'DHA.amx'...
[15:10:18] ---------------------------------------
[15:10:18] | Digital Health & Armour by FailerZ  |
[15:10:18] |             Loaded                  |
[15:10:18] ---------------------------------------
[15:10:18]   Loading filterscript 'Airstrikes.amx'...
[15:10:18]   Loading filterscript 'afk.amx'...
[15:10:18] 
      ________________________________________
[15:10:18]         <|------AFK------------------System-----|>
[15:10:18]        <|----------Mochi And Oc[BEA]sT----------|>
[15:10:18]   Loading filterscript 'Helmet.amx'...
[15:10:18] --------------------------------------
[15:10:18]  MasterJoker's and Oc[BEA]sT's Helmet System Loaded!  
[15:10:18] --------------------------------------
[15:10:18]   Loading filterscript 'randommessages.amx'...
[15:10:18] Server MSG v1.0
[15:10:18]   Loading filterscript 'Reaction.amx'...
[15:10:18]   Loaded 6 filterscripts.

[15:10:18] [profiler] Attached profiler to gamemodes/rww2.amx (no debug info)
[15:10:18] 
[15:10:18] SendBoxMessage - By Arakuta
[15:10:18] 
 -Configuration Settings Loaded
[15:10:18]  -66 Forbidden Names Loaded
[15:10:18]  -20 Forbidden Tags Loaded
[15:10:18]  -34 Forbidden Words Loaded
[15:10:18] 
---------2015_RWW2--=LOADING=--------
[15:10:18]  LATEST VERSION BY Oc[BEA]sT
[15:10:18]  VERSION =10.7.5=
[15:10:18]  =LOADED= SUCESSFULLY!
[15:10:18] ----------------------------------

[15:10:18] Number of vehicle models: 14
The files are not created the output which the plugin says should in the amx folder
Reply
#3

I even tried with grandlarc but same error can anyone fix it please.

Plugin link

https://sampforum.blast.hk/showthread.php?tid=271129
Reply
#4

But there are no errors in your log (except anticheat plugin error). You can't find profiling data or what?

EDIT: I hope that this RCON password isn't your real RCON password
Reply
#5

see file in gamemode mod-profile.txt
Reply
#6

Quote:
Originally Posted by Waffl3
Посмотреть сообщение
But there are no errors in your log (except anticheat plugin error). You can't find profiling data or what?

EDIT: I hope that this RCON password isn't your real RCON password
Ahh my rcon password is protected by my script it changes every 30 seconds.

But anyways where can i find the output file i cant find it.
Reply
#7

Create a pawn.cfg file in the pawno folder place this code in it and save
Код:
-r -d3
Now compile you script again it may solve your problem.
Reply
#8

As cm666 and author of the profiler said, profiling data can be find in your gamemode directory. In your case it probably named rww2-profile.txt.
Reply
#9

Thanx guys + rep for you all but i completed profiling and uploaded the html file on my website can u tell me whats wrong what to do now.

http://xpsamp.co.in/profileplugin.html
Reply
#10

As predicted - you are perhaps using one of the worst ini file systems ever: Dini. It's not bad for an occassional (maybe testing?) writing and reading to a file but what you're doing there is *I think* you're writing hundreds and hundreds of user files at once and updating them too. That can get pretty darn slow with Dini.
Or maybe you have a loop in your gamemode that just lags your whole server down. Without any code we can't tell.
I suggest either switch to a relational database model (i.e. change to databases - using built-in SQLite) or to a better ini file manager, like y_ini.

It might also be one of your plugins causing your nearly 100% CPU load but I'm not sure. Maybe someone with a little bit more knowledge can help you more.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)