Repository navigation
Releases
Tracer 0.2.0
Tracer 0.2.0 names its natives the way open.mp names its functions and writes its reports to scriptfiles.
Changes
- The natives are now
SetTracerLongCallTime,GetTracerLongCallTime,GetTracerDefaultLongCallTime,ResetTracerLongCallTime,EnableTracerLongCall,DisableTracerLongCall,IsTracerLongCallEnabledandRestartTracerLongCall, as crashdetect hasSetCrashDetectLongCallTime. The component still answers to theTracer_names, so scripts compiled with 0.1 keep loading, and the stocks of crashdetect work as before. A script that calls the old names needs the new ones to compile with this include. - Reports go to
scriptfiles/tracerby default. Aconfig.jsonthat setstracer.outputkeeps its own folder.
Installation
Unpack the zip of your system into the folder of the server: components/Tracer.dll or components/Tracer.so, and qawno/include/tracer.inc. Remove crashdetect from pawn.legacy_plugins. Both builds are 32 bit and tested with open.mp 1.6.7, the Linux one on Ubuntu 20.04, Debian 12 and Ubuntu 24.04 with glibc 2.30 or later.
Licenses
Tracer is under the MIT License. subhook (BSD 2-Clause) is linked into the component, and its license is in the zips.
Tracer 0.1.1
Tracer 0.1.1 adds the Linux build. The natives and settings are the same as in 0.1.0.
Linux
- Crashes are caught through their signals, with the same report as on Windows: what crashed, the native that ran and the line that called it, the Pawn and native backtraces, the registers and the modules of the server.
- Ctrl+C in the console reports the call that runs, as on Windows.
- Run time errors keep their details, such as the index and the array it went past, and recursions are folded. The interpreter of the Linux server writes the addresses of its labels over the opcodes, and Tracer reads them back.
- It is built on Ubuntu 20.04 and needs glibc 2.30 or later. Its tests pass on open.mp for Ubuntu 20.04, Debian 12 and Ubuntu 24.04, which GitHub Actions runs at every push.
Installation
Unpack the zip of your system into the folder of the server: components/Tracer.dll or components/Tracer.so, and qawno/include/tracer.inc. Remove crashdetect from pawn.legacy_plugins. Both builds are 32 bit and tested with open.mp 1.6.7.
Licenses
Tracer is under the MIT License. subhook (BSD 2-Clause) is linked into the component, and its license is in the zips.
Tracer 0.1.0
First release of Tracer, which takes the place of crashdetect and of the Profiler component.
- Run time errors with the file, the line and its source, what went wrong, such as the index and the array it went past, and a backtrace with the arguments of every call, also through
CallLocalFunction. - Repeated errors printed once, then summed up every
error_repeatseconds. - Long calls with the time of their natives and Pawn code, the slowest native call and where the call was when it passed the limit.
- Stuck calls found by a watchdog thread, and crashes with the Pawn and native backtraces.
- Profiling with an HTML report, and tracing of publics, natives and functions.
- Settings in
config.json, applied while the server runs. - The natives and the callback of crashdetect under the same names, in
tracer.inc.
Place components/Tracer.dll and qawno/include/tracer.inc from the zip in the server, and remove crashdetect from pawn.legacy_plugins.