Skip to main content

Debugging

Functions

compare_time_function(Real base,Charstring msg,Charstring fn,Vector args,
Integer times)->Boolean

The relative time spent to call the OSQL function fn with arguments args n times compared to the corresponding base time per call base. The systen will print a message msg and the both the total time and the improvement factor compared to base


compare_time_query(Real base,Charstring text,Charstring query,Integer times)
->Real

expanded_image(Function f)->Integer

pp(Object o)->Charstring

Pretty print object o into a string


print(Object o)->Boolean

Print object o on console


profile()->Vector of (Charstring,Number)

return statistical profile as Vector of pairs [fnname,percentage]


profiling(Charstring action)->Charstring

Control statistical profiling by action: on: turn on statistical profiling of OSQL functions all: turn on statistical prifiling of OSQL and Lisp off: turn off statistical profiling clear: clear collected samples print: print percentage time spent in functions


test_server_connection()->Bag of Charstring msg

time_function(Charstring msg,Charstring fn,Vector args,Integer times)->Real

The time spent to call the OSQL function fn with arguments args n times. The systen will print a message msg and the total time on the console. The result is the time spent per call


time_query(Charstring text,Charstring query,Integer times)->Real

trace(Charstring fn)->Function

Trace function named fn. Derived functions cannot be traced!


untrace(Charstring fn)->Function

Untrace function named fn