Zeex / samp-plugin-profiler

Performance profiler plugin for SA-MP server
http://forum.sa-mp.com/showthread.php?t=271129
BSD 2-Clause "Simplified" License
46 stars 8 forks source link

Files inside a subfolder [FS] #29

Open Arose-Niazi opened 6 years ago

Arose-Niazi commented 6 years ago

As noted for game modes I can enter the path to subdirectory, but this doesn't work for filterscripts. I used

Missions/fat_n_f_2012.amx
/Missions/fat_n_f_2012.amx

My folders -> [ServerNameFolder]/filterscripts/Missions/[file_name].amx

Arose-Niazi commented 6 years ago

Did try AMX_PATH export AMX_PATH=filterscripts/Missions/fat_n_f_2012 and export AMX_PATH=filterscripts/Missions/

No use, fat_n_f_2012 is my amx file name,

Arose-Niazi commented 6 years ago

Update; tried AMX_PATH=/home/MG/MMv13/filterscripts/Missions/

Zeex commented 6 years ago

Does it work with the new version? It uses a different method for detecting names of loaded AMX files.

Arose-Niazi commented 6 years ago

Will check it and report back soon.

Arose-Niazi commented 6 years ago

Okay there is no error message but it won't at all profile it now;

Another note, the filterscript is loaded later on. i.e called to load with SendRconCommnad Moreover yes I have added the filename to be profiled on my server.cfg profiler_filterscripts discord irc Bans Missions/fat_n_f_2012 <- Works on windows. even tried this profiler_filterscripts discord irc fat_n_f_2012

When loading;

[16:20:14]   Loading filterscript 'Bans.amx'...
[16:20:14] [profiler] Attached profiler to filterscripts/Bans
[16:20:14] [profiler] Started profiling filterscripts/Bans
[16:20:14]   Loading filterscript 'discord.amx'...
[16:20:14] [profiler] Attached profiler to filterscripts/discord
[16:20:14] [profiler] Started profiling filterscripts/discord
[16:20:14]   Loading filterscript 'irc.amx'...
[16:20:14] [profiler] Attached profiler to filterscripts/irc
[16:20:14] [profiler] Started profiling filterscripts/irc
[16:20:14]   Loaded 3 filterscripts.
[16:20:14] [profiler] Attached profiler to gamemodes/main
[16:20:14] [profiler] Started profiling gamemodes/main
[16:20:26] [profiler] Attached profiler to filterscripts/Bans
[16:20:26] [profiler] Started profiling filterscripts/Bans
[16:20:27]   Filterscript 'Missions/fat_n_f_2012.amx' loaded.
[16:21:23] --- Server Shutting Down.

When unloading i.e closing the server.

[16:21:23] [profiler] Dumping profiling statistics for gamemodes/main
[16:21:23] [profiler] Total functions logged: 142 (native: 71, public: 24, other: 47)
[16:21:23] [profiler] Total function calls logged: 1531
[16:21:23] [profiler] Writing profile to gamemodes/main-profile.html
[16:21:23] [profiler] Dumping profiling statistics for filterscripts/Bans
[16:21:23] [profiler] Total functions logged: 16 (native: 10, public: 5, other: 1)
[16:21:23] [profiler] Total function calls logged: 1027
[16:21:23] [profiler] Writing profile to filterscripts/Bans-profile.html
[16:21:23] [profiler] Dumping profiling statistics for filterscripts/discord
[16:21:23] [profiler] Total functions logged: 12 (native: 7, public: 5, other: 0)
[16:21:23] [profiler] Total function calls logged: 118
[16:21:23] [profiler] Writing profile to filterscripts/discord-profile.html
[16:21:23] [profiler] Dumping profiling statistics for filterscripts/irc
[16:21:23] [profiler] Total functions logged: 26 (native: 17, public: 9, other: 0)
[16:21:23] [profiler] Total function calls logged: 368
[16:21:23] [profiler] Writing profile to filterscripts/irc-profile.html
[16:21:23] [profiler] Dumping profiling statistics for filterscripts/Bans
[16:21:23] [profiler] Total functions logged: 32 (native: 19, public: 3, other: 10)
[16:21:23] [profiler] Total function calls logged: 2255
[16:21:23] [profiler] Writing profile to filterscripts/Bans-profile.html