| java.lang.Object org.netbeans.lib.profiler.results.ResultsSnapshot org.netbeans.lib.profiler.results.cpu.CPUResultsSnapshot
CPUResultsSnapshot | public class CPUResultsSnapshot extends ResultsSnapshot (Code) | | Management of the CPU profiling results snapshot.
A CPU snapshot is created from the runtime CCTs for all profiled threads, that are provided by CPUCallGraphBuilder.
Initially it contains only these same (logically) CCTs (in instances of CPUCCTContainer), but in compact "flattened"
format that takes less space in memory, and represented in microseconds, cleansed time.
When the user starts to open CCT nodes for the given thread, the relevant objects (PrestimeCPUCCTNodes) are generated lazily
for touched nodes out of the initial compact representation. This is done via a PrestimeCPUCCTNode object keeping a pointer
into the compact tree representation where its data is located, from which the data for its children can be located, etc.
When the user requests data in different "view" (switching say from method-level to class- (or package-) level aggregation),
the relevant compact representation for all threads is generated out of the initial compact representation.
Has an API for
- returning the root of the all-threads CCT. The node objects themselves take care of lazy construction of sub-nodes
out of the compact representation, when needed
- generation of the accumulated time per method (flat profile) out of the CCT.
author: Misha Dmitriev |
Inner Class :public static class NoDataAvailableException extends Exception | |
CLASS_LEVEL_VIEW | final public static int CLASS_LEVEL_VIEW(Code) | | |
METHOD_LEVEL_VIEW | final public static int METHOD_LEVEL_VIEW(Code) | | |
PACKAGE_LEVEL_VIEW | final public static int PACKAGE_LEVEL_VIEW(Code) | | |
CPUResultsSnapshot | public CPUResultsSnapshot()(Code) | | |
getInstrMethodClasses | public String[] getInstrMethodClasses(int view)(Code) | | |
getInstrMethodNames | public String[] getInstrMethodNames()(Code) | | |
getInstrMethodSignatures | public String[] getInstrMethodSignatures()(Code) | | |
getMethodClassNameAndSig | public String[] getMethodClassNameAndSig(int methodId, int view)(Code) | | |
getNInstrMethods | public int getNInstrMethods()(Code) | | |
getNThreads | public int getNThreads()(Code) | | |
getSortBy | public int getSortBy()(Code) | | |
getSortOrder | public boolean getSortOrder()(Code) | | |
getThreadIds | public int[] getThreadIds()(Code) | | |
getThreadNameForId | public String getThreadNameForId(int threadId)(Code) | | |
isCollectingTwoTimeStamps | public boolean isCollectingTwoTimeStamps()(Code) | | |
saveSortParams | public void saveSortParams(int sortBy, boolean sortOrder)(Code) | | |
|
|