Skip to content

Graal Quellen für Daten

Joana Be edited this page Nov 8, 2022 · 4 revisions

Interessante Packages / Classes

  • com.oracle.svm.hosted.heap
  • com.oracle.svm.hosted.image
  • com.oracle.svm.hosted.FeatureImpl
  • com.oracle.svm.hosted.code.CompileQueue;
  • org.graalvm.nativeimage.hosted.Feature;

Usages in package com.oracle.svm.hosted.dashboard:

FeatureImpl.AfterHeapLayoutAccessImpl config = (FeatureImpl.AfterHeapLayoutAccessImpl) access;

NativeImageHeap heap = config.getHeap();

for (NativeImageHeap.ObjectInfo info : heap.getObjects()) {

final String className = info.getClazz().getName();

Statistics stats = sizes.get(className);

....

for (CompileQueue.CompileTask task : ((FeatureImpl.AfterCompilationAccessImpl) access).getCompilationTasks()) {

data.merge(task.method.format("%H.%n(%p) %r"), task.result.getTargetCodeSize(), Integer::sum);

}

Datenformate:

Es gibt bereits Graphen : GraphStructure