samp-plugin-profiler icon indicating copy to clipboard operation
samp-plugin-profiler copied to clipboard

Files inside a subfolder [FS]

Open Arose-Niazi opened this issue 6 years ago • 5 comments

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 avatar Mar 16 '18 12:03 Arose-Niazi

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 avatar Mar 16 '18 16:03 Arose-Niazi

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

Arose-Niazi avatar Mar 17 '18 12:03 Arose-Niazi

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

Zeex avatar Apr 03 '18 19:04 Zeex

Will check it and report back soon.

Arose-Niazi avatar Apr 03 '18 23:04 Arose-Niazi

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

Arose-Niazi avatar Apr 05 '18 14:04 Arose-Niazi