Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

RSS[ANY] [Debugger] Valve Profiler


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
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 simple command and save a log to a separate file.

This is actually a shortcut for "sm prof*"

This is the only correct way to run profiler for L4D series games without a crash. For details, see the issue.
Graph includes:
- Game functions call stack
- 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)
File Type: sp Get Plugin or Get Source (sm_vprofiler.sp - 2.4 KB)

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...