Raised This Month: $41 Target: $400
 10% 

[ANY] [Debugger] Valve Profiler


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine
Plugin ID:
7459
Plugin Version:
1.0
Plugin Category:
Technical/Development
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    5 
    Plugin Description:
    Measures per-plugin performance and provides a log with various counters
    Old 01-10-2021 , 12:04   [ANY] [Debugger] Valve Profiler
    Reply With Quote #1

    What is it for?

    It is intended for advanced users to measure per-plugin / per-function (including internal game function) performance.

    See an example of the final report attached to this post.

    Description:
    Provides an easy way to run a valve profiler with one single command and save a log to a separate file.

    This is actually a shortcut for "sm prof*" + some internal game commands.

    This is the only correct way to run profiler for L4D series games without a crash. For details, see the issue.
    Graph includes:
    - Game + plugin functions call stack
    - Function list sorted by max number of total calls
    - Function list sorted by Avg time/Frame
    - Function list sorted by Avg time/Call
    - Function list sorted by Avg time/Peak
    - All of the above separately with / or without children calls
    WARNING
    - Be careful, if you install it on the Live server! Stopping the profiler will cause a significant lag due to the analysis process. Actually, it can freeze you > 10 sec.
    - You may want to disable a watchdog by putting the following argument in server startup options, otherwise the server can exit with timeout (thanks to peace-maker for the suggestion):
    Code:
    -nowatchdog
    and possibly, "SlowScriptTimeout" "0" in /sourcemod/configs/core.cfg
    - It's better to run the profiler for a short period of time.
    - The longer it is running, the longer the analysis process will take.
    Compatibility:
    - ANY game
    ConVars:
    - Nothing
    Commands:
    - !debug - start/stop the profiler
    Log location:
    - addons/sourcemod/logs/profiler__<date>_<time>.log
    Installation:
    - copy .smx to addons/sourcemod/plugins
    Credits:
    - Valve & SM dev. team
    Attached Files
    File Type: log profiler__2021-01-10_18-48-35.log (119.8 KB, 128 views)
    File Type: sp Get Plugin or Get Source (sm_vprofiler.sp - 135 views - 2.4 KB)
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch) (my New server L4D2)
    [My plugins] [My tools] [GitHub] [Articles] [Donate]

    Last edited by Dragokas; 01-10-2021 at 12:12.
    Dragokas is offline
    Reply


    Thread Tools
    Display Modes

    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 03:21.


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