harpoon.Analysis.Quads
Class CollectSyncStats

java.lang.Object
  extended by harpoon.Analysis.Quads.CollectSyncStats

public abstract class CollectSyncStats
extends Object

CollectSyncStats is used at run time to collect information about synchronization operations. (InstrumentSyncOps instruments code to add calls to methods in this class.)

Version:
$Id: CollectSyncStats.java,v 1.4 2004/07/01 22:24:02 cananian Exp $
Author:
John Whaley <jwhaley@alum.mit.edu>

Field Summary
static boolean enabled
          Whether stats collection is currently enabled.
static int[] lockcount
           
static int[] newcount
           
static int totallockcount
           
static int totalnewcount
           
 
Constructor Summary
CollectSyncStats()
           
 
Method Summary
static void dump()
           
static void init(int nNewTypes, int nLockTypes)
          MUST call this function before enabling stats collection.
static void main(String[] args)
           
static void onMonitorEnter(int index, Object obj, int b)
           
static void onMonitorExit(int index, Object obj, int b)
           
static void onNew(int index, Object obj, int b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

enabled

public static volatile boolean enabled
Whether stats collection is currently enabled.


newcount

public static int[] newcount

totalnewcount

public static int totalnewcount

lockcount

public static int[] lockcount

totallockcount

public static int totallockcount
Constructor Detail

CollectSyncStats

public CollectSyncStats()
Method Detail

main

public static void main(String[] args)
                 throws Throwable
Throws:
Throwable

init

public static void init(int nNewTypes,
                        int nLockTypes)
MUST call this function before enabling stats collection.


onNew

public static void onNew(int index,
                         Object obj,
                         int b)

onMonitorEnter

public static void onMonitorEnter(int index,
                                  Object obj,
                                  int b)

onMonitorExit

public static void onMonitorExit(int index,
                                 Object obj,
                                 int b)

dump

public static void dump()