GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
benchmark_tracedata(3) Arcan Lua API benchmark_tracedata(3)

benchmark_tracedata - Add a datapoint to the ongoing tracebuffer

nil
benchmark_tracedata( string:subsystem, string:message )
benchmark_tracedata( string:subsystem, string:message, int:identifier=0, int:quantity=1 )
benchmark_tracedata( string:subsystem, string:message, int:identifier=0, int:quantity=1, int:trigger=TRACE_TRIGGER_ONESHOT )
benchmark_tracedata( string:subsystem, string:message, int:identifier=0, int:quantity=1, int:trigger=TRACE_TRIGGER_ONESHOT, int:level=TRACE_PATH_DEFAULT )
benchmark_tracedata( string:subsystem, string:message, int:identifier=0, int:quantity=1, int:trigger=TRACE_TRIGGER_ONESHOT, int:level=TRACE_PATH_DEFAULT )

This function adds a datapoint to the ongoing tracebuffer. See benchmark_enable for how the buffer and its reporting function is used and configured. The possible arguments are 'subsystem' (caller defined), 'message' (caller defined), object identifier (caller defined), quantity indicator, trigger (from the set of TRACE_TRIGGER_ONESHOT , TRACE_TRIGGER_ENTER , TRACE_TRIGGER_EXIT ) and performance path ( TRACE_PATH_DEFAULT , TRACE_PATH_SLOW , TRACE_PATH_WARNING , TRACE_PATH_ERROR , TRACE_PATH_FAST ).

function benchmark_tracedata0()
      benchmark_enable(1,
      function(res)
            for k,v in ipairs(res[1]) do
                  print(k, v);
            end
      end)
      benchmark_tracedata("test", "hi", 10, TRACE_TRIGGER_ONESHOT, TRACE_PATH_DEFAULT)
end

benchmark_enable(3)

June 2022 system

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.