Someone asked me yesterday how he can use vprof to see whats happening directly after mapchange and maybe someone else finds this solution usefull.
PHP Code:
public void OnMapStart()
{
ServerCommand("sm prof start");
CreateTimer(60.0, Stopit, _, TIMER_FLAG_NO_MAPCHANGE);
}
public Action Stopit(Handle timer)
{
ServerCommand("sm prof stop");
ServerCommand("con_logfile vprof.log");
ServerCommand("sm prof dump vprof");
ServerCommand("con_logfile \"\"");
return Plugin_Handled;
}
__________________