Home
last modified time | relevance | path

Searched refs:HprofData (Results 1 – 8 of 8) sorted by relevance

/libcore/dalvik/src/main/java/dalvik/system/profiler/
DAsciiHprofWriter.java34 private final HprofData data;
40 public static void write(HprofData data, OutputStream outputStream) throws IOException { in write()
44 private AsciiHprofWriter(HprofData data, OutputStream outputStream) { in AsciiHprofWriter()
50 for (HprofData.ThreadEvent e : data.getThreadHistory()) { in write()
54 List<HprofData.Sample> samples in write()
55 = new ArrayList<HprofData.Sample>(data.getSamples()); in write()
58 for (HprofData.Sample sample : samples) { in write()
59 HprofData.StackTrace stackTrace = sample.stackTrace; in write()
76 for (HprofData.Sample sample : samples) { in write()
78 HprofData.StackTrace stackTrace = sample.stackTrace; in write()
[all …]
DSamplingProfiler.java62 private final Map<HprofData.StackTrace, int[]> stackTraces
63 = new HashMap<HprofData.StackTrace, int[]>();
68 private final HprofData hprofData = new HprofData(stackTraces);
123 private final HprofData.StackTrace mutableStackTrace = new HprofData.StackTrace();
325 public HprofData getHprofData() { in getHprofData()
407 HprofData.StackTrace stackTrace in recordStackTrace()
408 = new HprofData.StackTrace(nextStackTraceId++, threadId, stackFramesCopy); in recordStackTrace()
469 HprofData.ThreadEvent event in addStartThread()
470 = HprofData.ThreadEvent.start(nextObjectId++, threadId, in addStartThread()
486 HprofData.ThreadEvent event = HprofData.ThreadEvent.end(threadId); in addEndThread()
DBinaryHprofWriter.java41 private final HprofData data;
47 public static void write(HprofData data, OutputStream outputStream) throws IOException { in write()
51 private BinaryHprofWriter(HprofData data, OutputStream outputStream) { in BinaryHprofWriter()
62 for (HprofData.ThreadEvent event : data.getThreadHistory()) { in write()
66 Set<HprofData.Sample> samples = data.getSamples(); in write()
68 for (HprofData.Sample sample : samples) { in write()
98 private void writeThreadEvent(HprofData.ThreadEvent e) throws IOException { in writeThreadEvent()
110 private void writeStartThread(HprofData.ThreadEvent e) throws IOException { in writeStartThread()
125 private void writeStopThread(HprofData.ThreadEvent e) throws IOException { in writeStopThread()
177 private void writeCpuSamples(int totalSamples, Set<HprofData.Sample> samples) in writeCpuSamples()
[all …]
DHprofBinaryToAscii.java61 HprofData hprofData; in convert()
72 HprofData hprofData; in convert()
103 private static HprofData readHprof(File file) throws IOException { in readHprof()
117 private static HprofData readSnapshot(File file) throws IOException { in readSnapshot()
137 private static HprofData read(InputStream inputStream) throws IOException { in read()
161 private static boolean write(HprofData hprofData) { in write()
DBinaryHprofReader.java58 private final Map<HprofData.StackTrace, int[]> stackTraces
59 = new HashMap<HprofData.StackTrace, int[]>();
61 private final HprofData hprofData = new HprofData(stackTraces);
67 private final Map<Integer, HprofData.StackTrace> idToStackTrace
68 = new HashMap<Integer, HprofData.StackTrace>();
103 public HprofData getHprofData() { in getHprofData()
337 HprofData.ThreadEvent event in parseStartThread()
338 = HprofData.ThreadEvent.start(objectId, threadId, in parseStartThread()
348 HprofData.ThreadEvent event = HprofData.ThreadEvent.end(threadId); in parseEndThread()
404 HprofData.StackTrace stackTrace in parseStackTrace()
[all …]
DHprofData.java41 public final class HprofData { class
272 private final Map<HprofData.StackTrace, int[]> stackTraces;
274 public HprofData(Map<StackTrace, int[]> stackTraces) { in HprofData() method in HprofData
/libcore/dalvik/src/test/java/dalvik/system/profiler/
DSamplingProfilerTest.java22 import dalvik.system.profiler.HprofData.Sample;
23 import dalvik.system.profiler.HprofData.StackTrace;
24 import dalvik.system.profiler.HprofData.ThreadEvent;
25 import dalvik.system.profiler.HprofData;
85 new HprofData(null); in test_HprofData_null()
93 HprofData hprofData = new HprofData(stackTraces); in test_HprofData_empty()
99 HprofData hprofData = new HprofData(stackTraces); in test_HprofData_timeMillis()
108 HprofData hprofData = new HprofData(stackTraces); in test_HprofData_addThreadEvent_null()
119 HprofData hprofData = new HprofData(stackTraces); in test_HprofData_addThreadEvent()
157 HprofData hprofData = new HprofData(stackTraces); in test_HprofData_addStackTrace()
[all …]
/libcore/
Dnon_openjdk_java_files.mk351 dalvik/src/main/java/dalvik/system/profiler/HprofData.java \