edu.utah.janosvm.resources
Class MemoryResource
java.lang.Object
|
+--edu.utah.janosvm.resources.MemoryResource
- public final class MemoryResource
- extends java.lang.Object
Provides java level access to the current team's memory resource.
- Author:
- Tim Stack, Utah Janos Team
Method Summary |
static int |
getMax()
|
static int |
getPeakUsage()
|
static int |
getUsage()
|
static void |
registerLeak(java.lang.Object obj)
Register an object suspected to be a leak. |
static void |
unregisterLeak(java.lang.Object obj)
Unregister an object suspected to be a leak. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
MemoryResource
public MemoryResource()
getUsage
public static int getUsage()
- Returns:
- The memory usage, in bytes, for the current team.
getPeakUsage
public static int getPeakUsage()
- Returns:
- The peak usage, in bytes, for the current team.
getMax
public static int getMax()
- Returns:
- The maximum allowed memory, in bytes, for this team.
registerLeak
public static void registerLeak(java.lang.Object obj)
- Register an object suspected to be a leak.
unregisterLeak
public static void unregisterLeak(java.lang.Object obj)
- Unregister an object suspected to be a leak.
This documentation is Copyright (C) 2000-2001 The University of Utah. All Rights Reserved. See the documentation license for distribution terms and restrictions.
Documentation, software, and mailing lists for the JanosVM can be found at the Janos Project web page: http://www.cs.utah.edu/flux/janos/
Generated on Jun 1, 2001