public class MetacatProfiler
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
class  | 
MetacatProfiler.Profile
container class for profile information 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static MetacatProfiler | 
getInstance()
get a singleton instance 
 | 
java.util.Hashtable<java.lang.String,MetacatProfiler.Profile> | 
getProfiles()
return a hashtable of the profiles 
 | 
void | 
printCSV(java.io.File f)
print the CSV file with no sorting 
 | 
void | 
printLogMsg(java.lang.String msg)
print a message to the log in real-time 
 | 
void | 
printSortedCSV(java.io.File f,
              java.lang.String sortKey)
print a sorted CSV file. 
 | 
void | 
reset()
reset all times in the singleton 
 | 
MetacatProfiler.Profile[] | 
sortProfiles(java.lang.String sortKey)
sort the profiles by "callorder", "callcount" or "total" 
 | 
void | 
startTime(java.lang.String profileName)
start the timing on a profile 
 | 
void | 
stopTime(java.lang.String profileName)
stop the timing on a profile 
 | 
public static MetacatProfiler getInstance()
public java.util.Hashtable<java.lang.String,MetacatProfiler.Profile> getProfiles()
public void reset()
public void printLogMsg(java.lang.String msg)
msg - public void startTime(java.lang.String profileName)
profileName - public void stopTime(java.lang.String profileName)
profileName - public MetacatProfiler.Profile[] sortProfiles(java.lang.String sortKey)
sortKey - public void printSortedCSV(java.io.File f,
                           java.lang.String sortKey)
                    throws java.io.IOException
f - sortKey - java.io.IOExceptionpublic void printCSV(java.io.File f)
              throws java.io.IOException
f - java.io.IOExceptionCopyright © 2020 Regents of the University of California. All Rights Reserved.