Profiling Instructions



      profile_count      trace_in      trace_out 


 profile_count 
  ·  OperationCount the number of times the current method is invoked
  ·  Format
profile_count
  ·  Direct Format
{profile_count}
  ·  Forms profile_count = 255, 93 (0xFF, 0x5D)
   · Description This instruction adds 1 to the profiling count for the current method. It is normally inserted at the beginning of a method's code by the CVM coder when the engine is running in the profiling mode.


 trace_in 
  ·  OperationPrint the name of the called method . This is injected at the top of every method in --trace mode
  ·  Format
trace_in
reason
  ·  Direct Format
{trace_in}
reason
  ·  Forms trace_in = 255, 96 (0xFF, 0x60)
   · Description This instruction prints out the called method . It is normally inserted immediately before a method call when the engine is running in --trace mode. The reason parameter is provided for future additions , and is ignored in the current implementation.


 trace_out 
  ·  OperationPrint the name of the callee method while returning to it. This is injected for every return in --trace mode
  ·  Format
trace_out
reason
  ·  Direct Format
{trace_out}
reason
  ·  Forms trace_out = 255, 97 (0xFF, 0x61)
   · Description This instruction prints out the callee method on returning from the current method. It is normally inserted immediately before a return from a method when the engine is running in --trace mode.


Copyright © Southern Storm Software Pty Ltd 2002
Licensed under GNU FDL