Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.adfnmc.util
Class MemoryProfiling

java.lang.Object
  extended by oracle.adfnmc.util.MemoryProfiling

public class MemoryProfiling
extends java.lang.Object

Utility class to determine how much memory is used by any arbitrary block of code.


Field Summary
static java.lang.Class CLASS_INSTANCE
           
 
Method Summary
static void clearLog()
           
static void dumpLog()
          Output the memory profiling operation to one or more output channels via Trace
static void setGCBeforeStart(boolean v)
          Should System.gc() be called just before profiling starts? Default is false.
static void start(java.lang.String msg)
          Start a memory profiling operation by determining how much free and total memory is available.
static void start(java.lang.String categoryName, java.lang.String msg)
           
static void stop()
          End a memory profiling operation and determine how much free and total memory was consumed since the last call to start()
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_INSTANCE

public static final java.lang.Class CLASS_INSTANCE
Method Detail

setGCBeforeStart

public static final void setGCBeforeStart(boolean v)
Should System.gc() be called just before profiling starts? Default is false.

Parameters:
v -

start

public static final void start(java.lang.String msg)
Start a memory profiling operation by determining how much free and total memory is available.

Parameters:
msg - Any arbitrary tag to associate with this operation

start

public static final void start(java.lang.String categoryName,
                               java.lang.String msg)

stop

public static final void stop()
End a memory profiling operation and determine how much free and total memory was consumed since the last call to start()


dumpLog

public static final void dumpLog()
Output the memory profiling operation to one or more output channels via Trace


clearLog

public static final void clearLog()

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.