-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No output from profiler #19
Comments
Same issue. No output on linux. On windows it creates the output file but it just creates the heading only. |
Same issue ! On Windows I think it's working ok, as long as gmx or exit is used. But on linux it is more like random: 1 out of 1000 times it is actually creating the .html file in the gamemodes folder. xD I really need this plugin, it is really useful, but this bug is really annoying, I wasn't able to use profiler for a long time due to this problem. Everytime I tried this problem occured. At first, I thought that it was because I was also using crashdetect, and then I removed it, and at the first gmx it printed out well, but after that it still wasn't printing anything. |
It looks like using Profiler_Dump is working. This is the only solution I see for now: when we want to see the dump file we have to use a command to generate the file. (bad if we forget to use it before a restart) |
Profiler_Dump didnt work for me. |
I've added a little more logging, it may shed some light on what's going on. Can you please try the new version? (you'll need to build from source) |
Profiler_Start doesn't work. [17/03/2016 07:07:59] Loading plugin: profiler
Whenever I select Profiler_Start the profiler state stays in 3 (attached) even after waiting and waiting. It also doesn't print anything. This was annoying me so I went to the Profiler::Start() function and added Printf("Start() %d. %d.", state_, PROFILER_ATTACHED); and it printed 3. 2. which means PROFILER_STARTING state... good. BUT I can't seem to see where Profiler::Exec is ever executed so I just did (for a temp fix.. tho this fix starts profiling on game mode start, which should really be an option)
and fixed! |
It should transition from STARTING to STARTED on the next call to some public function (i.e. next time amx_Exec is called by the server). It's strange that this didn't work... Edit: Can you see if Exec is called at all? E.g. put a print in it like you did with Start(). |
Exec It's called during filterscripts loading
It aint called after that. the first print is the start of the function, the second one is the end of the function (Profiler::Exec). |
Profiler 2.12.1
Linux 3.10.23-xxxx-std-ipv6-64 on x86_64
CentOS Linux 6.6
Gamemode is compiled with -d3 flag.
http://prntscr.com/7mbhki
server.cfg
lanmode 0
rcon_password t287f
maxplayers 200
port 7777
hostname Imperial Roleplay
gamemode0 imperial
filterscripts fix
plugins crashdetect.so sscanf.so mysql.so streamer.so timerfix.so audio.so MapAndreas.so YSF.so bcrypt-samp.so gvar.so imrp_ol.so nativechecker.so profiler.so
announce 1
query 1
weburl www.im-rp.eu
maxnpc 25
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
messageholelimit 3000
logtimeformat [%d.%m.%Y %H:%M:%S]
language Eesti keel
profile_gamemode 1
Some plugin version:
GVar Plugin v1.3 by Incognito loaded
plugin.bcrypt v2.2.3 was loaded.
YSF - kurta999 version R12 loaded
Audio Plugin v0.5 R2 by Incognito loaded
plugin.mysql: R39-3 successfully loaded.
Streamer Plugin v2.7.7 by Incognito loaded
CrashDetect v4.15.1 is OK.
[profiler] Attached profiler to gamemodes/imperial.amx
What's the problem?
The text was updated successfully, but these errors were encountered: