harpoon.Analysis.Quads
Class CollectSyncStats
java.lang.Object
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>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
CollectSyncStats
public CollectSyncStats()
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()