Raised This Month: $51 Target: $400
 12% 

Using vprof to debug plugin actions after mapchange


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
zipcore
Veteran Member
Join Date: Mar 2010
Location: m_flZipcore
Old 11-27-2018 , 10:03   Using vprof to debug plugin actions after mapchange
Reply With Quote #1

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.0Stopit_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;

__________________
zipcore is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:20.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode