Interface IDartAotSnapshotInfo
public interface IDartAotSnapshotInfo
Basic information about a Dart AOT snapshot.
-
Method Summary
Modifier and TypeMethodDescriptionlong
Retrieve the mapping of Dart object class id to class name for Dart objects, as used by this snapshot.Retrieve the set of snapshot features.Retrieve the list of Dart objects.long
long
Retrieve a hex-encoded string of the snapshot version hash.Retrieve the inferred Dart SDK version used to generate the snapshot.
-
Method Details
-
getVersionTag
String getVersionTag()Retrieve the inferred Dart SDK version used to generate the snapshot.This information is not directly present in a snapshot. It is derived from the
snapshot version hash
.- Returns:
- a high-level version tag, such as "2.17"
-
getVersionHash
String getVersionHash()Retrieve a hex-encoded string of the snapshot version hash.- Returns:
-
getSnapshotSize
long getSnapshotSize()- Returns:
-
getFeatures
Retrieve the set of snapshot features.- Returns:
-
getBaseObjectsCount
long getBaseObjectsCount()- Returns:
-
getObjectsCount
long getObjectsCount()- Returns:
-
getInternalObjects
List<IDartInternalObject> getInternalObjects()Retrieve the list of Dart objects.- Returns:
-
getClassIdNameMap
Retrieve the mapping of Dart object class id to class name for Dart objects, as used by this snapshot. This map can be used to find out the actual type of a Dart internal object from itsclass id
.- Returns:
- a map of ids to names
-