org.jocl.cloth.utils
Class ProfilingUtils

java.lang.Object
  extended by org.jocl.cloth.utils.ProfilingUtils

public class ProfilingUtils
extends java.lang.Object

Utility methods for profiling. Only for internal use!


Method Summary
static void accumulate(java.lang.String name, org.jocl.cl_event event)
          Accumulate the duration for the given identifier, computed from the given event, and print a summary in certain interval
static void printInfo(java.lang.String message, org.jocl.cl_event event)
          Print some profiling information about the given event
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

accumulate

public static void accumulate(java.lang.String name,
                              org.jocl.cl_event event)
Accumulate the duration for the given identifier, computed from the given event, and print a summary in certain interval

Parameters:
name - The identifier
event - The event

printInfo

public static void printInfo(java.lang.String message,
                             org.jocl.cl_event event)
Print some profiling information about the given event

Parameters:
message - The message to show
event - The event